Force perl Makefile.PL to use gcc instead of cc
am 20.01.2006 18:24:52 von snoopjonny
------=_Part_10727_13810628.1137777892909
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi,
I'm trying to compile DBD::Oracle and on the configure, it assumes I want t=
o
use cc (This is solaris 9) instead of gcc. I have tried setting CC=3Dgcc a=
nd
I've tried moving cc to somewhere else, but I can't get it to generate the
Makefile with gcc. If I modify the Makefile to point to gcc, it uses cc
specific compile options and fails anyway.
Any ideas?
Thanks,
-Snoop Perly Jon
------=_Part_10727_13810628.1137777892909--
Re: Force perl Makefile.PL to use gcc instead of cc
am 20.01.2006 18:32:56 von Alan.Burlison
Jon August wrote:
> I'm trying to compile DBD::Oracle and on the configure, it assumes I want to
> use cc (This is solaris 9) instead of gcc. I have tried setting CC=gcc and
> I've tried moving cc to somewhere else, but I can't get it to generate the
> Makefile with gcc. If I modify the Makefile to point to gcc, it uses cc
> specific compile options and fails anyway.
>
> Any ideas?
Yes, install the perlgcc module from CPAN, then:
perlgcc perl Makefile.PL; make install.
--
Alan Burlison
--
Re: Force perl Makefile.PL to use gcc instead of cc
am 20.01.2006 22:06:10 von jdw
By default, Makefile.PL gets the compiler and compiler options from
the Perl compiler that is running it, by using the compiler and options
used to build the compiler itself . All you should need to create the
Makefile is
perl Makefile.PL
(or possibly /usr/local/bin/perl Makefile.PL -- depending on your path)
Check your PATH environment variable to make sure that you are using
Perl that was built using gcc, probably found in /usr/local/bin. If you use
the stock Solaris perl in /usr/bin/, that one was built using Sun's cc
compiler. Don't get rid of the Sun version in /usr/bin, just make sure
that /usr/local/bin precedes /usr/bin in your PATH.
You can use "which perl" to see which perl you are using
You can use "perl -V" to see the compiler and options used to build
your perl compiler. If "perl -V" does not show:
....
Compiler:
cc='gcc', ...
then you are using the wrong version of Perl.
Jon August wrote:
> Hi,
>
> I'm trying to compile DBD::Oracle and on the configure, it assumes I want to
> use cc (This is solaris 9) instead of gcc. I have tried setting CC=gcc and
> I've tried moving cc to somewhere else, but I can't get it to generate the
> Makefile with gcc. If I modify the Makefile to point to gcc, it uses cc
> specific compile options and fails anyway.
>
> Any ideas?
>
> Thanks,
> -Snoop Perly Jon
--
James D. White (jdw@ou.edu)
Director of Bioinformatics
Department of Chemistry and Biochemistry/ACGT
University of Oklahoma
101 David L. Boren Blvd., SRTC 2100
Norman, OK 73019
Phone: (405) 325-4912, FAX: (405) 325-7762