Solved

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

Posted on 2007-03-19
2
1,598 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
Comment Utility
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
Comment Utility
precompiled version of perl with gcc will do the trick and will work perfectly.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Perl modules on linux ec2 3 85
Perl string filter 5 62
Image not there 4 33
Matching a random pattern with one common character 2 19
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

772 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

11 Experts available now in Live!

Get 1:1 Help Now