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

Home » Public Forums » archive » Re: IDL local library!
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 local library! [message #8300] Wed, 26 February 1997 00:00
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
On Wed, 26 Feb 1997, Peter Mason wrote:
> (..even more nonsense than he usually does)
Sorry, Damiano, I didn't read your question properly. I just went
and assumed that you intended *other* people to run your programs.
(This is what we'd call an extreme case of "Send button syndrome", I guess.)
Anyway, I see that someone else has posted a sensible answer.

Cheers

Peter Mason
Reserve Orange Peeler
Re: IDL local library! [message #8301 is a reply to message #8300] Wed, 26 February 1997 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
DAMIANO ZILIO wrote:
>
> I'm working with IDL. Version 4.0.1 (AIX ibmr2) on a UNIX Sistem.
> I've developped some routines by myself and I would use them not
> localy!, I'd like to put all my routines in a directory and then
> call and compile everyting from everywere in my filesystem.
> Can anyone help me?
>
> PS In my filesystem I can't use the superuser permission, so I can't write anything in the main IDL lib directory!!!.
>

If I understand you correctly, you can achieve what you want by
adding your local directory to the environment variable IDL_PATH.
Include the following command in your startup file:

C shell:
setenv IDL_PATH \+/your_local_dir:\+$IDL_DIR/lib:\+$IDL_DIR/examples

Korn shell:
IDL_PATH=\+/your_local_dir:\+$IDL_DIR/lib:\+$IDL_DIR/example s
export IDL_PATH

Any directories beneath /your_local_dir will be included in IDL's
system variable !PATH that it uses to find routines. (The "+" means
that subdirectories are included.)

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: IDL local library! [message #8311 is a reply to message #8300] Wed, 26 February 1997 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Peter Mason <peterm@demsyd.syd.dem.csiro.au> writes:

> On 25 Feb 1997, DAMIANO ZILIO wrote:
>> I'm working with IDL. Version 4.0.1 (AIX ibmr2) on a UNIX Sistem.
>> I've developped some routines by myself and I would use them not
>> localy!, I'd like to put all my routines in a directory and then
>> call and compile everyting from everywere in my filesystem.
>> Can anyone help me?
>> PS In my filesystem I can't use the superuser permission, so I can't write
>> anything in the main IDL lib directory!!!.


> There are a couple of solutions that come to mind, but I think that you'll
> need superuser permission to implement any of them. ...

I think you may have overcomplicated things a bit. What you say is true if
Damiano wanted to install routines such that they were picked up by everybody
logging into that computer, but that possibility wasn't discussed in the
original post.

As has already been pointed out, the simplest way to do what Damiano asked was
to define IDL_PATH to point to his directory. He doesn't need superuser
permission for that, so long as he's only doing it for himself.

Bill Thompson
Re: IDL local library! [message #8315 is a reply to message #8300] Wed, 26 February 1997 00:00 Go to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
On 25 Feb 1997, DAMIANO ZILIO wrote:
> I'm working with IDL. Version 4.0.1 (AIX ibmr2) on a UNIX Sistem.
> I've developped some routines by myself and I would use them not
> localy!, I'd like to put all my routines in a directory and then
> call and compile everyting from everywere in my filesystem.
> Can anyone help me?
> PS In my filesystem I can't use the superuser permission, so I can't write
> anything in the main IDL lib directory!!!.


There are a couple of solutions that come to mind, but I think that you'll
need superuser permission to implement any of them. So since you're probably
going to have to involve your systems manager regardless, why not just get him/
her to create a directory for you under $IDL_DIR/lib? If this is going to
be a problem, here are some other things you could try...

First of all, put your programs in some directory of your own, make this
directry world -readable and -executable, and make all the programs
world-readable. (If the people who are going to run your programs are
in the same group as you then you can use group instead of world access,
which is preferrable.)
(If there's much IDL development going on at your site then you should consider
persuading your systems manager to create a group-accessible directory
structure for the progs, rather than having you set up a directory in your
private user area.)

Then implement one of the following:

1 Add your directory to the IDL_PATH for all your programs' users.
e.g., If your programs are in /users/damiano/idlstuff and IDL_PATH is
'.:+$IDL_DIR/lib' then you must change it to look like:
'.:+$IDL_DIR/lib:/users/damiano/idlstuff', or
'.:+$IDL_DIR/lib:+/users/damiano/idlstuff' (note the "+") if there are
subdirectories under idlstuff.
Where do you do this?
Some people define IDL_PATH privately, in one of their startup files
(typically in .login). In such cases you will need to edit the .login
files (for each user), and you'll need SU privs for this. (Well, you
could ask all the users to do the change themselves.)
Some people use a "global" setup file called idl_setup, which lives in
$IDL_DIR/lib. e.g., They "source" this file from their .login. In this
case you'll just need to modify $IDL_DIR/bin/idl_setup, but again you'll
need SU privs for this. (Also, you might need to redo this whenever you
upgrade IDL.)

2 Set up (or get the systems manager to set up) a symbolic link in $IDL_DIR/lib
which points to your directory. e.g.,
%>cd $IDL_DIR/lib
%>ln -s /users/damiano/idlstuff damiano
(Actually, I'm not sure of the syntax on AIX - this e.g. is for OSF.)
This option has some problems.
The first problem - and this is quite a noticeable one - is that:
*** it doesn't actually work with IDL4.0.1 ***
IDL4.0.1 doesn't appear to follow symbolic links when it builds its !path
variable. You'll have to wait for IDL5. (Hopefully not that long, which
is why I mentioned this option at all.)
Secondly, you might have to redo the link whenever you upgrade IDL.
Thirdly, the $IDL_DIR/lib entry in IDL_PATH must be a "recursive" entry,
i.e., it must be preceded by a "+".
And, of course, you'll need SU privs to create the link.



Peter Mason
Re: IDL local library! [message #8317 is a reply to message #8300] Tue, 25 February 1997 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
You need to update your IDL_PATH system variable so that
it can locate the directory where you store your own library
files. There's some more info about this in the section under
Environment Variables in the user manual. You can either do
it external to IDL by updating IDL_PATH, or internally by
updating the !path system variable.

Tim



DAMIANO ZILIO wrote:
>
> I'm working with IDL. Version 4.0.1 (AIX ibmr2) on a UNIX Sistem.
> I've developped some routines by myself and I would use them not
> localy!, I'd like to put all my routines in a directory and then
> call and compile everyting from everywere in my filesystem.
> Can anyone help me?
>
> PS In my filesystem I can't use the superuser permission, so I can't write anything in the main IDL lib directory!!!.
>
> Thanks in advance.
>
>
> My best
> --
>
> Damiano Zilio
>
> Joint Research Centre of the Commission of
> the European Communities
> I-21020 Ispra (VA)
> Environment Institute TP 321
> my Email: damiano.zilio@jrc.it
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: read_wave
Next Topic: Embedded Web/Corba/Agent Workshop - Revised CFP

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

Current Time: Wed Oct 08 09:09:21 PDT 2025

Total time taken to generate the page: 0.00763 seconds