Re: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' ....
| From: | Darryle Steplight | Date: | Thu, 02 Feb 2012 00:20:54 +0000 |
| Subject: | Re: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' .... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316453@lists.php.net to get a copy of this message | ||
I have version usr/lib64/mysql/libmysqlclient.so.18 instead of
usr/lib64mysql//libmysqlclient.so.15 . I coped over the file into
usr/lib64/libmysqlclient.so.18, because that file didn't exist in that
path, I created the sym link but no luck. Few fixes are better than no
fixes for sure.
On Wed, Feb 1, 2012 at 6:44 PM, Matijn Woudt <tijnema@gmail.com> wrote:
> On Wed, Feb 1, 2012 at 6:56 PM, Darryle Steplight <dsteplight@gmail.com> wrote:
>> Hello Everyone,
>> My name is Darryle. I've installed PHP 5.3.9 on my CentOs box and
>> some numerous modules via yum. Some of those modules are PDO,
>> PDO_MYSQL and PDO_SQLITE. However, my PHP configuration is not
>> recognizing my PDO_MYSQL module. I can verify that these modules
>> exists by looking in my /etc/php.d/ folder. I'm also including the
>> PDO and PDO_MYSQL extensions in my httpd.conf file after my
>> extension_dir=/path/to/modules/ declaration. When I run php -i | grep
>> pdo this is what I see
>>
>>
>> ]# php -i | grep pdo
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> '/usr/lib64/php/modules/php_pdo' - /usr/lib64/php/modules/php_pdo:
>> cannot open shared object file: No such file or directory in Unknown
>> on line 0
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> '/usr/lib64/php/modules/php_pdo_mysql' -
>> /usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file:
>> No such file or directory in Unknown on line 0
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open
>
> Hi,
>
> This seems to be an common error with CentOS 64 bit. If you google for
> it there are plenty of people experiencing the same issue, and there
> are probably a few fixes for it.
> One of the first hits I got was a user who did:
>
> ln -s /usr/lib64/mysql/libmysqlclient.so.15 /usr/lib64/libmysqlclient.so.15
>
> And it solved his problem. So you can try that, and if that fails, try Google!
>
> - Matijn
--
----------------------------------------------
"May the Source be with you."