Re: LINUX IDL Install Help [message #49399] |
Mon, 24 July 2006 11:41 |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
Also, as far as finding where the intallation process put things, you
can try, as root:
updatedb
(this will take a hwile but update the database of where everything is)
locate idl (or sometimes slocate idl) should sho wyou where idl things
are put...
Hope this helps,
Gianguido
PS: whule installing idl6.0 on Red Hat I always got a bunch of kryptic
error messages I could dismiss with a mouseclick. It turns out all the
functionality I need was still there despite the errors...
David Fanning wrote:
> Ha! Alas, there is *nothing* installed in /usr/local/bin, which is where we were trying
> to install everything.
>
> I know UNIX users are suppose to know this stuff, but, well...I'm
> working
> with scientists here. The UNIX knowledge among the whole lot of us
> would
> hardly fill a thimble, I'm afraid. :-(
>
> Awaiting your, as ever, helpful replies...
>
> Cheers,
>
> David
|
|
|
Re: LINUX IDL Install Help [message #49409 is a reply to message #49399] |
Sun, 23 July 2006 16:11  |
swingnut
Messages: 30 Registered: September 2005
|
Member |
|
|
I looked into this a back when I first installed Ubuntu; sounds like
it's trying to do a Red Hat install, whereas you want a Debian (enough
locations are different that like can be a pain). From
http://astro.berkeley.edu/~robishaw/comp/idl.html, here is a list of
things to change:
Installing IDL on my Debian laptop was a pain because the IDL install
software assumes Redhat Linux. Lame. So here's what needed changing.
First, change the lmgrd_install script in your /usr/local/rsi/idl/bin
directory (or wherever the hell you've put it... this is the default
location). Go down to the "Linux") option in the case statement and
comment out the junk they've put there and stick the stuff below in...
# THIS ASSUMES WE'RE USING RED HAT...
# RED HAT RUN LEVELS ARE STORED IN /etc/rc.d/rc[0-6].d/
# DEBIAN RUN LEVELS ARE STORED IN /etc/rc[0-6].d/
#cp sys5_idl_lmgrd /etc/rc.d/init.d
cp sys5_idl_lmgrd /etc/init.d
# if [ -f /etc/rc3.d/S99sys5_idl_lmgrd ]; then
# rm -f /etc/rc3.d/S99sys5_idl_lmgrd
# fi
# if [ -f /etc/rc4.d/S99sys5_idl_lmgrd ]; then
# rm -f /etc/rc4.d/S99sys5_idl_lmgrd
# fi
# if [ -f /etc/rc5.d/S99sys5_idl_lmgrd ]; then
# rm -f /etc/rc5.d/S99sys5_idl_lmgrd
# fi
# if [ -f /etc/rc0.d/K01sys5_idl_lmgrd ]; then
# rm -f /etc/rc0.d/K01sys5_idl_lmgrd
# fi
# ln -s /etc/rc.d/init.d/sys5_idl_lmgrd /etc/rc3.d/S99sys5_idl_lmgrd
# ln -s /etc/rc.d/init.d/sys5_idl_lmgrd /etc/rc4.d/S99sys5_idl_lmgrd
# ln -s /etc/rc.d/init.d/sys5_idl_lmgrd /etc/rc5.d/S99sys5_idl_lmgrd
# ln -s /etc/rc.d/init.d/sys5_idl_lmgrd /etc/rc0.d/K01sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc3.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc4.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc5.d/S99sys5_idl_lmgrd
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc0.d/K01sys5_idl_lmgrd
# I'M GOING TO ADD ONE TO RUN LEVEL 2 TO SEE WHAT HAPPENS...
# AND THIS IS WHAT IT NEEDED... HOURS WASTED...
ln -sf /etc/init.d/sys5_idl_lmgrd /etc/rc2.d/S99sys5_idl_lmgrd
OK, next you need to alter the sys5_idl_lmgrd script in the same
directory. Go
down to the "start") option of the case statement and, as above,
comment out and
add the stuff as below:
# WE DON'T WANT TO RUN THIS AS ROOT... IT'S DANGEROUS...
# "start") $IDL_DIR/bin/lmgrd >> $LOG_FILE_NAME &
"start") su -c "umask 022;$IDL_DIR/bin/lmgrd &"
sleep 5 ;;
Now we can test this by running:
> sudo sys5_idl_lmgrd start
and now try running IDL and see if the license is recognized.
I had to (as root) create a subdirectory /usr/tmp which I just linked
to
/var/tmp...
> sudo ln -s /var/tmp /usr/tmp
Now, it's good to go.
June 2006: One more hitch I discovered... to get the IDL assistant to
work
correctly, I needed to give the user ownership of the directories
~/.assistant and ~/.qt (and the contents of these directories as well).
This fixed my problems.
|
|
|
Re: LINUX IDL Install Help [message #49422 is a reply to message #49409] |
Fri, 21 July 2006 11:46  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
>
> P.S. This is a "fairly new" version of Debian LINUX and we are installing
> IDL 6.1 an RSI-supplied CD, if that is any help.
Might be easier to download the tarball and 'unpack' script from
ITTVISRSI*&^%$#WTH. Just put it into /usr/local/rsi, and "sh unpack".
JD
|
|
|
Re: LINUX IDL Install Help [message #49423 is a reply to message #49422] |
Fri, 21 July 2006 11:44  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Fri, 21 Jul 2006 10:28:12 -0700, David Fanning wrote:
> F�LDY Lajos wrote:
>
>> if you mount the CDROM by clicking on an icon, this usually uses the
>> noexec flag for mount (so normal users get only restricted permission).
>> Try to mount manually (as root):
>>
>> mount -r -t iso9660 /dev/cdrom /mnt
>> cd /mnt
>> ./xinstall.sh or /bin/sh xinstall.sh
>
> Ok, gentlemen, making progress. Although as always with LINUX, the pace is
> slow, really, really slow. (Who uses this stuff anyway?! I'd be off having
> dinner if I was a Mac user, I'm sure of it.) :-)
>
> We can now run the script and the installation begins. We get to the stage
> where we are asked to select what we want installed. We just want the
> default,
> so all looks terrific and we hit the INSTALL button in front of us. We get
> this
> message:
>
> /usr/local/rsi/idl_6.1/bin/post_unpack was not found. There may be
> errors...
>
> The installation continues on a bit (unhelpfully, as it turns out) and
> even
> (eventually) reports that "IDL was successfully installed!". Ha! Alas,
> there
> is *nothing* installed in /usr/local/bin, which is where we were trying to
> install everything.
>
> I know UNIX users are suppose to know this stuff, but, well...I'm working
> with scientists here. The UNIX knowledge among the whole lot of us would
> hardly fill a thimble, I'm afraid. :-(
IDL goes in /usr/local/rsi/idl_XX, by default, and makes links (if
requested) in /usr/local/bin. You could probably just do (as root):
% ln -s /usr/local/rsi/idl/bin/idl /usr/local/bin/
and be up and running.
JD
|
|
|
Re: LINUX IDL Install Help [message #49426 is a reply to message #49423] |
Fri, 21 July 2006 10:28  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
FÖLDY Lajos wrote:
> if you mount the CDROM by clicking on an icon, this usually uses the
> noexec flag for mount (so normal users get only restricted permission).
> Try to mount manually (as root):
>
> mount -r -t iso9660 /dev/cdrom /mnt
> cd /mnt
> ./xinstall.sh or /bin/sh xinstall.sh
Ok, gentlemen, making progress. Although as always with LINUX, the pace
is slow, really, really slow. (Who uses this stuff anyway?! I'd be off
having
dinner if I was a Mac user, I'm sure of it.) :-)
We can now run the script and the installation begins. We get to the
stage
where we are asked to select what we want installed. We just want the
default,
so all looks terrific and we hit the INSTALL button in front of us. We
get this
message:
/usr/local/rsi/idl_6.1/bin/post_unpack was not found. There may be
errors...
The installation continues on a bit (unhelpfully, as it turns out) and
even
(eventually) reports that "IDL was successfully installed!". Ha! Alas,
there
is *nothing* installed in /usr/local/bin, which is where we were trying
to install everything.
I know UNIX users are suppose to know this stuff, but, well...I'm
working
with scientists here. The UNIX knowledge among the whole lot of us
would
hardly fill a thimble, I'm afraid. :-(
Awaiting your, as ever, helpful replies...
Cheers,
David
|
|
|
Re: LINUX IDL Install Help [message #49427 is a reply to message #49426] |
Fri, 21 July 2006 09:32  |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
David Fanning wrote:
>
>> cd into the CDROM
>> directory first and try running
>> sh ./xinstall.sh
>
>
> Tried this, and we still fail with the permission not allowed error
> message below.
>
>
>> If all else fails, copy down the exact error message you're getting
>> (even if it's in French ;o) )
>
>
> Here is the English translation (nearly) verbatim:
>
> /media/cdrom/install/xinstall/xinstall.linux.x86: Permission not
> allowed.
>
Many Linux distributions don't allow programs to be executed from CDs by
default. Try to add the "exec" option to the corresponding line in the
file /etc/fstab, so that the line reads something like this:
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
If you're not sure what to do, post the /etc/fstab file here.
Good luck,
Benjamin
|
|
|
Re: LINUX IDL Install Help [message #49428 is a reply to message #49427] |
Fri, 21 July 2006 09:31  |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
Hi,
if you mount the CDROM by clicking on an icon, this usually uses the
noexec flag for mount (so normal users get only restricted permission).
Try to mount manually (as root):
mount -r -t iso9660 /dev/cdrom /mnt
cd /mnt
./xinstall.sh or /bin/sh xinstall.sh
(check before if /mnt exists, and /dev/cdrom points to your actual CDROM
device).
regards,
lajos
On Fri, 21 Jul 2006, David Fanning wrote:
> Folks,
>
> I'm in Africa, far away from books and other support. You are all I've
> got! :-(
>
> I'm trying to install IDL 6.1 on a LINUX machine. The instructions call
> for this
> command:
>
> /bin/sh /CDROM_PATH/xinstall.sh
>
> We have logged on as root. We have correctly identified our CDROM_PATH
> as /media/cdrom. But when we execute the command, we find we don't have
> permission to do the install. (Sorry I can't be more specific. The
> responses
> are in French and ... well, let's just say this is not my first
> language.)
>
> Any ideas? (I prefer simple words that I can get across to my companion
> by
> waving my hands, if possible.)
>
> Thanks ever so much. I don't know what I would do without you folks!
> :-)
>
> Cheers,
>
> David
>
>
|
|
|
Re: LINUX IDL Install Help [message #49429 is a reply to message #49428] |
Fri, 21 July 2006 09:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Hi Jo,
Thanks for the help. You write:
> Make sure the CD is readable, try copying xinstall.sh to a temporary
> directory to ensure that it's readable in its entirety.
We made a clean copy of the xinstall.sh file to /tmp, so we believe
the CD is readable.
> See if sh resides in bin and if you can execute it,
Yes, it resides in /bin. It appears to work.
> cd into the CDROM
> directory first and try running
> sh ./xinstall.sh
Tried this, and we still fail with the permission not allowed error
message below.
> If all else fails, copy down the exact error message you're getting
> (even if it's in French ;o) )
Here is the English translation (nearly) verbatim:
/media/cdrom/install/xinstall/xinstall.linux.x86: Permission not
allowed.
> Africa sounds like fun - although the UK is trying to compete
> temperaturewise these days!
I'm not sure "fun" is the word I would use to describe this part of
Africa (one of the poorest parts of West Africa). But "cool" does
come to mind, in several senses of the word, but especially with
respect to those brutal temperatures in Europe. We even turned
the air conditioning off last night!
Cheers,
David
P.S. This is a "fairly new" version of Debian LINUX and we are
installing
IDL 6.1 an RSI-supplied CD, if that is any help.
|
|
|
Re: LINUX IDL Install Help [message #49430 is a reply to message #49429] |
Fri, 21 July 2006 09:01  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
David Fanning wrote:
> But when we execute the command, we find we don't have
> permission to do the install. (Sorry I can't be more specific. The
> responses are in French and ... well, let's just say this is not my first
> language.)
I can translate it for you if you want... (it's a good way to give back
to the one that provides so many tech tips!)
Jean
|
|
|
Re: LINUX IDL Install Help [message #49431 is a reply to message #49430] |
Fri, 21 July 2006 08:53  |
Jo Klein
Messages: 54 Registered: January 2006
|
Member |
|
|
Hi David,
For a start, try getting plain English responses from the system by:
export LANG=en_us
(or setenv LANG en_us, if you're in a csh)
unset LANGUAGE
unset LC_ALL
unset LC_CTYPE
Make sure the CD is readable, try copying xinstall.sh to a temporary
directory to ensure that it's readable in its entirety.
See if sh resides in bin and if you can execute it, cd into the CDROM
directory first and try running
sh ./xinstall.sh
If all else fails, copy down the exact error message you're getting
(even if it's in French ;o) )
Africa sounds like fun - although the UK is trying to compete
temperaturewise these days!
Cheers,
Jo
|
|
|