相关主题在这里
试图将一些文件链接到/ lib像这样
[/opt/lib] # ln -s libncurses.so.5.7 /lib/ [/opt/lib] # ln -s libncursesw.so.5.7 /lib/
编译器仍然找不到任何ncurses库…
尝试在psybnc源码中编译menuconfig。 哪些汽车工具在寻找图书馆? 如何debugging自动工具或只是告诉我如何添加另一个库path,因为/ opt / lib需要使用而不是/ lib或任何其他地方的汽车工具正在寻求。
PS这不起作用
[/share/HDA_DATA/Linux/psybnc] # export LD_LIBRARY_PATH="/opt/lib:$LD_LIBRARY_PATH" [/share/HDA_DATA/Linux/psybnc] # make menuconfig Initializing Menu-Configuration [*] Running Conversion Tool for older psyBNC Data. Using existent configuration File. [*] Running Autoconfig. System: Linux Socket Libs: Internal. Environment: Internal. Time-Headers: in time.h and sys/time.h Byte order: Big Endian. IPv6-Support: Yes, general support. But no interface configured. async-DNS-Support: Yes. SSL-Support: No openssl found. Get openssl at www.openssl.org Creating Makefile [*] Creating Menu, please wait. This needs the ncurses library. If it is not available, menuconf wont work. If you are using curses, use make menuconfig-curses instead. [/share/HDA_DATA/Linux/psybnc] # ls /opt/lib | grep libncurses libncurses.so@ libncurses.so.5@ libncurses.so.5.7* libncursesw.so@ libncursesw.so.5@ libncursesw.so.5.7*
这个话题标记为删除,回答是张贴在我上面提到的相关话题
尝试在编译前设置LD_LIBRARY_PATH,在bash控制台中input:
export LD_LIBRARY_PATH="your_new_lib_path"
或者,保持以前的设置,只是预先安装新的库path:
export LD_LIBRARY_PATH="your_new_lib_path:$LD_LIBRARY_PATH"