/usr/bin/ld: cannot find -ltermcap
collect2: ld 返回 1
make: *** [fileman] 错误 1
echo $PKG_CONFIG_PATH
To set the PKG_CONFIG_PATH
value use:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
or
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
This example shows how to succeed when you find a target-native termcap library is missing (cross building is somewhat different here -- use ./configure --help when in doubt):
cd ~/work/cross/gdb/downloads
wget ftp://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
cd ..
tar xvzf downloads/termcap-1.3.1.tar.gz
mkdir -p ~/work/cross/gdb/build/termcap
cd ~/work/cross/gdb/build/termcap
export CC=powerpc-7450-linux-gnu-gcc
export RANLIB=powerpc-7450-linux-gnu-ranlib
../../termcap-1.3.1/configure --host=powerpc-7450-linux-gnu --prefix=$HOME/work/cross/termcap
make
make install
==================================================== N/S matched: -sharp ===================================================== gtk-sharp2-debuginfo.x86_64 : Debug information for package gtk-sharp2 gtk-sharp2-doc.x86_64 : Monodoc documentation for gtk-sharp2 glade-sharp2.x86_64 : Mono bindings for glade glib-sharp2.x86_64 : Mono bindings for glib gtk-sharp2.x86_64 : .Net Language Bindings for GTK+ gtk-sharp2-complete.x86_64 : GTK+ and GNOME bindings for Mono (virtual package) gtk-sharp2-gapi.x86_64 : C Source Parser and C Generator monodevelop.noarch : Full-Featured IDE for Mono and Gtk-Sharp monodevelop.x86_64 : Full-Featured IDE for Mono and Gtk-Sharp webkit-sharp.noarch : WebKit bindings for Mono Name and summary matches only, use "search all" for everything. [root@centos-bios muf]#