On 05/09/2005 03:47 PM, De Joe, Jackie said:
I have two questions, first do I understand correctly to use DBD::TSM 1.48 I must have DBI installed?
You understand correctly.
Second, I am having trouble installing DBI. Here's some info: I am very much a newbie at compiling code, any help will be so appreciated!!
AIX unix 5.2.0.0
chewbacca:/adsm2/perl/DBI-1.48 # which gcc /usr/bin/gcc
chewbacca:/ # gcc -v Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/specs Configured with: ../gcc-3.3.2/configure : (reconfigured) ../gcc-3.3.2/configure --disable-nls : (reconfigured) ../gcc-3.3.2/configure --disable-nls Thread model: aix gcc version 3.3.2
This is irrelevant. Your local perl was build with cc_r, so you need that to build any Perl modules that have XS components.
chewbacca:/ # perl -v
The output from `perl -V` would be more interesting. In particular, it would tell you what compiler was used to build perl.
chewbacca:/adsm2/perl/DBI-1.48 # make...
cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlon glong -O -DVERSION=\"1.48\" -DXS_VERSION=\"1.48\" "-I/usr/opt/perl5/lib/5.8 .0/aix-thread-multi/CORE" Perl.c /bin/sh: cc_r: not found.
This error means exactly what it says. The right compiler is either not installed or not in a directory in your $PATH.
http://search.cpan.org/src/TIMB/DBI-1.48/README
Read the section starting with "IF YOU HAVE PROBLEMS".
-- Mac :}) ** I usually forward private questions to the appropriate mail list. ** Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age.
