[freetds] Perl DBD::Sybase on Fedora 10
letcher.chris at gmail.com
Fri Jan 23 00:50:54 EST 2009
James K. Lowden wrote:
> Chris Letcher wrote:
>> I'm trying to install the perl module DBD::Sybase on a Fedora 10 i686
>> I've done the following successfully:
>> # yum install freetds unixODBC
>> # export=SYBASE=/usr/
>> # perl Makefile.PL
>> The problem is when i run make, it fails, as posted below. Sorry for the
>> length. Do i need to apply:
>> if so, how do I go about that exactly?
> Yes, you need to apply that patch.
> Find your way to the FreeTDS source directory, such that this command
> $ grep '\$Id' include/cspublic.h
> static const char rcsid_cspublic_h = "$Id: cspublic.h,v 1.61 2008/09/08
> 17:50:25 jklowden Exp $";
> Your ID will be different; it should match what's in the patch: 1.58.
> Then "man patch" is your friend. Like it says,
> usually just
> patch <patchfile
> is all you need, as in:
> $ patch < /path/to/your/cspublic.BLK_VERSION_150.patch
> Then build and install per usual.
> If you don't have a FreeTDS source directory because you installed a
> binary package, that's OK. The symbols defined in the patch are not used
> by FreeTDS; and rebuilding isn't required. You can apply the patch to the
> file wherever it's installed. DBD::Sybase should build thereafter.
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
Worked like a charm.
Specifically, the commands were as follows:
1) $ locate cspublic.h
2) $ cd /usr/include/
3) $ patch </path/to/cspublic.BLK_VERSION_150.patch
4) Follow directions included with DBD::Sybase to install.
Thanks very much,
More information about the FreeTDS