Anonymous: Guest |
12/22/2005 12:45PM (Read 31998 times)
|
|
|
|
Hi!I just installed the latest IRAF release in a laptop under Suse 10.0 and
it works fine. However I tried to install the new ECL with the source tar
ball, and also with the linux and redhat installers as well. The
installers don't complain but when I try to run ecl I always get:
"/iraf/iraf/bin.suse/ecl.e: error while loading shared libraries:
libtermcap.so.2: cannot open shared object file: No such file or
directory"Is there any solution? Or we can't still run the new ECL under SUSE?Thanks!Dimitri.
--
Dr. Dimitri Alexei Gadotti
Max Planck Institute for Astrophysics
Karl Schwarzschild Str., 1
85741 Garching bei Muenchen, Germany
Office: 228 - Phone: +49(0)89-30000.2216
http://www.mpa-garching.mpg.de/~dimitri/
|
|
|
|
emiliano |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 12/05/2005
Posts: 38
|
Hello Dimitri,I had the same problem installing IRAF on Debian (Sarge).
I installed the package "termcap-compat", which installs the libtermcap and the termcap database. I guess you can install a similiar package with Yast, just search for termcap.Emiliano.
|
|
|
|
Anonymous: |
12/22/2005 12:45PM
|
|
|
|
Hi Emiliano!First of all, sorry for such a delay in my answer, but I didn't know that my email had been forwarded here!I found a "termcap-compat" rpm file for an older version of SUSE, installed and... the ECL now works!Thanks a lot!Dimitri.[b:b905d4db9c][Moderator's Note: A statically linked version of the linux ECL binary is available at https://iraf.net/ftp/pub/fitz/ecl.e, future releases will try to avoid requiring the termcap libs][/b:b905d4db9c]
|
|
|
|
kwi |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 10/10/2006
Posts: 1
|
[quote:06fd0e23c5="Anonymous"]Hi Emiliano!First of all, sorry for such a delay in my answer, but I didn't know that my email had been forwarded here!I found a "termcap-compat" rpm file for an older version of SUSE, installed and... the ECL now works!Thanks a lot!Dimitri.[b:06fd0e23c5][Moderator's Note: A statically linked version of the linux ECL binary is available at https://iraf.net/ftp/pub/fitz/ecl.e, future releases will try to avoid requiring the termcap libs][/b:06fd0e23c5][/quote:06fd0e23c5]termcap-compat is not available for Ubuntu, also the link above does not work. What to do..?Thanks,Kaj
|
|
|
|
shashi |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 11/02/2005
Posts: 4
|
[quote:1ef8d130a7="kwi"]
[b:1ef8d130a7][Moderator's Note: A statically linked version of the linux ECL binary is available at https://iraf.net/ftp/pub/fitz/ecl.e, future releases will try to avoid requiring the termcap libs][/b:1ef8d130a7][/quote:1ef8d130a7]It says permission denied for https://iraf.net/ftp/pub/fitz/ecl.e [quote:1ef8d130a7="kwi"]
termcap-compat is not available for Ubuntu, also the link above does not work. What to do..?
Kaj[/quote:1ef8d130a7]You could try to look for this from older ubuntu releases (The ones from ubuntu-breezy are reported to work on the latest ubuntu - dapper drake)
Shashi
|
|
|
|
knine |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 11/29/2005
Posts: 14
|
Moderator:The link is bad (404) to the ecl.e binary above (the comma is in the URL) and when I take the comma out, I get a 403 error. I need this binary since I'm using Ubuntu. Thanks a ton.- Jake
|
|
|
|
jturner |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 12/29/2005
Posts: 165
|
Hi everyone,I get the same termcap error as above under Ubuntu 6.06. I downloaded the statically linked version of ecl referenced above and it seems to work, but first gives the following errors on startup:[quote:050cec8201]prompt$ ecl
ERROR (501, "segmentation violation")
ERROR (501, "segmentation violation")
setting terminal type to xgterm...
[/quote:050cec8201]
Not sure yet whether this is likely to be a problem in practice.Cheers,James.
|
|
|
|
knine |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 11/29/2005
Posts: 14
|
Here's is the solution I figured out for Ubuntu 6.06 with a little help from phil. Make sure libncurses5-dev installed. Then in /usr/lib create the soft link:[b:e7e23c49da]ln -s libtermcap.so libtermcap.so.2[/b:e7e23c49da]
|
|
|
|
jturner |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 12/29/2005
Posts: 165
|
Thanks for the hint, knine. That symbolic link seems a bit back to front from normal to me, though... I can't imagine it matters, but the following also works, without the need to install libncurses5-dev:
[code:1:f06fabe7bd]ln -s /lib/libncurses.so.5 libtermcap.so.2[/code:1:f06fabe7bd]
I put the link in /usr/local/lib, in which case LD_LIBRARY_PATH has to include that directory.Anyway, now it works, thanks ;-).Cheers,James.
|
|
|
|
jturner |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 12/29/2005
Posts: 165
|
Following on from the 2 posts above, I was trying to figure out how to keep the libtermcap.so.2 dependency in /usr/local/lib rather than /lib (so as to avoid any possible conflicts with system upgrades etc.) without having to set "LD_LIBRARY_PATH" in the environment for every user.This requires creating /etc/ld.so.conf (it doesn't exist by default in Ubuntu) with the following contents:
|
|
|
|
MikalH |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 11/08/2006
Posts: 5
|
The 'proper' solution on Ubuntu is to install the Breezy 5.10 libtermcap-compat. It's not in Dapper or Edgy, but at least the package manager can keep track of things this way. It'll be kept as a 'local' packages and won't be removed or updated automatically as there is no replacement in the repos.Download it and its dependencies from
http://packages.ubuntu.com/breezy/oldlibs/termcap-compat
http://packages.ubuntu.com/breezy/oldlibs/libc5
http://packages.ubuntu.com/breezy/oldlibs/ldso[b:7466b614f3]UPDATE: The Ubuntu package site seems to have just lost all of the individual package pages for breezy, though it still has the links to them. Weird.[/b:7466b614f3]
You can instead get them from the repos directly:
http://archive.ubuntu.com/ubuntu/pool/universe/t/termcap-compat/termcap-compat_1.2.3_i386.deb
http://archive.ubuntu.com/ubuntu/pool/universe/libc/libc/libc5_5.4.46-15_i386.deb
http://archive.ubuntu.com/ubuntu/pool/universe/l/ld.so/ldso_1.9.11-15_i386.debInstall them using dpkg:
[code:1:7466b614f3]sudo dpkg -i ldso_1.9.11-15_i386.deb libc5_5.4.46-15_i386.deb termcap-compat_1.2.3_i386.deb[/code:1:7466b614f3]
[i:7466b614f3]Edit: This works on amd64 too. You'll need to use the --force-architecture flag with dpkg.[/i:7466b614f3]
|
|
|
|
rubab |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 06/18/2007
Posts: 17
|
This page describes how to setup IRAF on a Ubuntu/Debian machine. Apart from the exact commands, there are some instructions in square brackets that need to be followed. Installation of X11IRAF, DS9, Tables, and STSDAS are included.http://geco.phys.columbia.edu/~rubab/iraf/
|
|
|
|
jturner |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 12/29/2005
Posts: 165
|
For the record, I have just discovered that Ubuntu Dapper's "libtermcap" is provided by the package "libncurses5-dev".So, I think installing libncurses5-dev supercedes using Breezy's libtermcap-compat as the correct solution, doesn't it?I also needed this package to compile Python with readline.Cheers,James.
|
|
|
|
BrainBug |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 10/30/2006
Posts: 33
|
OMG! :shock:
Too many problems with system software!
Install Gentoo and no problems! :wink:
Sorry, my post is not an advertising of Gentoo distro.
But then i reading such posts like this, i again and again feel happiness with Gentoo.
|
|
|
|
bpohl |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 06/20/2006
Posts: 6
|
Okay I'm trying to compile ecl on a debian linux box and it chokes on the following compile statement...
xc -c -w -/I. binop.c bkg.c builtin.c clprintf.c clsystem.c compile.c debug.c decl.c edcap.c eparam.c errs.c exec.c gquery.c gram.c history.c lists.c main.c modes.c operand.c param.c pfiles.c prcache.c scan.c stack.c task.c unop.c ytab.c
clprintf.c: In function 'u_eprintf':
clprintf.c:27: error: expected declaration specifiers before '...' token
clprintf.c:52: error: expected declaration specifiers before 'oprintf'....I have libncurses5-dev installed (which helps with the libtermcap issues), but I can't get around this issue.any ideas?bri.
|
|
|
|
fitz |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
The error messages are part of the usual fun with stdarg/varargs changes in newer GCC compilers. The system's already been changed in the next release to handle this, for now there's a binary athttps://iraf.net/ftp/pub/fitz/ecl.e that should work.-Mike
|
|
|
|
bpohl |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 06/20/2006
Posts: 6
|
Thanks for the link Mike. However, when I installed it and ran it, I encountered the following error:ecl> imstat dev$pix
# IMAGE NPIX MEAN STDDEV MIN MAXPANIC in `/usr/local/lib/iraf/iraf/bin.linux/x_images.e': Memory has been corrupted
dev$pix 262144 108.3 131.3 -1. 19936.
this was a personal install, not a system wide install of ecl.regular old cl works just fine btw.bri.
|
|
|
|
fitz |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Try putting the command limit stacksize unlimitedin your .cshrc file (or 'ulimit -s unlimited' if you use Bash). This is normally done in the cl.csh script but if all you did was install the binary there may be something weird going on. If you're using v2.13 ECL should already be available (if this is the Debian pkg version, there are other problems....)-Mike
|
|
|
|
jturner |
12/22/2005 12:45PM
|
|
|
Status: offline
Registered: 12/29/2005
Posts: 165
|
[quote:5f005a78a4="jturner"]For the record, I have just discovered that Ubuntu Dapper's "libtermcap" is provided by the package "libncurses5-dev".So, I think installing libncurses5-dev supercedes using Breezy's libtermcap-compat as the correct solution, doesn't it?[/quote:5f005a78a4]
I have started using Ubuntu 8.10 now. The link "/usr/lib/libtermcap.so" is still provided by libncurses5-dev, but "libtermcap.so.2" is not. Therefore it seems to be necessary to go back to creating a link manually somewhere in ld's search path:[code:1:5f005a78a4]libtermcap.so.2 -> /usr/lib/libtermcap.so[/code:1:5f005a78a4]Someone had previously stated that installing libtermcap-compat from Ubuntu Breezy is the preferred option, but that doesn't really seem tenable now Breezy is >3yrs old and unsupported.James.
|
|
|
|