LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Can't install DBD::mysql or DBD::Pg (https://www.linuxquestions.org/questions/mandriva-30/cant-install-dbd-mysql-or-dbd-pg-131714/)

DogTags 01-05-2004 10:44 AM

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 :)

fairus 01-21-2004 02:52 AM

i got the sme problem here with DBD::mysql .. anyone can help ?

DogTags 01-21-2004 07:13 AM

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 :)


All times are GMT -5. The time now is 08:05 AM.