English 中文(简体)
PHP Warning starting PEAR - Unable to load dynamic library php_mysql.so
原标题:
  • 时间:2009-12-11 21:21:21
  •  标签:
  • pear
  • redhat

Everytime I run PEAR, I get this error:

PHP Warning:  PHP Startup: Unable to load dynamic library  /usr/lib64/php/modules/php_mysql.so  - /usr/lib64/php/modules/php_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

I ve reviewed /etc/php.ini and not found any reference to php_mysql.so. /usr/lib64/php/modules/ is my loadable extensions directory

extension_dir = "/usr/lib64/php/modules"

No Dynamic Extensions are loaded.

No reference to this file in httpd.conf.

pear list

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Console_Getopt   1.2.3   stable
Structures_Graph 1.0.3   stable
XML_Util         1.2.1   stable

Can anyone tell me what is causing this warning and how to fix it?

PEAR Version: 1.4.9 PHP Version: 5.2.6 Zend Engine Version: 2.2.0 Running on: Linux dedicated2 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:56:11 EDT 2008 x86_64

问题回答

In your php.ini, inspect the following:

extension_dir = "./"

OR

extension = php_mysql.so

Depending on your setup and what you have compiled into your php5, you might not need either line -- comment them out. The later will definitely lead to trying to load the module.





相关问题
Configuartion for Pear DB Library

I am trying to connect to MYSQL database using the Pear DB library. IS there any settings i need to do if i want to work with Pear DB library? Thanks

What is Pear DB library?

I am a noob to PHP can anyone explain me whats Pear DB library with a practical use? Thanks

go-pear.bat file won t install PEAR at all

I just made a new install of WAMP on Windows 7 and I m trying to get PEAR to work. Things are going wrong from the very beginning. When I try to execute the go-pear.bat file, it shows me this. phar ...

Pear Excel Writer: trimming leading zeros - how to prevent?

I m using the Pear Excel Writer package to export a dataset to Excel from PHP. My problem is some of the data fields have leading zeros (such as a zip code), but these are being trimmed in Excel. I ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Dealing with empty tags in pear xml_serializer

Im using PEAR XML Serializer to generate xml results from array inputs. I found out that empty array elements are encoded like this: <arraykey/>. I d rather prefer it this way <arraykey>&...

热门标签