View previous topic :: View next topic |
Author |
Message |
betux n00b
Joined: 08 Mar 2003 Posts: 29
|
Posted: Tue Apr 01, 2003 3:59 pm Post subject: How to set enviromental variable? |
|
|
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 |
|
|
Jarjar Apprentice
Joined: 21 Jul 2002 Posts: 265 Location: Sweden
|
Posted: Tue Apr 01, 2003 4:03 pm Post subject: |
|
|
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 |
|
|
CL n00b
Joined: 14 Mar 2003 Posts: 46
|
Posted: Tue Apr 01, 2003 4:18 pm Post subject: |
|
|
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 |
|
|
betux n00b
Joined: 08 Mar 2003 Posts: 29
|
Posted: Tue Apr 01, 2003 4:21 pm Post subject: |
|
|
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 |
|
|
betux n00b
Joined: 08 Mar 2003 Posts: 29
|
Posted: Tue Apr 01, 2003 4:28 pm Post subject: |
|
|
thank u a lot.. |
|
Back to top |
|
|
CL n00b
Joined: 14 Mar 2003 Posts: 46
|
Posted: Tue Apr 01, 2003 5:56 pm Post subject: |
|
|
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 |
|
|
|