Today, when installing the Pdo_mysql module, prompt for pdo_mysql make: * * * [Pdo_mysql.lo] and other errors, see the workaround.
Compile and install Pdo_mysql Extension module, always prompt pdo_mysql make: * * * [Pdo_mysql.lo] Error 1 under/software/pdo_mysql-1.0.2/php_pdo_mysql_int.h : 25:19:error:mysql.h:no such file or Directoryin file included from/software/pdo_mysql-1.0.2/pdo_mysql.c:31:
Workaround:
The MySQL header file is mapped to/usr/local/include/via a soft connection.
For example, if your MySQL installation file is located in/usr/local/mysql, then execute the following command:
The code is as follows |
Copy Code |
# ln-s/usr/local/mysql/include/*/usr/local/include/ |
Solution II
The code is as follows |
Copy Code |
Yum Install Mysql-devel [Root@cms-test pdo_mysql-1.0.2]# make install |
Third, modify the php.ini;
The code is as follows |
Copy Code |
Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" Extension = "pdo_mysql.so" |
http://www.bkjia.com/PHPjc/444654.html www.bkjia.com true http://www.bkjia.com/PHPjc/444654.html techarticle today, when installing the Pdo_mysql module, prompt for pdo_mysql make: * * * [Pdo_mysql.lo] and other errors, see the workaround. Compile and install Pdo_mysql Extension module, always prompt Pdo_mysql mak ...