LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   set environment variable (https://www.linuxquestions.org/questions/linux-newbie-8/set-environment-variable-151557/)

Jongi 02-28-2004 10:33 AM

set environment variable
 
I use the following to try set an environment variable:

set PK_CONFIG_PATH=/usr/local/lib/pkconfig

but Mandarake doesn´´t seem to accept this.

I suspect I am doing something wrong. Please help.

krajzega 02-28-2004 11:23 AM

Type:
VARIABLE=value
for example:
LANG=pl

To check whether it's right type locale

andrewlkho 02-28-2004 11:59 AM

Try:
$ export VAR=value
and then use env w/ grep to check for it ;)

Jongi 02-28-2004 06:17 PM

Thanks for trying to help but if u could please try and help me with what i tried to do. I m thinking:
$ PK_CONFIG_PATH=/usr/local/lib/pkconfig

mikshaw 02-29-2004 02:11 AM

I recommend (in ~/.bashrc or ~/.bash_profile):
PK_CONFIG_PATH=$PK_CONFIG_PATH:/usr/local/lib/pkconfig
or
export PK_CONFIG_PATH=$PK_CONFIG_PATH:/usr/local/lib/pkconfig

This way you won't overwrite what you already have in PK_CONFIG_PATH

Jongi 02-29-2004 02:51 AM

Here is the error I get : http://mysite.mweb.co.za/residents/y...nuxcomplie.jpg

Here are the environment variables: http://mysite.mweb.co.za/residents/y.../Linux/set.jpg

mikshaw 02-29-2004 05:13 PM

Do you have gtk2 and gtk2-devel installed?

Jongi 03-01-2004 04:34 AM

The file it says it can't find is in the directory /usr/local/lib/pkconfig. It arrived there after i compiled the gtk tar.gz file. Will the fact that it is v2.2.3 make a difference?


All times are GMT -5. The time now is 04:12 AM.