I am new to perl. I want to write a script to connect to Sybase ASE.
I am using a 64 bit linux machine(Linux 2.6.18-194.11.1.el5 x86_64) and i have installed a 64 bit Sybase ASE which is up and running.
Now, to write a perl script to connect to ASE, i want DBD::Sybase. While installing it is failing during 'make' with the following error -
perl -MCPAN -e 'install DBD::Sybase'
.
.
.
Checking if your kit is complete...
Looks good
Using DBI 1.634 (for perl 5.008003 on x86_64-linux) installed in /opt/
+perl-5.8.3-24/lib/site_perl/5.8.3/x86_64-linux/auto/DBI/
Writing Makefile for DBD::Sybase
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
cp Sybase.pm blib/lib/DBD/Sybase.pm
/opt/perl-5.8.3-24/bin/perl -p -e "s/~DRIVER~/Sybase/g" /opt/perl-5.8.
+3-24/lib/site_perl/5.8.3/x86_64-linux/auto/DBI/Driver.xst > Sybase.xs
+i
/opt/perl-5.8.3-24/bin/perl /opt/perl-5.8.3-24/lib/5.8.3/ExtUtils/xsub
+pp -typemap /opt/perl-5.8.3-24/lib/5.8.3/ExtUtils/typemap Sybase.xs
+ > Sybase.xsc && mv Sybase.xsc Sybase.c
cc -c -I/opt/sap/OCS-16_0/include -I/opt/perl-5.8.3-24/lib/site_perl/
+5.8.3/x86_64-linux/auto/DBI -I/usr/include/gdbm -fno-strict-aliasing
+-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -
+fPIC -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fpic "-I/opt/perl-5.
+8.3-24/lib/5.8.3/x86_64-linux/CORE" Sybase.c
cc -c -I/opt/sap/OCS-16_0/include -I/opt/perl-5.8.3-24/lib/site_perl/
+5.8.3/x86_64-linux/auto/DBI -I/usr/include/gdbm -fno-strict-aliasing
+-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -
+fPIC -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fpic "-I/opt/perl-5.
+8.3-24/lib/5.8.3/x86_64-linux/CORE" dbdimp.c
dbdimp.c: In function ‘syb_st_execute’:
dbdimp.c:3906: warning: passing argument 2 of ‘ct_results’ from incomp
+atible pointer type
dbdimp.c:3930: warning: passing argument 5 of ‘ct_bind’ from incompati
+ble pointer type
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/opt/sap/OCS-16_0/lib" cc -L/opt/sap/OCS-16_0/lib -share
+d -L/usr/local/lib64 -L/lib64 -L/usr/lib64 Sybase.o dbdimp.o -o blib
+/arch/auto/DBD/Sybase/Sybase.so \
-L/opt/sap/OCS-16_0/lib -lsybct -lsybcs -lsybtcl -lsybcomn -lsy
+bintl -lsybblk -ldl -lm \
/usr/bin/ld: skipping incompatible /opt/sap/OCS-16_0/lib/libsybct.so w
+hen searching for -lsybct
/usr/bin/ld: skipping incompatible /opt/sap/OCS-16_0/lib/libsybct.so w
+hen searching for -lsybct
/usr/bin/ld: cannot find -lsybct
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Sybase/Sybase.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
'perl -v' gives the following output -
This is perl, v5.8.3 built for x86_64-linux
Copyright 1987-2003, Larry Wall
Perl may be copied only under the terms of either the Artistic License
+ or the
GNU General Public License, which may be found in the Perl 5 source ki
+t.
Complete documentation for Perl, including FAQ lists, should be found
+on
this system using `man perl' or `perldoc perl'. If you have access to
+ the
Internet, point your browser at http://www.perl.com/, the Perl Home Pa
+ge.
Unable to figure out a fix for this error. Please help!