- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PERL Install issue
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
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
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
тАО01-13-2003 01:29 PM
тАО01-13-2003 01:29 PM
Use which C compiler? [cc]
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pr
oduct; ignored.
(Bundled) cc: "try.c", line 1: error 1705: Function prototypes are an ANSI feat
ure.
Uh-oh, the C compiler 'cc' doesn't seem to be working.
Configure[3773]: gcc: not found.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pr
oduct; ignored.
(Bundled) cc: "try.c", line 1: error 1705: Function prototypes are an ANSI feat
ure.
Uh-oh, the C compiler 'cc' doesn't seem to be working.
You need to find a working C compiler.
HOWEVER,
I know the compiler is good b/c it is being used. Also, $PATH contains the proper paths to the compiler.
Any thoughts would be greatly appreciated.
Thanks
Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 01:37 PM
тАО01-13-2003 01:37 PM
Re: PERL Install issue
Unless you have a compelling reason to compile Perl, you can use the readily available binary ports.
If indeed you do have a configured ANSI/C compiler then /usr/bin/cc should be symbolically linked to /opt/ansic/bin/cc but the warnings you are getting indicate that the bundled c compiler is being invoked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 01:43 PM
тАО01-13-2003 01:43 PM
Re: PERL Install issue
Thanks
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 01:57 PM
тАО01-13-2003 01:57 PM
Re: PERL Install issue
Plan B: Edit your existing makefiles replacing cc with gcc but you will probably then have to change some compiler options as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 02:19 PM
тАО01-13-2003 02:19 PM
Re: PERL Install issue
# sh ./Configure -Dcc=gcc -des
Plan B. Use my precompiled version from https://www.beepz.com/personal/merijn or http://www.cmve.net/~merijn
Plan C. Buy the C-ANSI-C compiler. It outperforms gcc by 25%, so if you have more than only perl to compile, or you need high performance perl, it's worth thinking about.
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 02:30 PM
тАО01-13-2003 02:30 PM
Solution-Dcc=gcc is the way to go (you /can/ use the full path)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 02:49 PM
тАО01-13-2003 02:49 PM
Re: PERL Install issue
I went ahead and installed a 64-bit gcc compiler from the HP site and installed it through swinstall.
Then i re-ran the perl Configure as:
sh Configure -Dcc=gcc
And I get this error:
-----------------------------
Configure[2933]: gcc: not found. You need to find a working C compiler.
-----------------------------
Is it a problem that it is 64 bit? Also, I added the path of gcc compiler which is /usr/local/pa20_64/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 02:57 PM
тАО01-13-2003 02:57 PM
Re: PERL Install issue
int main(void)
{
(void) printf("Hello World\n");
return(0);
}
gcc baby.c -o baby
and then see if baby executes. If so you have a working gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 03:23 PM
тАО01-13-2003 03:23 PM
Re: PERL Install issue
I am trying now to load modules onto the box and I got an error when loading the first (Date::Calc)
# perl -MDate::Calc -e 1
Can't load '/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/auto/Date/Calc/Calc.sl' for mod
ule Date::Calc: Exec format error at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/DynaLoader.pm li
ne 229.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted
I'm so close. Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2003 04:21 PM
тАО01-13-2003 04:21 PM
Re: PERL Install issue
First, check if you have the ANSI C compiler with swlist -l bundle If you do, there are a couple of choices:
- rename /usr/bin/cc to /usr/bin/cc-k&r and make sure that the ANSI compiler's path (in /opt/ansic/bin) is present. Check /etc/PATH to be sure that everyone sees this path.
- rename /usr/bin/cc to /usr/bin/cc and create a symlink to the ANSI compiler using ln -s /opt/ansic/bin/cc /usr/bin/cc
Perl 5 is available ready to install and run from www.software.hp.com
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2003 01:43 AM
тАО01-14-2003 01:43 AM
Re: PERL Install issue
Unless you want to link 64bit objects later - like DBD-Oracle to 64bit ports - it is unlikely that you need 64bit perl.
FYI 64bit perl is 14% slower than 32bit perl accross the line.
Have you tried my precompiled perl from https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/ ? It comes with a lot of precompiled modules.
If you still want to try yourself, be sure that the PATH to gcc is in you $PATH (either add it in /etc/PATH or add it to $PATH in your ~/.tcshrc, ~/.profile, or whatever shell initializing file you have)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2003 08:43 AM
тАО01-14-2003 08:43 AM
Re: PERL Install issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2003 08:49 AM
тАО01-14-2003 08:49 AM
Re: PERL Install issue
First, the 64-bit I was referring to was the gcc compiler, not PERL. I removed the gcc compiler and installed a 32-bit version and had no problems. I just assumed that the 64 bit compiler was backwards compatible. After installing the 32-bit compiler I was able to add DBI and other modules. Thanks to everyfor there help on this issue.
Note*** I am not related to Pamela