- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Installing HP ANSI C to other than default target
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
10-26-2004 02:04 AM
10-26-2004 02:04 AM
Installing HP ANSI C to other than default target
I've been trying to get HP ANSI C (B3901BA B.11.11.08) to work from an alternative target path. I have installed it into /opt/sdk2, as described at http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2548,00.html.
It installs fine, however, when I execute /opt/sdk2/opt/ansic/bin/cc, it returns
/opt/sdk2/usr/ccs/bin/ld: Can't open /opt/langtools/lib/crt0.o
/opt/sdk2/usr/ccs/bin/ld: No such file or directory
I have copied set SDKROOT to /opt/sdk2 and also tried with LPATH set to /opt/langtools/lib, but to no avail.
It does work if I link the langtools path to where it expects it (/opt/langtools/lib), but that is not where I want it.
Any suggestions?
Regards,
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 02:17 AM
10-26-2004 02:17 AM
Re: Installing HP ANSI C to other than default target
If you adjust the target and the SHLIB_PATH it might work.
My experiments with java were less than promising though.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 02:46 AM
10-26-2004 02:46 AM
Re: Installing HP ANSI C to other than default target
try LD_PRELOAD
LD_LIBRARY_PATH, SHLIB_PATH, and LD_PRELOAD
Specifies, at runtime, directories to search for library files.
See the +s option, dld.sl(5), and the +help option for the Online
HP-UX Linker and Libraries User's Guide for more information.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 02:49 AM
10-26-2004 02:49 AM
Re: Installing HP ANSI C to other than default target
you should preset the LD_LIBRARY_PATH Variable accordingly
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:25 AM
10-27-2004 01:25 AM
Re: Installing HP ANSI C to other than default target
I have tried with these set and exported accordingly:
LPATH=/opt/sdk2/opt/langtools/lib
SHLIB_PATH=/opt/sdk2/opt/langtools/lib
LD_PRELOAD=/opt/sdk2/opt/langtools/lib
LD_LIBRARY_PATH=/opt/sdk2/opt/langtools/lib
SDKROOT=/opt/sdk2
I still get the same:
bash-2.04# /opt/sdk2/opt/ansic/bin/cc dummy.c
/opt/sdk2/usr/ccs/bin/ld: Can't open /opt/langtools/lib/crt0.o
/opt/sdk2/usr/ccs/bin/ld: No such file or directory
Maybe I'm missing something here?
Regards,
Christian