Solved

Can I change my default C-compiler from cc_r to gcc in Perl??

Posted on 2007-03-19
2
1,609 Views
Last Modified: 2013-11-17
Perl came with my server (5.8) so it shows it was compiler with AIX's default C compiler cc_r. This compiler I never installed since GCC was free. But now I am forced to install all modules using cc_r because Perl is set up with that compiler. How can I change Perl's default compiler to gcc instead of cc_r? This is what my version says. I want to change cc='cc_r' to cc='gcc':

# perl -V|grep cc_r
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong',

Please let me know if this is possible or do I really have to install a second instance of Perl using gcc to compile it? Any help is greatly appreciated.
0
Comment
Question by:bemara57
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 18751617
You have three choices:

1.  Install cc_r
2.  Recompile Perl with gcc
3.  Install a precompiled (with gcc) version of Perl from http://bullfreeware.com/
0
 
LVL 1

Expert Comment

by:midrisi
ID: 18754944
precompiled version of perl with gcc will do the trick and will work perfectly.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux performance issues with 100% swap usage, etc 15 94
ftpcommand 2 66
check unix curl command return value 7 150
Expiration and Locking of Unix/Solaris OS Accounts 7 48
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question