[Thread Prev][Thread Next][Index]

linux ferret debian packages (was Re: termcap & ncurses on linux (wasRe: segemntation fault))



Hello Kevin,

I've set up an experimental apt repository for linux debian.

the ferret debian package is on
ftp://ftp.ifremer.fr/pub/ifremer/cersat/debian/dists/stable/contrib/binary-i386/ferret_5.52-1_i386.deb

as you can see, it's ferret 5.52b, compiled with gnu f77. (because it's the one I need, as other version are buggy on read only filsystem)

So, here is the ferret/debian easy install:

1- add to your /etc/apt/sources.list
deb ftp://ftp.ifremer.fr/pub/ifremer/cersat/debian/ stable contrib

2- as usual on debian
apt-get update
apt-get install ferret


Note on packaging:
It's a whole package, including cdf_fer_dsets.tar.Z fer_executables.tar.Z fer_environment.tar.Z. Perhaps i'll well do better in the future.


executable are under /lib/ferret/5.52b
dataset and environnement are under /usr/share/ferret/5.52b
doc is under /usr/share/doc/ferret/

/usr/bin/ferret is a bash script who set the env, and call the real executable. There's an hack in it, ie:
export LD_LIBRARY_PATH=${FER_DIR}
and I've set up a link in ${FER_DIR}
libtermcap.so.2 -> /lib/libncurses.so.5

This should temporary avoid termcap/ncurses confusion


here the log of a normal operation:

datacer:/# apt-get install ferret
Reading Package Lists...
Building Dependency Tree...
The following extra packages will be installed:
libfreetype6 libstdc++2.10 xfree86-common xlibs
The following NEW packages will be installed:
ferret libfreetype6 libstdc++2.10 xfree86-common xlibs
0 packages upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 2116kB/34.3MB of archives. After unpacking 6730kB will be used.
Do you want to continue? [Y/n]
Get:1 ftp://ftp.lip6.fr stable/main xfree86-common 4.1.0-16 [545kB]
Get:2 ftp://ftp.lip6.fr stable/main libfreetype6 2.0.9-1 [209kB]
Get:3 ftp://ftp.lip6.fr stable/main xlibs 4.1.0-16 [1223kB]
Get:4 ftp://ftp.lip6.fr stable/main libstdc++2.10 1:2.95.2-14 [139kB]
Fetched 2116kB in 3s (637kB/s)
Selecting previously deselected package xfree86-common.
(Reading database ... 6340 files and directories currently installed.)
Unpacking xfree86-common (from .../xfree86-common_4.1.0-16_all.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.0.9-1_i386.deb) ...
Selecting previously deselected package xlibs.
Unpacking xlibs (from .../xlibs_4.1.0-16_i386.deb) ...
Selecting previously deselected package libstdc++2.10.
Unpacking libstdc++2.10 (from .../libstdc++2.10_1%3a2.95.2-14_i386.deb) ...
Selecting previously deselected package ferret.
Unpacking ferret (from .../ferret_5.52-1_i386.deb) ...
Setting up xfree86-common (4.1.0-16) ...

Setting up libfreetype6 (2.0.9-1) ...

Setting up libstdc++2.10 (2.95.2-14) ...

Setting up xlibs (4.1.0-16) ...

Setting up ferret (5.52-1) ...
datacer:/# ferret
NOAA/PMEL TMAP
FERRET v5.52 (beta)
Linux 2.4.3-12smp - 04/22/03
23-Jul-03 15:00

yes?


--
Olivier


Kevin O'Brien wrote:

Olivier Archer wrote:

Mahdi Ben Jelloul wrote:

That is the information I needed.
The problem was that I installed and desinstalled termcap-compat after
installing libncurses5-dev so it removed  libtermcap.so.
I forced the reinstallation of libncurses5-dev and now everything
works well.

I just have to register ....

Encore merci,

so libtermcap.so.2 is a link to libtermcap.so who is a link to libncurses.so...
Here some information on the same problem on poplog:

http://www.poplog.org/talk/comp.lang.pop/2001/msg00018.html
http://www.poplog.org/talk/comp.lang.pop/2001/msg00016.html

So conclusion should be that linux (and since solaris 2.0) application have to be recompiled with libncurses instead libtermcap. This is perhaps true for other unix OS. This should avoid confusion.


Hello Olivier -

Thanks for the information and sending those links discussing the issue.. I will look into eliminating the termcap dependency in Ferret builds and instead use the curses library for Linux distributions. This change will be included in the next available release.

Thanks again for the info -

Kevin


---
Kevin O'Brien UW/JISAO Research Scientist NOAA/PMEL/TMAP
206-526-6751 http://tmap.pmel.noaa.gov








[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement