LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting an environmental variable (http://www.linuxquestions.org/questions/linux-newbie-8/setting-an-environmental-variable-386197/)

maevious 11-24-2005 03:04 PM

Setting an environmental variable
 
Hello There!

I have suse 9.3.
I need to install Boost C++ 1.30 but in I can't find out how
to set an enviromental variable BOOSTROOT. With the suse help
i didn't find something useful so here I am.:D

I 'd appreciate any help

microsoft/linux 11-24-2005 03:07 PM

in the command line
Code:

BOOSTROOT=<whatever the value is>
Then you can edit your ~/.bashrc, and add the same thing to the end of it. This will set the BOOSTROOT variable every time you log in.

On a side note, why are you using Boost C++, g++(the gcc c++ compiler) will do the same thing? Just a thought

enemorales 11-24-2005 03:28 PM

I think Boost C++ is a library, and not a compiler...

about VARIABLE=SOMETHING... make sure you don't put any spaces in between:

Code:

A=5        # works!
A = 5        # does not work!!!


maevious 11-24-2005 03:35 PM

Quote:

Originally posted by microsoft/linux
in the command line
Code:

BOOSTROOT=<whatever the value is>
Then you can edit your ~/.bashrc, and add the same thing to the end of it. This will set the BOOSTROOT variable every time you log in.

On a side note, why are you using Boost C++, g++(the gcc c++ compiler) will do the same thing? Just a thought

Thanks!

BOOSTROOT must point to the location where Boost is.

So it must be something like BOOSTROOT = </root/folder/boost> ?
It doesn't work like this.



Boost is required for a program about Distributed Algorithms that i have to
use for a project, and i fact i dont really know what Boost can offer.



By the way, any easy way to make Suse plays mp3s?

microsoft/linux 11-24-2005 03:48 PM

No I'm sorry. I use the '<' and '>' as indicators for a generic entry(since I don't know what your using). it will look like
Code:

BOOSTROOT=variableorpathgoeshere
or
Code:

BOOSTROOT=/folder/path
sorry for the confusion.

ok, I though boost c++ was a complier, judging from the name(I'd just never heard of it). MP3s huh? Do you have a music player on Suse?

maevious 11-24-2005 04:00 PM

Quote:

Originally posted by microsoft/linux

Code:

BOOSTROOT=variableorpathgoeshere
or
Code:

BOOSTROOT=/folder/path

It works now. Thank you.

Quote:

ok, I though boost c++ was a complier, judging from the name(I'd just never heard of it). MP3s huh? Do you have a music player on Suse? [/B]
Kaffeine, Amarok, Xine , Noatun can 't play sound.
only real player can but it is TOO HEAVY to play.
It something about codecs.

microsoft/linux 11-24-2005 04:15 PM

I see, I'm not sure about that one. I think you need to find a linux codec for MP3s, sorry I can't be of more help on this one


All times are GMT -5. The time now is 02:56 PM.