C++ 找不到ncurses库

C++ 找不到ncurses库,c++,solaris,C++,Solaris,我目前正在尝试在Solaris 11 x86上安装密码管理工具CPM。 在安装了所有必需的依赖项之后,我陷入了CPM的配置中。 我目前的ncurses版本是5.9 我尝试运行此命令: root@solaris:~/Downloads/cpm-0.23beta# ./configure --with-ncurses --with-cdk-dir=/usr/local --with-cracklib-dict=/usr/local/share/cracklib/pw_dict checking fo

我目前正在尝试在Solaris 11 x86上安装密码管理工具CPM。 在安装了所有必需的依赖项之后,我陷入了CPM的配置中。 我目前的ncurses版本是5.9

我尝试运行此命令:

root@solaris:~/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
我希望能得到一些帮助


谢谢

安装系统库后,您应该以root用户身份运行
。此工具用于更新系统的库缓存,以便在链接时和(例如)配置脚本中找到库


附录:Solaris版本确实是

安装系统库后,您应该以root用户身份运行
。此工具用于更新系统的库缓存,以便在链接时和(例如)配置脚本中找到库


附录:Solaris版本确实是

在安装ncurses后是否运行了ldconfig?@KazDragon-Solaris没有/使用ldconfig。在安装ncurses后是否运行了ldconfig?@KazDragon-Solaris没有/使用ldconfig。听起来不错,我对Solaris没有太多经验,可以指定命令吗?我猜它在Solaris上是crle…?我添加了带有crle的库-l:但我仍然得到相同的错误..实际上,在Solaris上没有ldconfig,您几乎不应该运行crle。Solaris建议使用-L和-R标志链接默认库路径之外的任何库。听起来不错,我对Solaris没有太多经验,您能指定命令吗?我猜它在Solaris上是crle…?我添加了带有crle的库-l:但我仍然得到相同的错误..实际上,在Solaris上没有ldconfig,您几乎不应该运行crle。Solaris建议使用-L和-R标志链接默认库路径之外的任何库。