I am installing DBD::Sybase
I receive following error, after setting
export SYBASE=/usr/local/Cellar/freetds/0.95.80
and download freetds:
brew install freetds
Error:
Configuring DBD-Sybase-1.15 ... Can't find any Sybase libraries in /usr/local/Cellar/freetds/0.95.80/lib or /usr/local/Cellar/freetds/0.95.80/lib64 at Makefile.PL line 155, <IN> line 44
I believe I need to edit the makefile directly. Do I need to edit makefile? And could I use CPANM still. CPANM is under Brew (cellar).
/usr/local/Cellar/freetds/0.95.80/lib
├── libct.4.dylib
├── libct.a
├── libct.dylib -> libct.4.dylib
├── libsybdb.5.dylib
├── libsybdb.a
└── libsybdb.dylib -> libsybdb.5.dylib
/usr/local/Cellar/freetds/0.95.80/
AUTHORS ChangeLog NEWS TODO etc lib
COPYING INSTALL_RECEIPT.json README bin include share
There is a reported bug in DBD::Sybase on OS X which is causing your problem.
One part of the configuration thinks you're on Windows. Perl reports OS X as
darwin
and DBD::Sybase is checking for/win/
as inMSWin32
or maybecygwin
. As a result it looks for adll
directory, but falsely reports it's looking forlib
andlib64
.The quick fix is to use
cpanm --prompt DBD::Sybase
. When it fails,cpanm
will ask what to do.Tell it to
l)ook
. This will dump you into a shell with the unpacked source for DBD::Sybase. Use an editor to delete lines 143-145 in the Makefile.PL.Then
exit
the shell.cpanm
will ask you what to do again, tell it tor)etry
. It should use your edited Makefile.PL.