Re: /bin/sh: cc_r: not found
On 10/29/2015 5:00 PM, Derek G Jones via dbi-users wrote: It is not so clear that it is GCC that's missing. You're on AIX, and the IBM-provided compilers tend to have names with extensions like _r. And often names such as xlc_r. These might conceivably be in /usr/vac/bin if you have the software installed at all. cc_r is the multithreaded version of the cc command from XLC ... perl is built with multithreading, so... -- john r pierce, recycling bits in santa cruz
Re: /bin/sh: cc_r: not found
As an internal IBM user - assuming that from the email address - getting hold of the xlC suite should be doable with little or no cost. If that fails, I fully agree, rebuild perl with gcc and start over. Kind regards Derek Jones. From: Jonathan Leffler To: Abhishek Mohanty1 Cc: DBI Users Mailing List Sent: Thursday, October 29, 2015 5:47 PM Subject: Re: /bin/sh: cc_r: not found The problem is definitely that you are missing the compiler, cc_r, that was used to build Perl. It is not so clear that it is GCC that's missing. You're on AIX, and the IBM-provided compilers tend to have names with extensions like _r. And often names such as xlc_r. These might conceivably be in /usr/vac/bin if you have the software installed at all. If you can't find cc_r and can't afford to get it, you may be able to get away with faking it. However, options such as -qnoansialias are going to cause problems with most compilers other than the IBM ones. AFAIK, GCC won't support those options even on AIX. Frankly, you may be best off rebuilding Perl yourself with a compiler of your choosing, and then adding DBI and so on. On Thu, Oct 29, 2015 at 2:29 AM, Abhishek Mohanty1 wrote: Hello Team , We are facing an issue while trying to install DBI-1.634. Perl Version we use : v5.8.8 built for aix-thread-multi Server Version:AIX IMCBLRDMZSR1237 1 6 00C6FD554C00 I downloaded DBI-1.634 . It had 2 dependencies which i installed succesfullly ExUtils:MakeMaker and Test:Simple . Now it throws error as Running Mkbootstrap for DBI () chmod 644 "DBI.bs" cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"1.634\" -DXS_VERSION=\"1.634\" "-I/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE" Perl.c /bin/sh: cc_r: not found. make: 1254-004 The error code from the last command is 127. I still searched for some more gcc related rpm and installed on the system . RPMs i installed are: libgcc-4.2.0-3 gcc-java-4.2.0-3 gcc-4.2.0-3 gcc-locale-4.2.0-3 gcc-c++-4.2.0-3 libgcj-4.2.0-3 gcc-gij-4.2.0-3 But still i am facing the same issue . All forums have suggested that this issue is due to missing gcc compiler . Please do let me know how do i resolve it or steps to install cc_r /gcc compiler. Thanks Abhishek -- Jonathan Leffler #include Guardian of DBD::Informix - v2015.0826 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
Re: /bin/sh: cc_r: not found
On 10/29/2015 2:29 AM, Abhishek Mohanty1 wrote: We are facing an issue while trying to install DBI-1.634. Perl Version we use : v5.8.8 built for aix-thread-multi Server Version:AIX IMCBLRDMZSR1237 1 6 00C6FD554C00 I downloaded *DBI-1.634* . It had 2 dependencies which i installed succesfullly ExUtils:MakeMaker and Test:Simple . Now it throws error as *Running Mkbootstrap for DBI ()* *chmod 644 "DBI.bs"* *cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\"1.634\" -DXS_VERSION=\"1.634\" "-I/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE" Perl.c* */bin/sh: cc_r: not found.* *make: 1254-004 The error code from the last command is 127. * I still searched for some more gcc related rpm and installed on the system . RPMs i installed are: libgcc-4.2.0-3 gcc-java-4.2.0-3 gcc-4.2.0-3 gcc-locale-4.2.0-3 gcc-c++-4.2.0-3 libgcj-4.2.0-3 gcc-gij-4.2.0-3 But still i am facing the same issue . All forums have suggested that this issue is due to missing gcc compiler . Please do let me know how do i resolve it or steps to install cc_r /gcc compiler. the Perl supplied for AIX from IBM in */usr/opt/perl5* was compiled with IBM's XL-C compiler, which is a paid product. cc_r is normally in /usr/vac/bin or /usr/vacpp/bin if you've installed XLC or XLC++ respectively. While it may be possible to compile perl extensions with GCC, it likely requires jumping through hoops as the compiler options are /very/ different. -- john r pierce, recycling bits in santa cruz
Re: /bin/sh: cc_r: not found
The problem is definitely that you are missing the compiler, cc_r, that was used to build Perl. It is not so clear that it is GCC that's missing. You're on AIX, and the IBM-provided compilers tend to have names with extensions like _r. And often names such as xlc_r. These might conceivably be in /usr/vac/bin if you have the software installed at all. If you can't find cc_r and can't afford to get it, you may be able to get away with faking it. However, options such as -qnoansialias are going to cause problems with most compilers other than the IBM ones. AFAIK, GCC won't support those options even on AIX. Frankly, you may be best off rebuilding Perl yourself with a compiler of your choosing, and then adding DBI and so on. On Thu, Oct 29, 2015 at 2:29 AM, Abhishek Mohanty1 wrote: > Hello Team , > > We are facing an issue while trying to install DBI-1.634. > > Perl Version we use : v5.8.8 built for aix-thread-multi > Server Version:AIX IMCBLRDMZSR1237 1 6 00C6FD554C00 > > I downloaded *DBI-1.634* . It had 2 dependencies which i installed > succesfullly ExUtils:MakeMaker and Test:Simple . > Now it throws error as > > *Running Mkbootstrap for DBI ()* > *chmod 644 "DBI.bs"* > *cc_r -c-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE > -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 > -D_LARGE_FILES -qlonglong -O-DVERSION=\"1.634\" -DXS_VERSION=\"1.634\" > "-I/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE" Perl.c* > */bin/sh: cc_r: not found.* > *make: 1254-004 The error code from the last command is 127. * > > I still searched for some more gcc related rpm and installed on the system > . > RPMs i installed are: > libgcc-4.2.0-3 > gcc-java-4.2.0-3 > gcc-4.2.0-3 > gcc-locale-4.2.0-3 > gcc-c++-4.2.0-3 > libgcj-4.2.0-3 > gcc-gij-4.2.0-3 > > But still i am facing the same issue . > All forums have suggested that this issue is due to missing gcc compiler . > > Please do let me know how do i resolve it or steps to install cc_r /gcc > compiler. > > Thanks > Abhishek > -- Jonathan Leffler #include Guardian of DBD::Informix - v2015.0826 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
Re: /bin/sh: cc_r: not found
Hello Team , We are facing an issue while trying to install DBI-1.634. Perl Version we use : v5.8.8 built for aix-thread-multi Server Version:AIX IMCBLRDMZSR1237 1 6 00C6FD554C00 I downloaded DBI-1.634 . It had 2 dependencies which i installed succesfullly ExUtils:MakeMaker and Test:Simple . Now it throws error as Running Mkbootstrap for DBI () chmod 644 "DBI.bs" cc_r -c-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\"1.634\" -DXS_VERSION=\"1.634\" "-I/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE" Perl.c /bin/sh: cc_r: not found. make: 1254-004 The error code from the last command is 127. I still searched for some more gcc related rpm and installed on the system . RPMs i installed are: libgcc-4.2.0-3 gcc-java-4.2.0-3 gcc-4.2.0-3 gcc-locale-4.2.0-3 gcc-c++-4.2.0-3 libgcj-4.2.0-3 gcc-gij-4.2.0-3 But still i am facing the same issue . All forums have suggested that this issue is due to missing gcc compiler . Please do let me know how do i resolve it or steps to install cc_r /gcc compiler. Thanks Abhishek