- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- GCC installed but not showing in /usr/bin /sbin /s...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-29-2016 05:21 AM
тАО04-29-2016 05:21 AM
Hi,
I installed GCC but when i execute #which gcc, the reply is: no gcc in /usr/bin /usr/sbin /sbin.
What should i do?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2016 07:14 AM
тАО04-29-2016 07:14 AM
Re: GCC installed but not showing in /usr/bin /sbin /sbin
It's not in your PATH, which is set up by default with the /etc/PATH file. You will need to add the path to the gcc executable to the /etc/PATH file, then the next time you log in it will be there.
GCC may be in /usr/local/bin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2016 09:26 AM
тАО04-29-2016 09:26 AM
SolutionThe commands: which and whereis are not very useful.
The command: type <string>
will show you how the <string> will be interpreted. But if there is no response to: type gcc
then the gcc executable is not in your shortcut called $PATH. The purpose of $PATH is to create a shortcut to the full path such as /usr/local/bin/gcc or /usr/contrib/bin/gcc or /whatever_path.
When you installed gcc, there should have been some details shown about the location for gcc. But if that information is gone or was never shown, use find to locate the executable like this:
# find /usr /opt -name gcc -exec ls -ld {} \;
DO NOT use: find / as it may take days to run if your system has petabytes of filesystem storage.
If you find the gcc compiler in /usr/local/bin, you can add the path to $PATH by editing /etc/PATH and then login again.
Bill Hassell, sysadmin