LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Centos - SYBASE (https://www.linuxquestions.org/questions/linux-software-2/centos-sybase-794168/)

raggoflex 03-09-2010 04:57 AM

Centos - SYBASE
 
Hi there.

I'm attempting to get freetds and sybase up and running on my centos server, mainly for nagios - MSSQL checks. I've installed freetds freetds-devel ok but am having issues getting SYBASE installed. I've had a go via cpan but get a failure on the sybase environment variable. I've set it to /etc where the conf file is located as well as trying /urr/lib64 for the tds libs, but no joy. Has anyone had much luck with this on centos?

export SYBASE=/etc
[root@nagios ~]# echo $SYBASE
/etc

cpan DBD::Sybase


CPAN: Storable loaded ok (v2.15)
Going to read '/root/.cpan/Metadata'
Database was generated on Mon, 08 Mar 2010 12:44:17 GMT
Running install for module 'DBD::Sybase'
Running make for M/ME/MEWP/DBD-Sybase-1.09.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.024)
Checksum for /root/.cpan/sources/authors/id/M/ME/MEWP/DBD-Sybase-1.09.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.58)
DBD-Sybase-1.09/
DBD-Sybase-1.09/Sybase.xs
DBD-Sybase-1.09/README
DBD-Sybase-1.09/BUGS
DBD-Sybase-1.09/PWD.factory
DBD-Sybase-1.09/Makefile.PL
DBD-Sybase-1.09/dbdimp.h
DBD-Sybase-1.09/README.vms
DBD-Sybase-1.09/dbdimp.c
DBD-Sybase-1.09/CHANGES
DBD-Sybase-1.09/Sybase.pm
DBD-Sybase-1.09/README.freetds
DBD-Sybase-1.09/eg/
DBD-Sybase-1.09/eg/README
DBD-Sybase-1.09/eg/Show.cgi
DBD-Sybase-1.09/eg/dbschema.pl
DBD-Sybase-1.09/eg/check-space.pl
DBD-Sybase-1.09/dbivport.h
DBD-Sybase-1.09/META.yml
DBD-Sybase-1.09/Sybase.h
DBD-Sybase-1.09/CONFIG
DBD-Sybase-1.09/dbd-sybase.pod
DBD-Sybase-1.09/MANIFEST
DBD-Sybase-1.09/t/
DBD-Sybase-1.09/t/main.t
DBD-Sybase-1.09/t/multi_sth.t
DBD-Sybase-1.09/t/xblk.t
DBD-Sybase-1.09/t/screen.jpg
DBD-Sybase-1.09/t/_test.pm
DBD-Sybase-1.09/t/base.t
DBD-Sybase-1.09/t/autocommit.t
DBD-Sybase-1.09/t/thread.t
DBD-Sybase-1.09/t/exec.t
DBD-Sybase-1.09/t/place.t
DBD-Sybase-1.09/t/xblob.t
DBD-Sybase-1.09/t/login.t
DBD-Sybase-1.09/t/fail.t
DBD-Sybase-1.09/t/nsql.t
CPAN: File::Temp loaded ok (v0.22)
CPAN: YAML loaded ok (v0.71)

CPAN.pm: Going to build M/ME/MEWP/DBD-Sybase-1.09.tar.gz

Can't find the lib directory under /etc! at Makefile.PL line 118, <IN> line 44.
Warning: No success on command[/usr/bin/perl Makefile.PL]
MEWP/DBD-Sybase-1.09.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install

kbp 03-09-2010 07:04 AM

I doubt very much that you installed Sybase to /etc ..

Quote:

Make sure that the SYBASE environment variable points to the Sybase
installation that you want to use for this build. The easiest way
to do this is to source the SYBASE.sh/SYBASE.csh or SYBASE.bat file
in the root directory of the Sybase installation you want to use.
.. is Sybase actually installed ?

raggoflex 03-09-2010 07:32 AM

Well... I'm attempting to install the Sybase perl module via cpan.... I've installed freetds and attempted various locations for the sybase environment variable. The library files for freetds are in /usr/lib64, but changing the environment variable to this doesn't clear it up.

Most searches online i've found tell you to set it to /usr/local/freetds.... I've tried making symlinks to here from the library file locations. Still no joy.

chrism01 03-09-2010 07:51 PM

Try the Perl gurus over at www.perlmonks.org


All times are GMT -5. The time now is 05:03 AM.