LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-10-2006, 03:20 PM   #1
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Rep: Reputation: 30
Need help w/ a few PATH and Environment variables


Good day all,

It's been quite awhile since I've posted in this good 'ol forum.

Anyway, I'm currently working on installing/setting up an astronomy package called MIDAS. They have a small explanation on their site explaining how to do their procedure, but it is a bit fuzzy to me at the moment.
It isn't a "standard" installation like most programs. It's a binary distro that needs to be linked... sorta.

The page is: http://nnsa.dl.ac.uk/MIDAS/download/base_Linux.html
And if you scroll down to the part that says: Having fetched this file you should uncompress... This is where the actual explanation starts.

I've downloaded the base package and the linux package as suggested. So I read the instructions to say:
...after un-zip and un-taring the base package, change to that dir and then do the same with the linux package which I've already done.

It then proceeds to say:
Code:
you should as a minimum set the environment variable MIDASBASE to the path
of the MIDAS_base_xxxxxx directory. The default value assigned by the software
to the environment variable MIDASBASE if it does not already exist is /MIDAS.
$MIDASBASE will be used in the instructions following to refer to the base of
the software installation.
This is where I'm getting fuzzy. I cannot for the life of me remember how to 'set the environment variable MIDASBASE to the path of the MIDAS_base_xxxxxx directory'. Actually, what I did was added it to the PATH environment via the PATH=... followed by export PATH

It then says:
Code:
The MIDAS package requires that the directory $MIDASBASE/experiments is
writeable. If you have installed the MIDAS package in a read only disc partition 
then $MIDASBASE/experiments could be a link to a directory in a writeable
partition. All users of the MIDAS package will require write access to the
directory and its contents. The directory name $MIDASBASE/experiments may be
replaced by the environment variable MIDASEXPBASE. If only the MIDAS base
package is being used or sharing of experimental information between users is
not required then MIDASEXPBASE could have the value ~/experiments - i.e. be
local to the user.
Well, the directory is writeable, so that isn't an issue. (as far as I can tell)
And FYI, it's all being done on my lappy, so there is no need for me to worry about a write access to other users or any read only partitions. I'm the only one using this lappy, so I think it should be a bit easy on that aspect.

Any help is greatly appreciated.
(sorry for using CODE blocks... it just seemed easier to format it that way that with alot of bold text everywhere)

Thx.
L8rz
 
Old 06-10-2006, 03:29 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You can set $MIDASBASE in the same way that you've changed $PATH, i.e. "export MIDASBASE=/path/to/MIDAS_base_xxxxxx".
 
Old 06-10-2006, 04:05 PM   #3
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Nylex
You can set $MIDASBASE in the same way that you've changed $PATH, i.e. "export MIDASBASE=/path/to/MIDAS_base_xxxxxx".
Excellent. Thanks for that.
I'm also assuming that since it's exported (the new environment variables) that it will hold even after the system is rebooted?
God I'm so rusty on my linux core... too much time at sea.

Thanks again.
L8rz
 
Old 06-10-2006, 04:12 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Actually, that's probably not the case. If you close the terminal window and open a new one, you'll likely find that $MIDASBASE is not set any more. This is easily remedied: add your export line to .bash_profile or .bashrc in your home directory. You can create said files if they don't exist (though the line need only be in one of them).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
How to set PATH and CLASSPATH environment variables bronko Linux - Newbie 2 12-20-2003 11:13 AM
Environment Variables if you su concoran Linux - Newbie 1 08-16-2002 07:18 PM
environment variables. jISV Linux - General 0 04-05-2002 06:01 AM
rh7.1 environment variables (eg path) dave_lane Linux - Newbie 1 09-20-2001 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration