Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to modify standard-lib path??

Status
Not open for further replies.

DoraC

Programmer
May 7, 2002
98
US
Hi,

I'm in sort of a bind... I need to modify the path C programs search on our UNIX box because some header files we've installed aren't in the standard path... and the read-only programs that use them access them via &quot;<file.h>&quot; (so they crash during compile).

Is there any way - on a HP UNIX server - that I (or root) can directly add to this path? Is the path in some UNIX environment-variable that I (or root) can directly modify? And - the actual compile statement that brings in these headers is in a read-only file (otherwise I'd modify the &quot;cc&quot; statement with an appropriate &quot;-I&quot; switch).

Thank you very much!
dora c
 

Hi,
Just make a soft link from where they should be to where they are

ln -s /home/joes/include /usr/local/include

or reistall the compiler to get them in the correct place.

---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top