Hi,
Here's my problem. I am trying to connect to SQLServer
DB using Perl on Linux. So my code has 
use DBI;
use DBD::Sybase;
at the top of the code. 

I am also using FreeTDS in /usr/local. So
[EMAIL PROTECTED] local]# pwd
/usr/local
[EMAIL PROTECTED] local]# ls
apache  DBD-Sybase-1.02  etc  info  libexec  sbin  
src
bin     doc              freetds-0.62.1

Also, the Free TDS libraries are in /usr/local/lib
[EMAIL PROTECTED] lib]# pwd
/usr/local/lib
[EMAIL PROTECTED] lib]# ls
libct.a     libct.so.2.0  libsybdb.so.4    libtds.so  
   libtdssrv.la
libct.la    libsybdb.a    libsybdb.so.4.0  libtds.so.3
   libtdssrv.so
libct.so    libsybdb.la   libtds.a        
libtds.so.3.0  libtdssrv.so.1
libct.so.2  libsybdb.so   libtds.la      

Also, DBD:Sybase was installed from Micheal Peppler's
website  
[EMAIL PROTECTED] lib]# pwd
/usr/lib
[EMAIL PROTECTED] lib]# ls
DBD-Sybase-1.02           libm.so
....

Sybase.pm is present in the above directory.

I also ran MakeFile.PL script ....
Also $SYBASE env. variable is
[EMAIL PROTECTED] lib]# echo $SYBASE
/usr/local

Now when I try to run my Perl program I get

$ perl abc.pl
Can't locate DBD/Sybase.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at abc.pl line 3.
BEGIN failed--compilation aborted at abc.pl line 3.

Why cant it locate the Sybase.pm module? Any
solutions?

Thanks,
VK




__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

Reply via email to