P****r 发帖数: 140 | 1 due to the NIS service, i can not install
the gcc in the /usr/local as usual,
so it was installed in /opt/sfw
when i tried to complie the DDD, ( ./configure had no question)
i got the error message "fatal error: can not find libncurses.so.4"
i could find this file in /opt/sfw/lib
but the ./configure cannot work this path out
i remembered that there is something like "libpath" in the file
.cshrc,
can any DaXia help me how to set the path of library in the .cshrc
or anything else?
thanks million | I*******y 发帖数: 30 | 2 I think you can use make file, or just add the path as following:
gcc *** -Lpathname
in your case
gcc *** -L/opt/sfw/lib
【在 P****r 的大作中提到】 : due to the NIS service, i can not install : the gcc in the /usr/local as usual, : so it was installed in /opt/sfw : when i tried to complie the DDD, ( ./configure had no question) : i got the error message "fatal error: can not find libncurses.so.4" : i could find this file in /opt/sfw/lib : but the ./configure cannot work this path out : i remembered that there is something like "libpath" in the file : .cshrc, : can any DaXia help me how to set the path of library in the .cshrc
|
|