Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm getting the following error while trying to install DBD::Sybase on my machine...
Please set SYBASE in CONFIG, or set the $SYBASE environment variable at Makefile.PL line 93, <IN> line 44.
I find this error msg to be vague. any thoughts? The only code near line 44 is this...
WriteMakefile( ... LINKTYPE => $LINKTYPE, ($^O eq 'VMS' ? (MAN3PODS => { 'Sybase.pm' => 'blib/man3/DBD_Sybase.3' }) : (MAN3PODS => { 'Sybase.pm' => 'blib/man3/DBD::Sybase.3' })), ... );

Replies are listed 'Best First'.
Re: DBD::Sybase install error
by mpeppler (Vicar) on Sep 23, 2003 at 14:48 UTC
    Well - it means exactly what it says... DBD::Sybase (and all Sybase related products) use the $SYBASE environment variable to determine where things are installed (libraries, locale files, charset files, etc). You need to set $SYBASE before running "perl Makefile.PL" (or edit the CONFIG file and set it there.)

    On a Sybase 12.x system (Unix/linux) the easiest way to set all the appropriate environment variables is to source the SYBASE.sh or SYBASE.csh file located in the root directory of the Sybase installation.

    Michael