HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gcc libraries being picked up from the wrong l...
Operating System - HP-UX
1834484
Members
3901
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-12-2003 04:39 PM
08-12-2003 04:39 PM
Hello,
I had built an application using gcc 3.2 on one machine. When I try to run the application from another machine which does not have gcc installed on it, it looks for the libraries libgcc_s.sl and libstdc++.sl in /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../
Any help on this problem would be highly appreciated.
Thanks and regards
Sonison James
I had built an application using gcc 3.2 on one machine. When I try to run the application from another machine which does not have gcc installed on it, it looks for the libraries libgcc_s.sl and libstdc++.sl in /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../
Any help on this problem would be highly appreciated.
Thanks and regards
Sonison James
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 02:00 AM
08-13-2003 02:00 AM
Re: gcc libraries being picked up from the wrong location
How about installing gcc, or at least all the required libraries, on that other machine?
Good luck
Adam
Good luck
Adam
I do everything perfectly, except from my mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 04:16 AM
08-13-2003 04:16 AM
Solution
Alternatively, build your executable with static (archive) libraries by using the -static or -static-libgcc compiler flags. This will embed the required libraries within the executable resulting in a larger file files. Otherwise you'll have to install the shared libraries on the target system as Adam suggests.
If the libraries are installed in a different location on the target system, set the SHLIB_PATH environment variable before running the program. You may need to run "chatr +s enable" first to enable SHLIB_PATH lookup.
Regards,
Steve
If the libraries are installed in a different location on the target system, set the SHLIB_PATH environment variable before running the program. You may need to run "chatr +s enable
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 05:35 PM
08-13-2003 05:35 PM
Re: gcc libraries being picked up from the wrong location
Hello,
Steven thanks for the info, using chatr solved my problem.
Thanks and regards
Sonison James
Steven thanks for the info, using chatr solved my problem.
Thanks and regards
Sonison James
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP