LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   how set an environment variable in RHEL4 (https://www.linuxquestions.org/questions/linux-enterprise-47/how-set-an-environment-variable-in-rhel4-577282/)

potatoque 08-15-2007 10:32 AM

how set an environment variable in RHEL4
 
my binary for my lotus domino is on /opt/ibm/lotus/bin

When everytime i run fixpack installer i got this error

You must create the environment variable NUI_NOTESDIR as path of the directory that contains notes/latest. E.g., for the default path /opt/lotus/notes/latest NUI_NOTESDIR=/opt/lotus
export NUI_NOTESDIR

How would i set the environment variable ?

Nylex 08-15-2007 10:42 AM

That error message tells you how to do it if you're using Bash (or Bash-compatible shells, I think Korn shell is one such shell):

NUI_NOTESDIR=/opt/lotus
export NUI_NOTESDIR

You can put these lines in your ~/.bashrc.

Are you using a different shell?

potatoque 08-16-2007 12:39 AM

im using bash
 
im using bash shell. can you teach me how to do it ?

im a bit confused.

Nylex 08-16-2007 02:19 AM

What don't you understand? :confused:

Edit: either do it as above or combine both lines into one like so:

export NUI_NOTESDIR=/opt/lotus

and add to your ~/.bashrc. Obviously if the directory is different for your installation, set it accordingly.

lugoteehalt 08-16-2007 05:57 AM

You could try,
$ NUI_NOTESDIR=/opt/ibm/lotus/bin lotus Or same thing but with an env in front. Seeing as how it's an environment variable that's not going to bugger anything, as would LANG or TERM sometimes you might as well put it in .bashrc or whatever.

potatoque 08-29-2007 10:07 AM

ok i got it now
 
made it run thanks guys..

jaseka 07-21-2008 06:23 AM

How about adding these lines ( export ...) in /etc/profile file in RHEL4


All times are GMT -5. The time now is 06:32 AM.