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 12-07-2004, 08:32 AM   #1
sibtay
Member
 
Registered: Aug 2004
Location: U.S
Distribution: Ubuntu
Posts: 145

Rep: Reputation: 15
how to set include path


hi everyone

i need to enter an unconventional directory (like /home/somedirectory) in my include path
how can i do this?

thank you
 
Old 12-07-2004, 08:38 AM   #2
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
You can enter it in your ~/.bash_profile for a specific user, or you can enter it into the /etc/bashrc file for it to affect everybody globally. Here's what the format looks ike...

PATH=$PATH:$HOME/bin:/sbin:/usr/sbin:/usr/bin
export PATH

Good luck...
 
Old 12-07-2004, 08:41 AM   #3
sibtay
Member
 
Registered: Aug 2004
Location: U.S
Distribution: Ubuntu
Posts: 145

Original Poster
Rep: Reputation: 15
thankz for you reply
i was actually asking about include path where you have your *.h files
so does this thing also goes for include path?
 
Old 12-07-2004, 08:42 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
C_INCLUDE_PATH, and CPLUS_INCLUDE_PATH

Yves.
 
  


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
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 01:24 AM
G++: How to set the include path lavachequirit Programming 5 10-20-2004 09:56 AM
Path to include? Mazen Alzogbi Red Hat 1 11-15-2003 07:25 AM
How to set PATH How do I set PATH environment variable? Tranquil Linux - Newbie 3 11-02-2003 03:52 AM
how to set include path for fortran srkherad Linux - General 1 01-08-2003 12:56 AM


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