LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to set environment variables in bash profile (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-environment-variables-in-bash-profile-531213/)

praveenkorukonda 02-21-2007 11:20 PM

how to set environment variables in bash profile
 
I am new to creating packages in Linux we had prepared one software for that, we need to set the environment variables in the roots ./bash_profile in the users machine.
for example i want to add
PATH=$PATH/home/praveen/mydir

is there any way this can be done through the makefile , rpms or in other way.

If I am not able to do this I can't distribute my software.

Actually I am preparing the rpm for this package

Please help me.

Thanks in advance

prozac 02-21-2007 11:40 PM

can't you check for the env's and print out a error if they are not set thus suggesting the user to set those variables?


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