LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-07-2004, 07: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, 07: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, 07: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, 07:42 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
C_INCLUDE_PATH, and CPLUS_INCLUDE_PATH

Yves.
 
  


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

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

All times are GMT -5. The time now is 05:52 PM.

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