LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2007, 11:20 PM   #1
praveenkorukonda
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
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

Last edited by praveenkorukonda; 02-21-2007 at 11:24 PM.
 
Old 02-21-2007, 11:40 PM   #2
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment variables for bash htarko Programming 1 09-13-2006 03:57 PM
set environment variables johnvdster Linux - Newbie 2 05-30-2006 05:15 AM
how do i set environment variables? guitarfella Slackware 2 12-04-2004 11:05 PM
How to set environment variables anjaan Linux - General 3 06-10-2004 02:04 PM
Help with the currently set environment variables!! apoc013 Linux - Newbie 6 01-21-2004 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration