|
[Sponsors] |
June 23, 2004, 10:33 |
environment variables version 3.2
|
#1 |
Guest
Posts: n/a
|
Hi all,
I've installed the linux 3.2 version and I wonder how the environmental variables must be defined. Of course I can execute each time after a logout the setstar script but it should also work with defined variables in the login shell (.bashrc) Does someone know which variables must be defined in it?? thx |
|
June 23, 2004, 16:32 |
Re: environment variables version 3.2
|
#2 |
Guest
Posts: n/a
|
Hi F.K.
not quite sure if I am answering what you are asking, but the star variables I have defined in my .bashrc files are as follows, export STARVER=v3150 export STARDIR=/path to you star directory/$STARVER export PATH=$PATH:$STARDIR/bin export LM_LICENSE_FILE=$STARDIR/license/license.dat If you are using ABSOFT fortran compiler you alos need to set the following variables, export ABSOFT=/path to your ABSOFT directory export PATH = $PATH:$ABSOFT/bin If you need more help on how to write the .bashrc file checkout the net for examples. Hope this helps |
|
June 23, 2004, 17:16 |
Re: environment variables version 3.2
|
#3 |
Guest
Posts: n/a
|
... not at all, since it is very different for Version32
|
|
June 23, 2004, 21:02 |
Re: environment variables version 3.2
|
#4 |
Guest
Posts: n/a
|
Your safest bet is to execute the setstar script directly out of your .cshrc or .bashrc. If it works that way, why is it necessary to redefine everything yourself?
|
|
June 24, 2004, 04:18 |
Re: environment variables version 3.2
|
#5 |
Guest
Posts: n/a
|
Steve's right: setstar is effectively just a shell script which sets the environment variables, so it's exactly what is required. Why re-invent the wheel?
|
|
June 24, 2004, 06:15 |
Re: environment variables version 3.2
|
#6 |
Guest
Posts: n/a
|
It takes more than a minute to execute the script on my machine. Also other people have the same problem.
|
|
June 24, 2004, 07:26 |
Re: environment variables version 3.2
|
#7 |
Guest
Posts: n/a
|
Yes , 1 minute or more and this seams to be a long time for defining variables. From my point of view there is absolutely no advantage in starting scripts where nobody knows what actually happens.
|
|
June 24, 2004, 08:12 |
Re: environment variables version 3.2
|
#8 |
Guest
Posts: n/a
|
1 minute or so on my Linux box, much less on a Sun. The Sun CDE desktop also has a new button after installation where you can start starlaunch without prior opening a shell and executing setstar. Anybody been able to create this button on a Linux machine? Regards Alex
|
|
June 24, 2004, 09:06 |
Re: environment variables version 3.2
|
#9 |
Guest
Posts: n/a
|
starlaunch -icon will create a desktop icon for you.
|
|
June 24, 2004, 11:08 |
Re: environment variables version 3.2
|
#10 |
Guest
Posts: n/a
|
Thank you Brian, but my description wasn´t complete. Sorry. This command worked well on a Sun, but Suse 9 gives only error messages. No icon on my desktop . Does it create an icon at your Linux? Best regards Alex
|
|
June 24, 2004, 21:57 |
Re: environment variables version 3.2
|
#11 |
Guest
Posts: n/a
|
I work on a RH 3.0 linux box and the time to run the script is negligible. I can't even see the time. I bet there is some sort of network timeout involved on your machines. Is star located on a auto-mounted file system that has to mount first before it can execute? I would take the script, turn on verbose mode and see exactly what operation it sticks on.
|
|
June 25, 2004, 05:21 |
Re: environment variables version 3.2
|
#12 |
Guest
Posts: n/a
|
Hi Steve,
I think that it is the time which is needed to check the license server. I run all locally. When I first tried v32 I was sure that it does not work until someone from the support told me to wait for such a long time. |
|
June 27, 2004, 12:35 |
Re: environment variables version 3.2
|
#13 |
Guest
Posts: n/a
|
Hi Jorn, Apparently setstar more or less just runs the starenv script. I looked in there and found no license server checks at all. Its sets a bunch of environmental variables, and changes your path. I'm not sure why any of that would take a long time. I add a line
set -x near the top to see what gets executed. Steve |
|
June 27, 2004, 12:51 |
Re: environment variables version 3.2
|
#14 |
Guest
Posts: n/a
|
Jorn, One of the steps in the starenv script is
rsh localhost I found that causes problems on some machines here but not others. I think the script might be hanging at that point until the rsh times out. Steve |
|
June 28, 2004, 08:33 |
Re: environment variables version 3.2
|
#15 |
Guest
Posts: n/a
|
Thanks for that Steve,
I solved the problem by deleting the "rsh" command and linking ssh to rsh. After that the "ssh localhost" has to be run one time manually and then it works (for me). Maybe there are some side-effects for parallel execution on a cluster. What do you think about dropping all the rlogin stuff and using slogin instead? |
|
June 28, 2004, 13:41 |
Re: environment variables version 3.2
|
#16 |
Guest
Posts: n/a
|
I think slogin probably has just as many problems as rlogin - just different ones. I've been trying ssh and slogin around here with also mixed success.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New version fluent file open in Old version ? | MANOJKUMAR | FLUENT | 2 | July 10, 2013 05:43 |
Setting Environment Variables | PETER P. | CFX | 1 | August 3, 2008 19:33 |
MPI Environment Variables | braennstroem | OpenFOAM Installation | 8 | February 8, 2008 10:19 |
How to set environment variables | kanishka | OpenFOAM Installation | 1 | September 4, 2005 11:15 |