CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

environment variables version 3.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 23, 2004, 09:33
Default environment variables version 3.2
  #1
F.K.
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
  Reply With Quote

Old   June 23, 2004, 15:32
Default Re: environment variables version 3.2
  #2
StarCD
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
  Reply With Quote

Old   June 23, 2004, 16:16
Default Re: environment variables version 3.2
  #3
Jörn Beilke
Guest
 
Posts: n/a
... not at all, since it is very different for Version32

  Reply With Quote

Old   June 23, 2004, 20:02
Default Re: environment variables version 3.2
  #4
steve
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?
  Reply With Quote

Old   June 24, 2004, 03:18
Default Re: environment variables version 3.2
  #5
Richard
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?
  Reply With Quote

Old   June 24, 2004, 05:15
Default Re: environment variables version 3.2
  #6
Jörn Beilke
Guest
 
Posts: n/a
It takes more than a minute to execute the script on my machine. Also other people have the same problem.
  Reply With Quote

Old   June 24, 2004, 06:26
Default Re: environment variables version 3.2
  #7
F.K.
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.

  Reply With Quote

Old   June 24, 2004, 07:12
Default Re: environment variables version 3.2
  #8
Alex
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
  Reply With Quote

Old   June 24, 2004, 08:06
Default Re: environment variables version 3.2
  #9
Brian
Guest
 
Posts: n/a
starlaunch -icon will create a desktop icon for you.
  Reply With Quote

Old   June 24, 2004, 10:08
Default Re: environment variables version 3.2
  #10
Alex
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
  Reply With Quote

Old   June 24, 2004, 20:57
Default Re: environment variables version 3.2
  #11
steve
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.
  Reply With Quote

Old   June 25, 2004, 04:21
Default Re: environment variables version 3.2
  #12
Jörn Beilke
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.

  Reply With Quote

Old   June 27, 2004, 11:35
Default Re: environment variables version 3.2
  #13
steve
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
  Reply With Quote

Old   June 27, 2004, 11:51
Default Re: environment variables version 3.2
  #14
steve
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
  Reply With Quote

Old   June 28, 2004, 07:33
Default Re: environment variables version 3.2
  #15
Jörn Beilke
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?

  Reply With Quote

Old   June 28, 2004, 12:41
Default Re: environment variables version 3.2
  #16
steve
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.
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New version fluent file open in Old version ? MANOJKUMAR FLUENT 2 July 10, 2013 04:43
Setting Environment Variables PETER P. CFX 1 August 3, 2008 18: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 10:15


All times are GMT -4. The time now is 13:06.