Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set enviromental variable?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
betux
n00b
n00b


Joined: 08 Mar 2003
Posts: 29

PostPosted: Tue Apr 01, 2003 3:59 pm    Post subject: How to set enviromental variable? Reply with quote

hi,

how can i set an enviromental variable?
i cannot find any setenv command on my system.

i hope you can help...
Back to top
View user's profile Send private message
Jarjar
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 265
Location: Sweden

PostPosted: Tue Apr 01, 2003 4:03 pm    Post subject: Reply with quote

Try to be a LITTLE more specific.
Are we talking in like.. bash, and no programming?
VAR=value, VAR="value", export VAR="value"
_________________
[Server etc. | C2D 2.2 @ 3.0 GHz / 4 GB RAM / 3x1 TB + 1x2 TB SATA disks + 1.5 TB ext. | Gentoo]
[Laptop | Macbook Pro 15" / Core i7 (Sandy) Quad 2.2 GHz / 16 GB RAM / Samsung 840 250 GB SSD + 1 TB + 2 TB HDD / 6750M 1 GB / OS X, Win 7]
Back to top
View user's profile Send private message
CL
n00b
n00b


Joined: 14 Mar 2003
Posts: 46

PostPosted: Tue Apr 01, 2003 4:18 pm    Post subject: Reply with quote

reply the Bash shell uses export and not setenv (I believe setenv is used mainly in C type shells). So like Jarjar said you just type:
Code:
export VARNAME="VALUE"
Back to top
View user's profile Send private message
betux
n00b
n00b


Joined: 08 Mar 2003
Posts: 29

PostPosted: Tue Apr 01, 2003 4:21 pm    Post subject: Reply with quote

i try to compile nmm http://www.networkmultimedia.org/ and i use the external libaries. as mentioned in the README i have to set a enviromental variable.

here is what the guys say:
If you have compiled whole NMM, a make install will copy the
libraries build for NMM to a certain path. But the external libraries are
not copied! So you have to tell "ld" where the external libraries can be
found. This can be done by setting your enviroment variable "LD_LIBRARY_PATH"
to the directory where the external libraries where extracted, or by copying
the external libraries to the directory where then NMM libraries where
installed, as this path is searched by "ld".

i hope you can help!

regards,
thomas
Back to top
View user's profile Send private message
betux
n00b
n00b


Joined: 08 Mar 2003
Posts: 29

PostPosted: Tue Apr 01, 2003 4:28 pm    Post subject: Reply with quote

thank u a lot..
Back to top
View user's profile Send private message
CL
n00b
n00b


Joined: 14 Mar 2003
Posts: 46

PostPosted: Tue Apr 01, 2003 5:56 pm    Post subject: Reply with quote

Did you figure it out?

If not then here's a little more help.
Well, you probably already have some/many/all of the libraries that NMM requires. Now you need to make sure that the configure script can find those libraries so that you can get on with the compile process. So you need to set the LD_LIBRARY_PATH variable to point to the paths where your libraries can be found. The command to do so would look something like this:
Code:
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/some/other/dir


I hope that helps...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum