View Full Version : libtermcap

James Board
13th August 2008, 09:36 PM
I'm on FC9 and I'm trying to compile/link programs that use libtermcap (-ltermcap). The linker can't find it:

/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status

However, there's a libtermcap in the /lib directory:

> ls /lib | grep libterm

What am I doing wrong?


13th August 2008, 10:17 PM
try adding
-B /llib to "Add <directory> to the compiler's search paths" according to docs

James Board
13th August 2008, 10:58 PM
That doesn't work.

It sounds like I need the libtermcap.a file, not the libtermcap.so files. The libtermcap.a file isn't installed on this system (and I don't have root permissions). I can find libtermcap.a in the lib-termcap-devel RPM file but I can't install it without root. Does anyone know how I can extract a specific file from an RPM package without root? I could then put that file in my home directory and link to it.


13th August 2008, 11:05 PM
rpms are usually opened fine with file-roller