[clug] Can't locate Mysql.pm Debian Lenny

Neil Symons neil.symons at gmail.com
Sun Apr 5 13:53:22 GMT 2009


Update.

Initially I thought this was going to be easy, but the DBD::Mysql module is
very different to Mysql

The original

-- quote --
use Mysql;
$dbh = Mysql->connect(undef, $database, $mysqluser, $mysqlpass);
-- end quote --

Seams to require the second line to be re-written if I change it to
DBD::Mysql

So maybe using DBD::Mysql isn't an option just yet. too many files to update


Regards,

Neil Symons



On Mon, Apr 6, 2009 at 12:40 AM, Neil Symons <neil.symons at gmail.com> wrote:

> Thanks
>
> That appears to be it.
>
> Regards,
>
> Neil
>
>
>
>
> On Mon, Apr 6, 2009 at 12:24 AM, Hal Ashburner <hal.ashburner at gmail.com>wrote:
>
>> Neil Symons wrote:
>>
>>> OK I have done package updates from etch to lenny and now find that perl
>>> scripts cannot find Mysql.pm
>>>
>>> Command#> perl -e "use Mysql;"
>>> Can't locate Mysql.pm in @INC (@INC contains: /etc/perl
>>> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
>>> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
>>> /usr/local/lib/site_perl .) at -e line 1.
>>> BEGIN failed--compilation aborted at -e line 1.
>>>
>>>
>>> It does exist under the /usr/lib/perl5 tree
>>>
>>>
>> It's not become
>> perl -e "use DBD::mysql;"
>> or something?
>>
>> --
>> linux mailing list
>> linux at lists.samba.org
>> https://lists.samba.org/mailman/listinfo/linux
>>
>
>


More information about the linux mailing list