LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't install DBD::mysql (https://www.linuxquestions.org/questions/linux-software-2/cant-install-dbd-mysql-4175607298/)

packets 06-04-2017 10:07 PM

can't install DBD::mysql
 
My Machine is CentOS 5.11. It is now EOSL but I don't think my error is related to it. The version of perl is 5.20. I am installing DBD::mysql and it is throwing an error

Code:

Checking if libs are available for compiling...
Can't link/include C library 'mysqlclient', aborting.

That was from source package. Now, I tried to use CPAN and same result

Code:

To change these settings, see 'perl Makefile.PL --help' and
'perldoc DBD::mysql::INSTALL'.

Checking if libs are available for compiling...
Can't link/include C library 'mysqlclient', aborting.
Warning: No success on command[/usr/local/bin/perl Makefile.PL]
  MICHIELB/DBD-mysql-4.042.tar.gz
  /usr/local/bin/perl Makefile.PL -- NOT OK
Failed during this command:
 MICHIELB/DBD-mysql-4.042.tar.gz              : writemakefile NO '/usr/local/bin/perl Makefile.PL' returned status 512

Note that I have installed mysql-devel

Code:

# rpm -qa | grep -i mysql-devel
MySQL-devel-5.5.14-1.rhel5

Upgrading an OS is not an option as of the moment. I tried running ldconfig but to no avail. Has anyone experience the same error? How did you resolve it?

knudfl 06-05-2017 12:59 AM

Quote:

MySQL-devel-5.5.14-1.rhel5
? Are you sure that this (3rd party?) package matches the installed mysql ?
? Which version(s) of mysql is installed ?
The original CentOS 5.11 version is: mysql-5.0.95-5.el5_9, mysql-devel-5.0.95-5.el5_9
Extra versions: mysql51*, mysql55*
... and various 3party versions: remi, rpmforge, oracle etc.

The official file list is here
http://vault.centos.org/5.11/os/x86_64/CentOS/

-

packets 06-05-2017 02:15 AM

The package I installed came from MySQL and not from the repositories.

Anyway, issue got resolve after installing MySQL-shared-compat and MySQL-shared

knudfl 06-05-2017 02:53 AM

@packets, please mark the thread as [SOLVED]

Thread Tools ....


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