- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: perl, module installation and gcc
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
тАО08-09-2007 02:15 AM
тАО08-09-2007 02:15 AM
I've been working on HPs for the better part of 14 years and I don't think I've ever gotten anything to compile w/o an unholy amount of effort.
My current issue is trying to get the DBD module working on a fresh install of perl5.8.7 (downloaded from software.hp.com).
When I run "install DBD", it errors out stating various things like:
cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
I looked at the make file and saw the "CC = cc" line. I tried changing that to gcc then, in that directory, running "make". (that's about the limit of my c programming knowledge).
I got a bunch of errors
# make
gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" +Z "-I/opt/perl_32/lib/5.8.7/PA-RISC1.1-thread-multi/CORE" Perl.c
gcc: +Z: No such file or directory
gcc: +Onolimit: No such file or directory
gcc: +Opromote_indirect_calls: No such file or directory
gcc: +DAportable: No such file or directory
gcc: +DS2.0: No such file or directory
gcc: +Z: No such file or directory
cc1: error: unrecognized command line option "-fast"
*** Error exit code 1
Stop.
Is there a way around this?
Thanks for any help/hints/suggestions.
Very Frustrated:
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 02:20 AM
тАО08-09-2007 02:20 AM
Re: perl, module installation and gcc
You can try with "make clean", "make dist clean" and export CC=
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 02:20 AM
тАО08-09-2007 02:20 AM
Re: perl, module installation and gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 02:24 AM
тАО08-09-2007 02:24 AM
SolutionThe error "cc: warning 480: The -A option is available only with the C/ANSI C product; ignored." says that you don't have anything more than the HP bundled compiler. You need an ANSI C (not free) compiler or 'gcc'.
Next, when you need to compile Perl modules, you need the *same* compiler that compiled the Perl distribution.
# perl -V:cc
...will summarize your's.
Since you downloaded from HP, the HP ANSII C compiler was used and now you're stuck.
You can license an HP compiler from here:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA
*OR*:
Fetch a 'gcc' compiled Perl from Merijn here:
http://mirrors.develooper.com/hpux/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 03:33 AM
тАО08-09-2007 03:33 AM
Re: perl, module installation and gcc
Downloading the gcc compiled version of perl worked - at least so far. Thanks for the link.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html