ltermcap missing

Linux specific questions.
blhandi2
Posts: 10
Joined: Dec 05, 2005 15:41

ltermcap missing

Post by blhandi2 »

v.14 binary ran great on my DSL linux. v.15 will not compile a program and reports it cannot find ltermcap. I tried adding libncurses5-dev and it did not help. In What direction should I start looking.
I love the software, thanks.

I added gtk2 libriaries which included a
link from libtermcap.so.2 to libncurses.so.5.4
Still same error. Library stuff is new to me, is
ltermcap and libtermcap the same thing?

OK, thanks for the help. I did get it to compile by adding the libcurses5-dev stuff. It helped to know what to look for.
Terminal stuff stopped working. all the Chr$(27) ansi color no longer works Nor the r$=input$(1) stuff. Im still very happy. and patient.
Last edited by blhandi2 on Dec 13, 2005 21:31, edited 2 times in total.
v1ctor
Site Admin
Posts: 3804
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Post by v1ctor »

That's weird, libtermcap should be installed by ncurses, try installing libncurses5 too (without the -dev).
Nexinarus
Posts: 146
Joined: May 28, 2005 6:08
Location: Everywhere
Contact:

Post by Nexinarus »

I had the same problem with ubuntu linux 5.10, so i installed libncurses5-dev and it worked.
Sterling Christensen
Posts: 142
Joined: May 27, 2005 6:13

Post by Sterling Christensen »

Same problem here.

On Gentoo Linux, ncurses doesn't install libtermcap.

If I create a symlink:

Code: Select all

cd /usr/lib/
ln -s libncursesw.a libtermcap.a
Then FB apps will compile and run, but with the wrong character set (no box drawing characters, etc) in every console I've tried (konsole, gnome-terminal, xterm). It doesn't seem to matter if I symlink to libncurses.a or libncursesw.a

Gentoo does have a libtermcap-compat package ("Compatibility package for old termcap-based programs"), but the only libraries it installs are:

Code: Select all

/lib/libtermcap.so.2.0.8
/lib/libtermcap.so.2 -> libtermcap.so.2.0.8
And no *.a files.

The Gentoo developers are planning to remove libtermcap-compat from Gentoo's package database:
http://bugs.gentoo.org/show_bug.cgi?id=103105

I also found this, "termcap is super obsolete (coreutils-5.0.91-r3)":
http://bugs.gentoo.org/show_bug.cgi?id=37026
Nexinarus
Posts: 146
Joined: May 28, 2005 6:08
Location: Everywhere
Contact:

Post by Nexinarus »

Yeah.. why did old version of freebasic not need termcap - or did they?
Sterling Christensen
Posts: 142
Joined: May 27, 2005 6:13

Post by Sterling Christensen »

Nexinarus wrote:Yeah.. why did old version of freebasic not need termcap - or did they?
Nope they didn't. I never had libtermcap before, and older versions of FB ran (but I never could see box drawing characters in text mode).
v1ctor
Site Admin
Posts: 3804
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Post by v1ctor »

As far i know (Angelo has much more knowledge about that) termcap is implemented/emulated by ncurses since years ago, so installing libncurses should install the termcap library too (or a symlink to the ncurses one).

I've no idea why Gentoo doesn't include that, we may need multiple releases as .rpm, .deb and tar.gz with all dependencies defined, but without a script to do all the automation that will be too painful to do.. i don't have much experience with shell scripting, just the elementary stuff.
sheffguy1984
Posts: 12
Joined: Dec 24, 2005 20:49
Location: Sheffield, England

Post by sheffguy1984 »

Hi Guys, I'm still having trouble with ver. 0.15b on SUSE 9.1 pro.
The message I get (as you probably all know by now) is:
/usr/share/freebasic/bin/linux/ld: cannot find -ltermcap

How would I check to see if I do have it installed? ie. what files should be where? I yast installed ncurses, termcap, termcap-dev etc as mentioned in the other posts to no avail.

I m now starting to wonder if it is something silly like a permissions problem or something. However I do not know which files FB is specifically looking for.

Any help would be apriciated.

Nick
mg
Posts: 93
Joined: Sep 13, 2005 15:18

Post by mg »

My friend had problem with termcap on slackware, but she installed termcap as another package not as part of ncurses.

I use fedora core 4 and I checked packages on it and I have:

[marcin@myComp ~]$ rpm -qa | grep termcap
libtermcap-devel-2.0.8-41
termcap-5.4-4
libtermcap-2.0.8-41
[marcin@myComp ~]$

So if you have program to install packages from net try it, for example:

fedora uses: yum install termcap
slackware uses: swaret --install termcap
debian uses: apt-get install termcap

or you can find package manually on:

www.tuxfider.com

and install it manually.

Regards,
mg
sheffguy1984
Posts: 12
Joined: Dec 24, 2005 20:49
Location: Sheffield, England

Post by sheffguy1984 »

Thanks mg, I downloaded termcap from tuxfinder as a tar.bz2 and copied the files into place manually. This seams to have fixed it (for now at least).
Now to see why FB's complaining about it's own library :S

Just out of interest does anyone here use SUSE??
The latest version I have had working so far on SUSE 9.1 pro is 0.11b. I was just wondering if anyone had done any testing with it. I would be more than happy to carry out some tests, however you would have to bare in mind that I am a relative newbie when it comes to delving this far into linux. I am more than happy to learn however if someone would like to impart they're knowledge :D.

Regards
Nick
mg
Posts: 93
Joined: Sep 13, 2005 15:18

Post by mg »

SUSE uses YAST program to manage packages.

http://www.novell.com/coolsolutions/trench/15408.html

but before using yast you have to set repository files to instal automatically package from net.
(read more about yast)

If you want downlad package manually from tuxfinder
mark on tuxfider page:

i386.rpm

and

other .rpm

(bz2 is marked as default).

You can downlad a rpm for another distro, for exaple with "mdk" or "fc4" in a title.

Next you can install automatically this rpm using yast:

yast -i /path_to_rpm_file/filename.rpm.

Regards
mg

EDIT:

http://opensource.weblogsinc.com/2005/1 ... -software/
sheffguy1984
Posts: 12
Joined: Dec 24, 2005 20:49
Location: Sheffield, England

Post by sheffguy1984 »

hehe sorry mg thats not quite what I ment. I can use yast, the company I work for is a SUSE partner.
What I ment was that I'm not sure when it comes to dealing with the programming side of library's etc.

For example FBC is currently giving me undefined references in start.S and libfb_hinit.c

Regards

Nick
v1ctor
Site Admin
Posts: 3804
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Post by v1ctor »

Angelo changed it to link to ncurses instead (that implements the termcap in libnurses, not in libtermcap in modern distros, Debian/Ubuntu seems to come with a link from libtermcap->libncurses, so no error appeared - FB Linux is tested it in Ubuntu only).

Corrected only in the v0.16 in CVS, until i release the Linux testing version soon.
sheffguy1984
Posts: 12
Joined: Dec 24, 2005 20:49
Location: Sheffield, England

Post by sheffguy1984 »

Thanks V1ctor.
I have managed to solve the problem with libfb.a by creating a symlink:
/usr/lib/libtermcap.a -> libncurses.a (note. libncurses.a NOT libncursesw.a).
The start.S problem still exists for me however so I will keep trying to grab a copy of the CVS. I tried last night but it appeared to be empty :S probably just human error on my part. I'll try again today.

I would also like to thank you on producing a great piece of software.

Regards

Nick
sheffguy1984
Posts: 12
Joined: Dec 24, 2005 20:49
Location: Sheffield, England

Post by sheffguy1984 »

Ok, it's human error, CVS is NOT empty. You just need to know where to look.
Easy when you know how :P


Nick
Post Reply