Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-28-2005, 10:32 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 21

Rep: Reputation: 15
Angry can't set PATH

i guess you people would call me a newbie. I installed Fedora Core and need to edit the $PATH to so the system can find the gcc compiler that was installed with the OS. I have researched the syntax and am pretty sure I have it right, but I cannot get the path to change. Here are the commands I have issued:

[root@snortdev /]# set path = $PATH:/usr/libexec
[root@snortdev /]# echo $PATH

I have also used:
[root@snortdev /]# set path = $PATH /usr/libexec
[root@snortdev /]# echo $PATH

What is wrong!
Old 06-28-2005, 11:05 AM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

[root@snortdev /]# PATH=$PATH:/usr/libexec

Old 06-28-2005, 11:12 AM   #3
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15

export PATH=$PATH:....
echo $PATH

Old 06-28-2005, 11:21 AM   #4
LQ Newbie
Registered: Jun 2005
Posts: 21

Original Poster
Rep: Reputation: 15

PATH=$PATH worked...thanks dude.
Old 07-16-2005, 10:56 AM   #5
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Rep: Reputation: 15
Is it logical for PATH to reset to a default set of variables after exiting the terminal? I added /sbin to my path several times and it removed it after I exited the terminal. How can I edit PATH permanently?
Old 07-16-2005, 12:45 PM   #6
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,116

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
How can I edit PATH permanently?
-Put the PATH= .... and export PATH statements in your ~/.bash_profile
Old 07-16-2005, 01:21 PM   #7
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
... or ~/.bashrc.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to set my so path? hongxing Linux - Software 1 10-20-2005 02:23 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
How to set PATH How do I set PATH environment variable? Tranquil Linux - Newbie 3 11-02-2003 02:52 AM
$PATH!? how to set these PATH(s)!? sirpelidor Red Hat 5 10-25-2003 04:00 PM
WHERE should you set PATH? Ethan Linux - General 3 09-20-2002 12:35 PM > Forums > Linux Forums > Linux - Software

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

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