Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

問一下 libtermcap 這東西...

68 views
Skip to first unread message

phinex

unread,
Feb 7, 2001, 6:03:17 AM2/7/01
to
這東西在 RedHat 裡面可以用 rpm 裝 (libtermcap-xxx.rpm)
但是我在 Debian 2.2 r2 裡面用 apt-cache search 只找到
termcap-compat 這東西..
用 apt-get install termcap-compat 之後..
系統還是沒辦法 link termcap 這個 library..
不知道有沒有什麼解決的辦法?
謝謝..


--
To UNSUBSCRIBE, email to debian-chines...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

ha shao

unread,
Feb 7, 2001, 6:21:44 AM2/7/01
to
On Wed, Feb 07, 2001 at 07:03:17PM +0800, phi...@hpcc.ee.nthu.edu.tw wrote:
> 涴陲昹婓 RedHat 爵醱褫眕蚚 rpm 蚾 (libtermcap-xxx.rpm)
> 筍岆扂婓 Debian 2.2 r2 爵醱蚚 apt-cache search 硐梑善
> termcap-compat 涴陲昹..
> 蚚 apt-get install termcap-compat 眳綴..
> 炵苀遜岆羶域楊 link termcap 涴跺 library..
> 祥眭耋衄羶衄妦繫賤樵腔域楊?
> 郅郅..

It said you should like it with ncurses

Package: termcap-compat
Priority: extra
Section: oldlibs
Installed-Size: 651
Maintainer: Christian Hudon <chr...@debian.org>
Architecture: i386
Version: 1.2.3
Replaces: libtermcap
Depends: libc5 (>= 5.4.0-0)
Conflicts: libtermcap
Filename: dists/potato/main/binary-i386/oldlibs/termcap-compat_1.2.3.deb
Size: 217490
MD5sum: 5c520fed199307446686ef5b61c5ea2a
Description: Compatibility package for old termcap-based programs.
The termcap-compat package provides the libtermcap.so.2 and /etc/termcap
files which are required to run non-Debian, binary-only termcap-based
programs. Since libc6-based programs are hopefully "modern" enough to be
linked with ncurses (or slang), this package only provides a libc5-based
libtermcap library.
.
You do not need to install this package to run Debian-packaged programs
since Debian GNU/Linux uses terminfo and not termcap. You need this
package if a program (that you cannot recompile) fails to run with
the error message "...: can't load library 'libtermcap.so.2'" or complains
about a missing /etc/termcap file.
.
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.
.
This package provides:
libtermcap.so shared library, version 2.0.8
termcap database, version 10.2.7

--
Best regard
hashao

phinex

unread,
Feb 7, 2001, 7:10:12 AM2/7/01
to

Actually, I have installed "ncurses3.0" and "termcap-compat", and
successfully compile the program( bbs program, I also modify the library
must be linked). But when I execute the compiled program, segmentation
fault is happened. Then I turn to get a copy of "termcap.a" from the
machine installed RedHat, this time I can successfully run the program.
Anyone knows what's the problem ? Thanks a lot.

--
Sheng-Kai Hung ICQ: 10497781
E-mail: phi...@hpcc.ee.nthu.edu.tw
恨情歌工作坊: telnet://hls.twbbs.org
Dept. of Electrical Engineering, National Tsing Hua University

0 new messages