[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: termcap library

On Wed, Nov 22, 2000 at 02:33:32AM +0500, Derek Martin wrote:
> I am attempting to install the spice3f5 circuit simulator available
> from Berkeley.  It seems to compile fine, until the end where it loads
> the main executable, and gives the following error:
> /usr/bin/ld: cannot find -ltermcap
> I am using Potato, and I have the termcap-compat package installed.
> libtermcap.so.2 is in /lib where it should be.  Anyone know what I
> should do to get this admittedly rather old program to build?

In the termcap-compat description you'll see:

The termcap-compat package isn't meant to be used to compile programs
therefore it doesn't provide all the necessary files for compilation.
If you want to compile a program that claims to need termcap, why not
try ncurses's termcap emulation instead? It's as simple as linking with
ncurses instead of libtermcap (i.e. replace the '-ltermcap' with
'-lncurses' in the makefile). Ncurses' termcap emulation routines
translate terminfo entries to termcap entries on the fly, so you don't
even need an /etc/termcap file.

So, I guess, try editing the top-level Makefile an replace -ltermcap
with -lncurses (of course you'll need the libncurses5-dev package).

Eric G. Miller <egm2@jps.net>

Reply to: