comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL.5.2.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL.5.2.1 [message #18465] Fri, 07 January 2000 00:00
Michael Kueppers is currently offline  Michael Kueppers
Messages: 4
Registered: June 1999
Junior Member
You might want to
> have a look at html://www.rsinc.com

Of course it's http://www.rsinc.com

Sorry,
Michael
Re: IDL.5.2.1 [message #18466 is a reply to message #18465] Fri, 07 January 2000 00:00 Go to previous message
Michael Kueppers is currently offline  Michael Kueppers
Messages: 4
Registered: June 1999
Junior Member
Eiichi Sagawa wrote:
>
> Help needed,
>
> I could remeber that there were several discussions about installation
> problem of IDL 5.2 over Linux/RedHat 6.1 machine, though I was not much
> interested with this topic at that time. I'm having exactly same
> problem now. Could anyone tell me how to cope with this? Seems to me
> problems is related to versin of 'libc'
>
> regards,
>
> Eiichi SAGAWA
> Communications Research Laboratory


The following is a copy of an old message in this newsgroup from
Liam Gumley (I think). It worked at least for Redhat 6.0
I also heard that RSI has released a version 5.2.1 for Linux
in which the installation problem was fixed. You might want to
have a look at html://www.rsinc.com

Regards,
Michael Kueppers


To get IDL 5.2 to work under Redhat 6.0, a patch is required. The
instructions below were posted by Olivier Archer
(mailto:oarcher@ifremer.fr), and have been used here successfully for
two different Linux systems.

---start quote---

Here's another way to get around the problem.
The goal is to define the setfpucw function

__setpucw.c:

void __setfpucw(void)
{
}
void __libc_init(void)
{
}
void _dl_symbol_value()
{
}

Compile it:
#gcc -fPIC -c __setfpucw.c
#ld -shared -o __setfpucw.so -assert pure-text __setfpucw.o

define the LD_PRELOAD environnement variable before launching
idl:
#export LD_PRELOAD=/?/?/__setfpucw.so

---end quote---



--
Michael Kueppers email: kueppers@phim.unibe.ch
Physikalisches Institut Tel: [41] - (31) - 631 4419
Universitaet Bern FAX: [41] - (31) - 631 4405
CH-3012 Bern, Switzerland
Re: IDL.5.2.1 [message #18467 is a reply to message #18465] Fri, 07 January 2000 00:00 Go to previous message
Ivan Zimine is currently offline  Ivan Zimine
Messages: 40
Registered: February 1999
Member
Hello,

You need to get idl_5.2.1L as the easiest solution (or get idl_5.3).
If you really want to get idl_5.2 running on RH6.x then you need to get
an old version of of glibc(2.0.7) and make a script to run idl (see
attachment).

Good luck,
Ivan

Eiichi Sagawa wrote:
>
> Help needed,
>
> I could remeber that there were several discussions about installation
> problem of IDL 5.2 over Linux/RedHat 6.1 machine, though I was not much
> interested with this topic at that time. I'm having exactly same
> problem now. Could anyone tell me how to cope with this? Seems to me
> problems is related to versin of 'libc'
>
> regards,
>
> Eiichi SAGAWA
> Communications Research Laboratory

--
Ivan Zimine
Dpt. of Radiology (MRI), Geneva University Hospitals
email: ivan.zimine@physics.unige.ch
tel. : (+41 22) 372 70 70
> NewsMan wrote:
>>
>> The new RedHat-6.0 Linux with glibc-2.1 breaks IDL-5.2. I got the
>> following error when I invoke IDL.
>> [...]
>
> just a quick status "report" on this. I have just installed IDL on
> RedHat 5.2 and since there are some problems with colortables and fvwm2
> (see earlier article in thsi newsgroup -- btw: lesstif works) I had
> asked RSInc about the patch mentioned earlier. They repied it's a pretty
> old piece of code and not certain that it woiuld still apply.
> FUrthermore I learned, that the RedHat version currently supported by
> RSInc is 5.1 (not 5.2). I dropped a hint that 6.0 is available soon ...
> may take a while before they get into it though.
>
> Martin.
>
>

You can easily install an old glibc (RH 5.2 has 2.0.7), and set up your
LD_PRELOAD environment variable just before running idl (perhaps in a
shell which runs only idl and is used for no other purpose). This way
you can continue using RH 6.0 using glibc-2.1, but IDL will work (and
find this library function it needs to work). Such a script might look
like:

#!/bin/sh
export LD_PRELOAD=/lib/libc-2.0.7
$IDL_DIR/bin/idl


Good Luck,

JD

--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|

> OK, I also am having trouble getting IDL to work with redhat 6.0. I tried the
> above approach after copying libc-2.0.7.so from /usr/i386-glibc20-linux/lib/
> (where the compat files are put) to /lib, but even with the 2.0.7 library I
> get the same error message. Any ideas?

We managed to get IDL to work by installing the compatability libraries. I
then modified the idl script (the one which runs the binary) at the end to
read:

app=$IDL_DIR/bin/bin.$OS$OSVER$ARCH/$APPLICATION

if [ -e /lib/ld-2.0.7.so ] ; then
exec $app $* $APP_ARGS
else
libdir=/usr/i386-glibc20-linux/lib

export LD_LIBRARY_PATH="${libdir}:${LD_LIBRARY_PATH}"
exec ${libdir}/ld-2.0.7.so $app $* $APP_ARGS
fi

This seems to work, although we haven't tried running programs with external
shared libraries.

Jeremy Sanders

--
Jeremy Sanders jss@ast.cam.ac.uk Pembroke College, Cambridge. CB2 1RF
(01223) 337511 Institute of Astronomy, Madingley Road, Cambridge. CB3 0HA

John P Grimes wrote:

> I tried this unfortunately to no avail. Where did you get the compatibility
> files. I certianly have /lib/ld-2.0.7 installed.
> this is the error I get
> /usr/local/rsi/idl_5.2/bin/bin.linux/idlde: error in loading shared libraries
> /lib/libc.so.6: undefined symbol: _dl_initial_searchlist

I didn't mean you should copy old versions to /lib/ld-2.0.7. The check in
the script checks to see which version of RedHat you're using.

Just install:
compat-glibc-5.2-2.0.7.1.i386.rpm
compat-libs-5.2-1.i386.rpm
compat-binutils-5.2-2.9.1.0.23.1.i386.rpm

and change the idl script (or create a new one).
------------------------

Hi,
First thank you jeremy for your help. it definetely helped. What was actually
causing the problem was that /lib/ld-2.0.7.so existed (redhat upgrade left it there)
but libc-2.1.1.so was also in the same directory. So it was using incompatible
version of the libraries. So I just deleted ld-2.0.7 from the directory and now it
is happily loading from the /usr/i386-glibc20-linux/lib directory.
As a side note before running the idl license manager you have to preload
/usr/i486-linux-libc5/lib/ (or whereever you have the libc 5.0 libraries). When is
idl and the license manager going to be updated. The license manager is archaic to
run on libc 5.0 and wouldn't it be easy for idl to support more linux systems? I
"think" it would be worth it.
thanks
John
-----------------------------
IDL 4.01 is linked against some very old aout-libraries:
hell:bin.linux% ldd idl
libXt.so.6 (DLL Jump 6.0) =>
/usr/X11R6/lib/i486-linuxaout/libXt.so.6
libX11.so.6 (DLL Jump 6.0) =>
/usr/X11R6/lib/i486-linuxaout/libX11.so.6
libc.so.4 (DLL Jump 4.6pl27) => /usr/local/lib/libc.so.4
libm.so.4 (DLL Jump 4.6pl27) => /usr/local/lib/libm.so.4

(this is not RH, so locations of the libs are different for you)
If you still have the old RH you possibly can grab those libraries
and install them manually.
At least that works for me (both Debian 2.0 and SuSE 6.1)
  • Attachment: idl5.2_RH6
    (Size: 4.35KB, Downloaded 78 times)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Surface Rendering from multiple 2-D images
Next Topic: Re: Make TV a function of X?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:55:33 PDT 2025

Total time taken to generate the page: 0.00764 seconds