Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th April 2009, 20:02
NewMee NewMee is offline
Junior Member
 
Join Date: Apr 2009
Location: Netherlands
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Question Mysql connect from Perl 5.10

After installation, Perl (v 5.10.0) does not find the Mysql.pm file in the installation.
Also, after pointing to it, the connect() function appears not to exist anymore.
Somehow, I now have to use DBI:.
Is there an alternative that prevents me to from having to rewrite some hundred scripts?

Marco
Reply With Quote
Sponsored Links
  #2  
Old 19th April 2009, 20:53
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Revert to the Perl and the libdb-mysql-perl (or whatever it's called) from your distribution packager.

Alternatively, reinstall libdb-mysql-perl from source.

Your INClude paths (perl -V) change when you install a new version. Your libdb-mysql bindings are most likely not moved / upgraded to the new directory layout.

Perhaps there's a special command, like the update-python-modules.

Better in the long run: start programming modules, where the database dependend stuff is in one module. That way you only have to change one module.

Paul
Reply With Quote
The Following User Says Thank You to tebokkel For This Useful Post:
NewMee (20th April 2009)
  #3  
Old 20th April 2009, 17:08
NewMee NewMee is offline
Junior Member
 
Join Date: Apr 2009
Location: Netherlands
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
 
Smile

Quote:
Originally Posted by tebokkel View Post
Better in the long run: start programming modules, where the database dependend stuff is in one module. That way you only have to change one module.
Paul
Programming modules would be my best option for new stuff, indeed.
Thanks Paul!

Marco
Reply With Quote
Reply

Bookmarks

Tags
connect, dbi, mysql, perl

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Question: installed smf forum on centos perfect server setup with ispconfig happz Installation/Configuration 7 22nd August 2008 13:15
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30


All times are GMT +2. The time now is 00:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.