LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-16-2003, 05:50 AM   #1
Fred Affe
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE 9.0
Posts: 22

Rep: Reputation: 15
Where can I find path?


Hi all!

I want to add /home/user/glib-1.2.3 to my path...

But where do I find path and how can I add /home/user/glib-1.2.3 to it??

Thanks,
FredAffe
 
Old 08-16-2003, 05:54 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Hello!

Actually you probably don't wanna do that, but that's my 2 cents..

How:
In your home directory (/home/user) there'll be a file:
.bashrc
Note the . because that makes it hidden. Open that file up and you should see something like:
PATH=$PATH:/usr/local/bin
You just have to add to that:
PATH=$PATH:/usr/local/bin:/home/user/glib-1.2.3

Logout and back in, the changes should take effect.

Cool
 
Old 08-16-2003, 05:59 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Re: Where can I find path?

Quote:
Originally posted by Fred Affe
Hi all!

I want to add /home/user/glib-1.2.3 to my path...

But where do I find path and how can I add /home/user/glib-1.2.3 to it??

Thanks,
FredAffe
Where do you find the $PATH variable?

Normally in /etc/profile but it's also in the above example I've given you. To SEE the $PATH variable without changing it, you can echo it:
echo $PATH

You can do that for many variables. To see a cool list of variables you have on your system, type:
env



Cool
 
Old 08-16-2003, 07:18 AM   #4
Fred Affe
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
I found another way...

I used ./configure --with-glib=/home/user/glib-1.2.3


But nevertheless thanks for your efforts.
 
Old 08-16-2003, 07:25 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Your welcome

I'm glad you found another way, it saves you from having to install programs to system directories, but also limits what users can use them (only that user can enter that users home directory).

Cool
 
  


Reply


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 do I find the path...... kuplo Linux - Newbie 2 11-25-2005 08:36 AM
scripts can't find path corbis_demon Linux - General 2 09-08-2004 07:11 PM
Can't find Qt Path Luantum Slackware 2 11-12-2003 09:49 PM
Cannot find path for library Baran Linux - Newbie 5 09-03-2003 05:46 AM
please help - cannot find gcc in path mchao Linux - General 9 02-14-2002 10:49 AM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration