Re: DBI Module installtion

"Martin J. Evans" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Organization at home
Message-ID <[email protected]>
On 29/04/2013 14:55, Anoop Kumar Paramesweran wrote:
> Hi Support,
>
> I am receiving below error while installing (make ) DBI module in my AIX
> box. As I am new to Perl installations could you please help me to solve
> this..
>
> xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
> -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended
> -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O
> -DVERSION=\"1.625\" -DXS_VERSION=\"1.625\"
> "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE" Perl.c
> /bin/sh: xlc_r: not found.
> make: 1254-004 The error code from the last command is 127.
>
>
> Stop.

The Perl you are using was compiled with the AIX C compiler and it is 
either a) not installed or b) it is not on your path.

You can either:

a) add the AIX compiler xlc_r to your path if you have it installed (you 
usually have to pay IBM for this compiler)

b) install the IBM compiler and add it to your PATH.

c) install another compiler such as gcc (which is free), build Perl 
yourself into some dir you can point your PATH at and then install DBI. 
You might find perlbrew useful if you end up here.

Mostly when people report the issue you have they have installed Perl 
from a package provided by IBM that they built with their compiler and 
you don't have this compiler. When Perl is built is records the compiler 
and options used and generally you cannot compile Perl itself with one 
compiler and then modules which require a C compiler with another compiler.

Martin
-- 
Martin J. Evans
Wetherby, UK
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.