Error

This is a discussion on Error within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have just upgraded MySQL from version 3.23 to version 4.1.8 and now I am getting the ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2005
John D. Sanders
 
Posts: n/a
Default Error

I have just upgraded MySQL from version 3.23 to version 4.1.8 and now I
am getting the following error when I try to run a script that worked:

install_driver(mysql) failed: Can't load
'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
for module DBD::mysql: libmysqlclient.so.10: cannot open shared object
file: No such file or directory at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./dbtest.pl line 37

I know that the answer is staring at me I just can't see it. Any help
would be greatly appreciated.

Thanks
John
www.lovinthelord.org


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
  #2 (permalink)  
Old 01-04-2005
John D. Sanders
 
Posts: n/a
Default Re: Error - Further Clarification

John D. Sanders wrote:
> I have just upgraded MySQL from version 3.23 to version 4.1.8 and now I
> am getting the following error when I try to run a script that worked:
>
> install_driver(mysql) failed: Can't load
> '/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
> for module DBD::mysql: libmysqlclient.so.10: cannot open shared object
> file: No such file or directory at
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at ./dbtest.pl line 37
>
> I know that the answer is staring at me I just can't see it. Any help
> would be greatly appreciated.
>
> Thanks
> John
> www.lovinthelord.org
>
>

Further clarification:
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
is right where it should be.

rpm -qa My* shows:
MySQL-server-4.1.8-0
MySQL-Max-4.1.8-0
MySQL-client-4.1.8-0

find / -name libmysqlclient.so.10 finds nothing
find / -name libmysql* finds nothing


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
  #3 (permalink)  
Old 01-04-2005
Simon Andrews
 
Posts: n/a
Default Re: Error - Further Clarification

John D. Sanders wrote:
> John D. Sanders wrote:
>
>> I have just upgraded MySQL from version 3.23 to version 4.1.8 and now
>> I am getting the following error when I try to run a script that worked:
>>
>> install_driver(mysql) failed: Can't load
>> '/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
>> for module DBD::mysql: libmysqlclient.so.10: cannot open shared object
>> file: No such file or directory at
>> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
>> at (eval 1) line 3
>> Compilation failed in require at (eval 1) line 3.
>> Perhaps a required shared library or dll isn't installed where expected
>> at ./dbtest.pl line 37


Have you also upgraded the perl DBI and DBD::mysql modules since
installing the new version of mysql? The DBD module in particular needs
to be compiled against the headers of the version of mysql you are using.

If you got your perl-DBD-MySQL module from an RPM see if you distro has
an updated version to use with MySQL v4.

Alternatively you could try to compile your own version of the module by
running (as root):

perl -MCPAN -e 'install DBD::mysql'

...and see if that works. If not you can download it from:

http://search.cpan.org/dist/DBD-mysql/

...and compile it manually

HTH

Simon.


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
  #4 (permalink)  
Old 01-04-2005
Bill Karwin
 
Posts: n/a
Default Re: Error - Further Clarification

John D. Sanders wrote:
> rpm -qa My* shows:
> MySQL-server-4.1.8-0
> MySQL-Max-4.1.8-0
> MySQL-client-4.1.8-0


You need to install the MySQL-devel RPM to get the libmysqlclient
dynamic shared library.

Regards,
Bill K.


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0