Welcome to iraf.net Friday, March 29 2024 @ 11:38 AM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Installing the new ECL
   
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/

 
 Quote
emiliano
 12/22/2005 12:45PM  
+++--
Chatty

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.

 
Profile Email
 Quote
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]

 
 Quote
kwi
 12/22/2005 12:45PM  
+----
Newbie

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

 
Profile Email
 Quote
shashi
 12/22/2005 12:45PM  
+----
Newbie

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

 
Profile Email Website
 Quote
knine
 12/22/2005 12:45PM  
+----
Newbie

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

 
Profile Email
 Quote
jturner
 12/22/2005 12:45PM  
+++++
Active Member

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.

 
Profile Email
 Quote
knine
 12/22/2005 12:45PM  
+----
Newbie

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]

 
Profile Email
 Quote
jturner
 12/22/2005 12:45PM  
+++++
Active Member

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.

 
Profile Email
 Quote
jturner
 12/22/2005 12:45PM  
+++++
Active Member

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:

           
          Profile Email
           Quote
          MikalH
           12/22/2005 12:45PM  
          +----
          Newbie

          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]

           
          Profile Email
           Quote
          rubab
           12/22/2005 12:45PM  
          ++---
          Junior

          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/

           
          Profile Email
           Quote
          jturner
           12/22/2005 12:45PM  
          +++++
          Active Member

          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.

           
          Profile Email
           Quote
          BrainBug
           12/22/2005 12:45PM  
          ++---
          Junior

          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. Smile
          But then i reading such posts like this, i again and again feel happiness with Gentoo.

           
          Profile Email Website
           Quote
          bpohl
           12/22/2005 12:45PM  
          +----
          Newbie

          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.

           
          Profile Email Website
           Quote
          fitz
           12/22/2005 12:45PM  
          AAAAA
          Admin

          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

           
          Profile Email
           Quote
          bpohl
           12/22/2005 12:45PM  
          +----
          Newbie

          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.

           
          Profile Email Website
           Quote
          fitz
           12/22/2005 12:45PM  
          AAAAA
          Admin

          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

           
          Profile Email
           Quote
          jturner
           12/22/2005 12:45PM  
          +++++
          Active Member

          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.

           
          Profile Email
           Quote
             
          Content generated in: 0.35 seconds
          New Topic Post Reply

          Normal Topic Normal Topic
          Sticky Topic Sticky Topic
          Locked Topic Locked Topic
          New Post New Post
          Sticky Topic W/ New Post Sticky Topic W/ New Post
          Locked Topic W/ New Post Locked Topic W/ New Post
          View Anonymous Posts 
          Anonymous users can post 
          Filtered HTML Allowed 
          Censored Content 
          dog allergies remedies cialis 20 mg chilblain remedies


          Privacy Policy
          Terms of Use

          User Functions

          Login