Connecting MSSQL from Linux

  • I am trying to install DBD::Sybase module in Linux environment to connect the MSSQL. I am not sure whether i can post this question in this forum. If anyone has any solution please help me on this.

    When i compile the Perl module in linux i am getting the following error

    make

    cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod

    cp Sybase.pm blib/lib/DBD/Sybase.pm

    /usr/bin/perl -p -e "s/~DRIVER~/Sybase/g" /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi/auto/DBI/Driver.xst > Sybase.xsi

    /usr/bin/perl /usr/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap Sybase.xs > Sybase.xsc && mv Sybase.xsc Sybase.c

    cc -c -I/usr/local/include -DNO_BLK=1 -I/usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/usr/lib/perl5/5.8.7/i586-linux-thread-multi/CORE" Sybase.c

    Sybase.c:1: error: CPU you selected does not support x86-64 instruction set

    make: *** [Sybase.o] Error 1

    Please help me on this

  • Looks like a compilation error, not one connecting to SQL. What platforms are you using?

  • I am using Linux SuSE environment

  • You are trying to use a Sybase driver to connect to MS SQL Server from Perl in Linux.

    Sybase and MS SQL Server used to be the same thing but not for about the last 15 years.

    Best to try something lile a native or ODBC driver to MS SQL Server.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply