Can I change my default C-compiler from cc_r to gcc in Perl??
Posted on 2007-03-19
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.