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

Home » Public Forums » archive » Re: Installing IDL 6.1 on debian linux 2
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: Installing IDL 6.1 on debian linux 2 [message #45083] Mon, 01 August 2005 11:14
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> Attempt #1
> ------------------------------------------------------------ -----------
> $ sudo su - Password:
> testserver:~# cd /media/cdrom
> testserver:/media/cdrom# ls
> adobe apache flexlm info install xinstall.sh
> testserver:/media/cdrom# sh xinstall.sh
>
> You cannot run the Motif-based installer because your DISPLAY
> environment variable is not defined correctly or you are not
> running X Windows. Please define your display environment
> and execute this script again from a machine running X Windows.
>
> ------------------------------------------------------------ -----------
> -> First problem, xinstall requires you to be logged as root (X
> session). There is no way a program can require such power (at least in
> a non microsoft world).

Have you actually tried setting the DISPLAY variable as the error
message says? That should take care of the error.

Also, have you tried not making your su session a login shell? If you
don't make it a login shell, your environmental variables should be
carried over from your user session instead of setting new values for
root. Hence, the DISPLAY variable will not be reset.


> Attempt #2
> ------------------------------------------------------------ -----------
> testserver:/media/cdrom# logout
> mathieu@testserver $ sudo sh xinstall.sh
> /media/cdrom
> xinstall.sh: line 307: /media/cdrom/install/xinstall/xinstall.linux.x86:
> Permission denied
> xinstall.sh: line 307: /media/cdrom/install/xinstall/xinstall.linux.x86:
> Success
> ------------------------------------------------------------ -----------
> -> Nothing happen. I don't know what the install is looking for but I
> have sudo power.

How is the CDROM mounted? Is it mounted with noexec? Have you looked
at the script to see what's supposed to happen at 307?


> Attempt #3
> ------------------------------------------------------------ -----------
> mathieu@testserver $ fakeroot sh xinstall.sh
> /media/cdrom
> xinstall.sh: line 307: /media/cdrom/install/xinstall/xinstall.linux.x86:
> Permission denied
> xinstall.sh: line 307: /media/cdrom/install/xinstall/xinstall.linux.x86:
> Success
> ------------------------------------------------------------ -----------
> -> Same problem. Nothing happen.
>

Same answer, except what in the world is a "fakeroot"?


> Attempt #4
> ------------------------------------------------------------ -----------
> mkdir /tmp/cdrom
> cp -r /media/cdrom /tmp/cdrom
> cd /tmp/cdrom
> sudo sh xinstall.sh
> ------------------------------------------------------------ -----------
> -> Ok finally replicating cdrom onto /tmp fixes the problem.
>

Whatever works.


> The scripts are using an old fashion way to decompress tarballs:
>
> zcat | tar xf -
>
> Therefore everytime a file is decompressed it gives me an error.
> For base1.tz, base2.tz, demo.tz, idl_help.tz, javab.tz
> I get:
> tar: Read 6656 bytes from -
>
> I am guessing the error is ignored, but it would be nice that this would
> not be considered as an error.

The question is, does it work? If it works, then don't worry about it.

And there's nothing old-fashioned about zcat. It's just one of the gzip
and gunzip family. Remember that it's the GNU version of tar that has
the z option where you can tar and zip together. The tar program on
other OSes, such as Solaris, don't have that option, so zcat and tar
used in that way in the only was to decompress the file.

-Mike
Re: Installing IDL 6.1 on debian linux 2 [message #45088 is a reply to message #45083] Mon, 01 August 2005 09:23 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi Mathieau,

On Mon, 1 Aug 2005, Mathieu Malaterre wrote:

> ------------------------------------------------------------ -----------
> -> First problem, xinstall requires you to be logged as root (X
> session). There is no way a program can require such power (at least in
> a non microsoft world).
>

Well, on my SuSE box I can login as root, getting a root X session. Try
this, instead of sudo and su. If it is forbidden (strong security config),
login as a normal user, then 'slogin -l root -X localhost'. If this does
not work, you can split the installation work between root and a normal
user:

as root in one window: mount the CD, create /usr/local/rsi and chown it
to the normal user

as normal user in another window: run xinstall.sh, it will have write
permission to /usr/local/rsi

regards,
lajos
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Installing IDL 6.1 on debian linux 3
Next Topic: Re: programmatically detect problems in idl code

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

Current Time: Fri Oct 10 04:41:20 PDT 2025

Total time taken to generate the page: 1.43994 seconds