Solved

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

Posted on 2007-03-19
2
1,605 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now