LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04:54 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 04:59 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 06: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, 06:25 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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 07:36 AM
scripts can't find path corbis_demon Linux - General 2 09-08-2004 06:11 PM
Can't find Qt Path Luantum Slackware 2 11-12-2003 08:49 PM
Cannot find path for library Baran Linux - Newbie 5 09-03-2003 04:46 AM
please help - cannot find gcc in path mchao Linux - General 9 02-14-2002 09:49 AM

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

All times are GMT -5. The time now is 09:26 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