Operating System - HP-UX
1832300 Members
1999 Online
110041 Solutions
New Discussion

Perl 5.8.2 and change_config_pm to gcc

 
SOLVED
Go to solution
Mark Coleman_1
Occasional Advisor

Perl 5.8.2 and change_config_pm to gcc

Hi All,
I just downloaded the binary dist of perl 5.8.2 for HPUX 11.11 PA-RISC and installed it. I also have installed the binary dist of gcc 3.3.3 and binutils 2.14 as well. I was using perl to build DBI and it fails on the compiler. perl -V shows the compiler listed as cc, and I would like to change that to gcc. The perl page says to use /opt/perl/bin/change_config_pm gcc to change it to gcc. Unfortunately, change-config_pm doesn't exist. Can anyone help me get the perl Config.pm's to point to gcc so I can get some other modules built?
Thanks a million!!!

Mark
5 REPLIES 5
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl 5.8.2 and change_config_pm to gcc

Don't. Please don't. Though it is possible it /might/ work, chances are bigger it won't, especially if you have either a 64bit build and/or a threaded perl.

You can fetch the most recent stable perl-5.8.4 prebuilt binary for HP-UX 10.20, 11.00/32, 11.00/64, 11.11/32, and 11.11/64 from my site, which already includes the most recent stable DBI, all built with gcc-3.4.0

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Mel Burslan
Honored Contributor

Re: Perl 5.8.2 and change_config_pm to gcc

I am not an expert on compiling perl modules but a trick which comes to mind is

find where your cc executable is and rename it to something like OLD_cc

create a symlink from gcc to cc, i.e.,

cd /wherever_cc_is
mv cc OLD_cc
ln -s /path_to_gcc/gcc cc

if cc is totally non existent, you can get away with creating the symbollic link somewhere under your global PATH which can be found in /etc/PATH.

HTH
________________________________
UNIX because I majored in cryptology...
Mark Coleman_1
Occasional Advisor

Re: Perl 5.8.2 and change_config_pm to gcc

Hi H.
Yes I was just figuring that out. I have pulled both gcc 3.4 and perl 5.8.4 off of your site and am installing them now. Thanks a lot for putting all that out there for everyone to use!

Can't wait to start Oracle perl'ing!

Mark
H.Merijn Brand (procura
Honored Contributor

Re: Perl 5.8.2 and change_config_pm to gcc

Mel, that won't work, certainly not with perl and/or perl-xs modules, because Config.pm (find /opt/perl -name Config.pm) is loaded with options for the C compiler at hand and the loader used. They will have to match, or you are heading for many hours of figuring out where options come from and why they do not work.

Mark, DBD-Oracle is not included in my distro, but as of 1.15, should build out of the box. If you encounter problems, please read DBD-Oracle's README.hpux, and post any changes you have to make here, so I can try to get them integrated in the next release.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Mark Coleman_1
Occasional Advisor

Re: Perl 5.8.2 and change_config_pm to gcc

Just an update note!
I fetched perl 5.8.4 for gcc3.4 and gcc 3.4 from procura's website. All 11.11 64 bit versions.
Pulled DBD-Oracle 1.15 from CPAN and set all the environment variables (ORACLE_HOME, ORACLE_SID, ORACLE_USERID, SHLIB_PATH, LD_LIBRARY_PATH). Everything installed successfully.
The ORACLE_HOME was /oracle/product/9.2, so this is built against the latest version of the DB (This is Oracle patched to 9.2.0.4).
Other than setting the environment variables everything worked like a breeze. Now to write some perl that connects to the database and does something to really test it.

Thanks to all for their help..

Mark