Re: How to get Perl version for AIX using gcc compiler to avoid problems installing DBD::mysql without cc_r compiler?
"Kevin M. Shortt" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
I have experienced this same problem. Your choices are to buy a copy of XL C, use the XL C demo, or replace perl with a gcc compiled version.
We too have no other need to purchase XL C. We have installed a demo and then uninstalled it after our software installations are complete.
Here are my notes to assist. I have sanitzed our company specific pieces. I have not documented the removal of the XL C Compiler. So I have not provided it here. In addition, I did not download it, (some one else did). I could not be specific where to get the demo other than IBM's website.
I hope this helps...and good luck.
-k
# NOTE: Any perl modules that require a C compiler to installed, requires that the same C compiler
# be used that to compile the perl binary on that system.
#
# This URL sums it up as well:
# http://beta.nntp.perl.org/group/perl.dbi.users/2006/07/msg29738.html
#
# The "IBM XL C Compiler" is required. What we have done is installed it for demo or evaluation.
# Then removing it after we have gotten what we needed compiled.
#
# Here are the steps for the IBM XL C Compiler installation.
# The compressed tar file resides on our either of our nim servers at the following location:
# <file path here>/xlcpp.8.0.0.aix.eval.tar.Z
# Place it locally in /usr/local/tgz.
# Login as root to <place name of nim server here> and copy it over.
# You will need the root password handy for the destination server.
- scp <file path here>/xlcpp.8.0.0.aix.eval.tar.Z root@<remote host>:/usr/local/tgz/
# Done with <nim server name>.
# Login to your server as root
- mkdir /usr/local/src/xlcpp
- cd /usr/local/src/xlcpp
- uncompress -c /usr/local/tgz/xlcpp.8.0.0.aix.eval.tar.Z |tar -xvf -
- chown -R root:system .
- cd usr/sys/inst.images/
- smit install
- Install and Update Software
- Install Software
- "." for the INPUT Device.
* INPUT device / directory for software .
* SOFTWARE to install [_all_latest] +
PREVIEW only? (install operation will NOT occur) no +
COMMIT software updates? yes +
SAVE replaced files? no +
AUTOMATICALLY install requisite software? yes +
EXTEND file systems if space needed? yes +
OVERWRITE same or newer versions? no +
VERIFY install and check file sizes? no +
Include corresponding LANGUAGE filesets? yes +
DETAILED output? no +
Process multiple volumes? yes +
ACCEPT new license agreements? yes +
Preview new LICENSE agreements? no +
- press enter
# If not successful, then troubleshoot.
# If successful, then you are done with IBM XL C Compiler installation.
On Tue, 6 Mar 2007, Melerek wrote:
>
> I work on AIX 5.3 without cc_r (my company unfortunately didn't buy it:()
> compiler. I tried to install Bugzilla but it needs DBD::mysql perl module. I
> have ennormous problems installing it because perl's Makefile uses cc_r
> compiler. When i changed compiler to gcc it gives an error:
>
> bash-3.00# make
> gcc -c -I/opt/ActivePerl-5.8/lib/auto/DBI
> -I/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/include/
> -I/opt/freeware/lib/ -I/opt/freeware/libexec/ -I/opt/freeware/bin/
> -I/usr/include/ -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_ALL_SOURCE
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias
> -DUSE_NATIVE_DLOPEN -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -DNEED_PTHREAD_INIT
> -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"4.001\"
> -DXS_VERSION=\"4.001\" "-I/opt/ActivePerl-5.8/lib/CORE" dbdimp.c
> gcc: unrecognized option `-qmaxmem=-1'
> gcc: unrecognized option `-qnoansialias'
> gcc: unrecognized option `-q32'
> gcc: unrecognized option `-qlonglong'
> In file included from /opt/ActivePerl-5.8/lib/CORE/op.h:497,
> from /opt/ActivePerl-5.8/lib/CORE/perl.h:2754,
> from /opt/ActivePerl-5.8/lib/auto/DBI/DBIXS.h:19,
> from dbdimp.h:21,
> from dbdimp.c:20:
> /opt/ActivePerl-5.8/lib/CORE/reentr.h:776: error: field `_srandom_struct'
> has incomplete type
> /opt/ActivePerl-5.8/lib/CORE/reentr.h:780: confused by earlier errors,
> bailing out
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
>
> I tried almost everything to obey this (even ExtUtils::FakeConfig) but it
> didn't help. Is there any other way to solve this problem? If not... maybe
> it would be easier to find a version od Perl for AIX whitch' Makefile uses
> gcc in modules' instalation... Please help
>
> Melerek
> --
> View this message in context: http://www.nabble.com/How-to-get-Perl-version-for-AIX-using-gcc-compiler-to-avoid-problems-installing-DBD%3A%3Amysql-without-cc_r-compiler--tf3355062.html#a9330771
> Sent from the MySQL - Perl mailing list archive at Nabble.com.
>
>
> --
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe: http://lists.mysql.com/[email protected]
>
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]