D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Environmental variable?

 

aaron Moore wrote:
> 
> Am trying to install open cascade to suse 9.3.  I think I have
> acheived istallation, however the last step is:
> 
> The installation procedure does not configure your UNIX system
> environment automatically. To set the necessary system environment,
> add the contents of $CASROOT/env.csh or env.ksh file to your shell rc
> file.
> 
> Can anyone explain how to go about this?  I can't find
> $CASROOT/env.csh nor do I what/where my shell rc file is.

Okay "env.ksh" is a Korn Shell file, that is close enough to bash shell
you can probably use it as is.

(I'm assuming you have bash as your default shell, probably, try "echo
$0" if in doubt).

'csh' is evil, ignore it and it will go away eventually ;)

You could make this change system wide in "/etc/profile" but probably
better to do it for yourself first in the ".bashrc" file in your home
directory, rather than messing up logging in for everyone for ever.

Easiest if to add a line something like;

. /pathtofile/env.ksh

(dot space full_filenmame)

to the file. Save the change, then type "bash" to create a new bash
shell. Then "set | grep -i CAS" will likely show you some cascade
environment variables.

As that will source the environment variable from the file, and
hopefully that file will be updated if they upgrade the software.

Although obviously then anyone who gets write access to the "env.ksh"
file can do nasty things to you when you open a "bash" shell.

As to what cascade is, or where the "env.ksh" file is likely to be, I
can't help you, if all else fails "find / -name "env.ksh" as root, and
wait......

If this all sounds scary, just find the "env.ksh", open a terminal
Windows, type the ". /pathtofile.../env.ksh" and then type "cascade" or
whatever the relevant command is.

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html