2012-08-28 41 views
1

我正在嘗試在Solaris 11 x86上安裝CPM密碼管理工具。 安裝完所有必需的依賴項後,我被卡在CPM的配置中。 我目前的ncurses版本是5.9。找不到ncurses庫

我試圖運行這個命令:

[email protected]:~/Downloads/cpm-0.23beta# ./configure --with-ncurses --with-cdk-dir=/usr/local --with-cracklib-dict=/usr/local/share/cracklib/pw_dict 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ISO C89... none needed 
checking how to run the C preprocessor... gcc -E 
checking for grep that handles long lines and -e... /usr/bin/ggrep 
checking for egrep... /usr/bin/ggrep -E 
checking whether gcc needs -traditional... no 
checking for a BSD-compatible install... /usr/bin/ginstall -c 
checking whether ln -s works... yes 
checking whether make sets $(MAKE)... yes 
configure: checking libraries 
checking for main in -lm... yes 
checking for initscr in -lncurses... no 
configure: error: can not find the ncurses library 

我希望得到一些幫助。

感謝

+0

你有沒有因爲安裝ncurses的運行ldconfig? –

+0

不,我不是爲什麼? – Nenzo

+0

@KazDragon - Solaris沒有/使用ldconfig。 – alanc

回答

1

安裝系統庫後,你應該運行ldconfig爲根。該工具用於更新系統的庫高速緩存,以便在鏈接時查找它們,例如配置腳本。

附錄:Solaris版本確實crle

+0

聽起來不錯,我在Solaris上沒有太多的經驗,你能指定命令嗎?我猜想它在Solaris上的問題..? – Nenzo

+0

我加入程序crle庫-l 但我仍然得到同樣的錯誤.. – Nenzo

+0

實際上,在Solaris上有沒有和LDCONFIG你應該幾乎從不運行程序crle。 Solaris的建議是使用-L和-R標誌與默認庫路徑之外的任何庫進行鏈接。 – alanc