Article View: perl.cpan.metadata
Article #1Re: Question on cpan installs
From: "Randy W. Sims"
Date: Tue, 11 Jan 2005 23:20
Date: Tue, 11 Jan 2005 23:20
28 lines
3119 bytes
3119 bytes
Michael.Dunham@micorp.com wrote: > I may have sent this to the wrong discussion group - I am new to using > CPAN.... > If so, sorry! > > I am running on an IBM AIX 5.2 system. I am trying to run the following: > > perl -MCPAN -e shell > > cpan> install Bundle::CPAN > > This downloads the bundles fine. However it tries to use the IBM C > compiler which is cc_r. I want it to use gcc. > > Anyone know how to make this happen? It's actually ExtUtils::MakeMaker or Module::Build that does the compiling, and it uses the same compiler used to compile perl itself (`perl -V:cc`). This value is stored in Config.pm (`perldoc -l Config` will give the location). You can edit your Config.pm and change the value assigned to 'cc', but it may cause problems. Specifically, if modules are compiled with a different compiler than that used to compile perl, especially if it uses a different C runtime library, there can be problems of memory corruption (one lib freeing memory allocated in another lib), io sync problems, etc. In general, if you want to compile modules with gcc, then you should also compile perl with gcc. Randy.
Technical Details
Message-ID:
<41E45F32.9000105@ThePierianSpring.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!nntp.perl.orgReferences:
<OFFBD84347.EABDC074-ON86256F86.00682457-86256F86.006893C1@micorp.com>Show Full Headers
Complete Article Headers
Message-ID: <41E45F32.9000105@ThePierianSpring.org>
Subject: Re: Question on cpan installs
Date: Tue, 11 Jan 2005 18:20:18 -0500
From: ml-perl@ThePierianSpring.org ("Randy W. Sims")
References: <OFFBD84347.EABDC074-ON86256F86.00682457-86256F86.006893C1@micorp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!nntp.perl.org
Newsgroups: perl.cpan.metadata
Return-Path: <ml-perl@ThePierianSpring.org>
Mailing-List: contact cpan-metadata-help@perl.org; run by ezmlm
Delivered-To: mailing list cpan-metadata@perl.org
Delivered-To: moderator for cpan-metadata@perl.org
Received: (qmail 24911 invoked from network); 11 Jan 2005 23:20:49 -0000
Received: from x1.develooper.com (63.251.223.170)
Received: (qmail 23270 invoked by uid 225); 11 Jan 2005 23:20:48 -0000
Delivered-To: cpan-metadata@perl.org
Received: (qmail 23263 invoked by alias); 11 Jan 2005 23:20:48 -0000
X-Spam-Status: No, hits=-3.1 required=8.0
tests=BAYES_00,RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL
X-Spam-Check-By: la.mx.develooper.com
Received-SPF: neutral (x1.develooper.com: local policy)
Received: from imf24aec.mail.bellsouth.net (HELO imf24aec.mail.bellsouth.net) (205.152.59.72)
Received: from [127.0.0.1] ([66.156.33.165]) by imf24aec.mail.bellsouth.net
(InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with ESMTP
id <20050111232036.DSDE2032.imf24aec.mail.bellsouth.net@[127.0.0.1]>;
Reply-To: RandyS@ThePierianSpring.org
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael.Dunham@micorp.com
CC: cpan-metadata@perl.org
In-Reply-To: <OFFBD84347.EABDC074-ON86256F86.00682457-86256F86.006893C1@micorp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Approved: news@nntp.perl.org