Cpan and gcc
am 27.09.2005 20:38:29 von erri
Hi.
I wish to install spamassassin 3.1 on aix 5.2 with gcc. It require several
modules like sha1, etc. If i use CPAN
to get all necessary modules or i try to build with "perl Makefile.PL",
building stops because it use to default cc_r compiler instead gcc.
How do i can to set this?
Thanks.
Re: Cpan and gcc
am 27.09.2005 22:17:52 von Juha Laiho
"erri" said:
>I wish to install spamassassin 3.1 on aix 5.2 with gcc. It require several
>modules like sha1, etc. If i use CPAN
>to get all necessary modules or i try to build with "perl Makefile.PL",
>building stops because it use to default cc_r compiler instead gcc.
>How do i can to set this?
More or less, modules should be compiled with the same compiler
that was used to compile the perl you're using. So, switch to
a perl that is compiled with gcc.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Re: Cpan and gcc
am 28.09.2005 00:45:45 von Sisyphus
"erri" wrote in message
news:433991a6$0$49018$14726298@news.sunsite.dk...
> Hi.
> I wish to install spamassassin 3.1 on aix 5.2 with gcc. It require several
> modules like sha1, etc. If i use CPAN
> to get all necessary modules or i try to build with "perl Makefile.PL",
> building stops because it use to default cc_r compiler instead gcc.
> How do i can to set this?
>
Run "perl Makefile.PL cc=gcc".
But, as Juha indicated, it may turn out to be simpler to use a perl that was
built with gcc.
Cheers,
Rob
Re: Cpan and gcc
am 28.09.2005 15:45:30 von erri
That doesn't works."perl Makefile.PL cc=gcc".
"Sisyphus" escribió en el mensaje
news:4339cbe1$0$28817$afc38c87@news.optusnet.com.au...
>
> "erri" wrote in message
> news:433991a6$0$49018$14726298@news.sunsite.dk...
>> Hi.
>> I wish to install spamassassin 3.1 on aix 5.2 with gcc. It require
>> several
>> modules like sha1, etc. If i use CPAN
>> to get all necessary modules or i try to build with "perl Makefile.PL",
>> building stops because it use to default cc_r compiler instead gcc.
>> How do i can to set this?
>>
>
> Run "perl Makefile.PL cc=gcc".
>
> But, as Juha indicated, it may turn out to be simpler to use a perl that
> was
> built with gcc.
>
> Cheers,
> Rob
>
>
Re: Cpan and gcc
am 29.09.2005 05:10:42 von Sisyphus
"erri"
> That doesn't works."perl Makefile.PL cc=gcc".
>
Do you mean it still fails to use gcc instead of the default compiler ?
(That would surprise me.)
Or do you simply mean that the build process still fails ? (That would not
surprise me.)
Cheers,
Rob
Re: Cpan and gcc
am 29.09.2005 10:21:07 von erri
The first one. If i use "perl Makefile.PL cc=gcc" or "perl Makefile.PL
CC=gcc" it use cc_r instead gcc.
"Sisyphus" escribió en el mensaje
news:433b5b73$0$11928$afc38c87@news.optusnet.com.au...
>
> "erri"
>
>> That doesn't works."perl Makefile.PL cc=gcc".
>>
>
> Do you mean it still fails to use gcc instead of the default compiler ?
> (That would surprise me.)
>
> Or do you simply mean that the build process still fails ? (That would not
> surprise me.)
>
> Cheers,
> Rob
>
>
Re: Cpan and gcc
am 29.09.2005 12:19:41 von Sisyphus
"erri"
> The first one. If i use "perl Makefile.PL cc=gcc" or "perl Makefile.PL
> CC=gcc" it use cc_r instead gcc.
>
Well .... it should work on perl 5.8 and 5.6. I'm not so sure about earlier
versions of perl. Perhaps you have an older version of perl that doesn't
support this feature - which would be another reason to build your own perl
using gcc. (Running "perl -v" will tell you which version of perl you have.)
If you really want to try using gcc with your current version of perl, you
could find the line:
cc='cc_r'
in Config.pm, and change it to:
cc='gcc'
See how that goes. There may be other incompatibilities to resolve - and if
there are, then the quickest way to resolve them is probably to build your
own perl with gcc and use that perl instead (as suggested by Juha).
Cheers,
Rob