- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to set a PATH for gcc in HP-UX 11.11
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 05:25 PM
03-23-2007 05:25 PM
How to set a PATH for gcc in HP-UX 11.11
when i run command gcc fron /opt/gcc64 it is rnning
but when i running it from #gcc (from root)
it say no sh found
Can anybody tell me how to set a PATH
By doing which it can be run from #
Thanks Waiting for reply Its Urgent PLSsss
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 05:31 PM
03-23-2007 05:31 PM
Re: How to set a PATH for gcc in HP-UX 11.11
Then in /etc/profile or each user's .profile you can do something like:
PATH=$PATH:$(< /etc/PATH)
If gcc didn't do that, or you don't want to do that, then just do:
PATH=$PATH:/opt/gcc64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 05:39 PM
03-23-2007 05:39 PM
Re: How to set a PATH for gcc in HP-UX 11.11
DO this at the end of .profile or /etc/profile .
export PATH=/opt/gcc64:$PATH
Thats all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2007 08:02 PM
03-25-2007 08:02 PM
Re: How to set a PATH for gcc in HP-UX 11.11
check if the path /opt/gcc64 is in /etc/PATH, if not add it.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2007 10:51 PM
03-25-2007 10:51 PM
Re: How to set a PATH for gcc in HP-UX 11.11
Add the /opt/gcc64 to your existing PATH variable by
export PATH=/opt/gcc64:$PATH
Then, check it by echoing to confirm your PATH is updated with /opt/gcc64
HTH,
Prabu.S