LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-05-2004, 10:44 AM   #1
DogTags
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
Can't install DBD::mysql or DBD::Pg


Hi All

I had to install a second location for Perl cuz some apps require a non-threaded perl.

The default MD perl install is threaded and the executable is located at /usr/bin/perl

So, I installed the non-threaded from source, and the executable is at /usr/local/bin/perl

So far, so good......

At this point, I have to install some modules that work with the /usr/local/bin/perl location, but I'm getting errors. The modules are DBD::mysql and DBD::Pg

When installing DBD::mysql, I get an error related to 'mysql_config' - it can't find mysql_config, and neither can I. I tried a number of searches.

How can I install DBD::mysql to work with the /usr/local/bin/perl location?

BTW, I wish the default MD perl install was NOT threaded.

Thanks very much
 
Old 01-21-2004, 02:52 AM   #2
fairus
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
i got the sme problem here with DBD::mysql .. anyone can help ?
 
Old 01-21-2004, 07:13 AM   #3
DogTags
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Yep, figured it out.

Had to install libmysql12-devel-4.0.15-1mdk from Disk 3.

Go the rpmdrake + and search for mysql

The default install of MD 9.2 does include libmysql12-4.0.15-1mdk, but not the "devel" version

Once I plugged in the devel version, the mysql_config file was created. At that point, I did:

/usr/local/bin/perl -MCPAN -e 'install DBD::mysql'

to install DBD::mysql to work with the secondary perl, and it seems to be working fine now.

However, the 'install' call I believe also tries to upgrade your perl to the latest version. So, to just install the module without updating, I believe you would call it like this:

/usr/local/bin/perl -MCPAN -e 'get DBD::mysql'

You might have to install Class::Container first, though, to do that type of module install.

HTH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
DBD::MySQL + MySQL install problems. Elleroth Linux - Software 4 03-24-2006 06:53 AM
DBD/mysql error dt23 Programming 3 04-22-2004 04:12 AM
DBD mySQL luzi82 Linux - Newbie 0 12-22-2003 12:19 PM
can't install DBD::mysql on suse linux 8.1 jolly_good2000 Linux - General 5 11-17-2002 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration