./configure --prefix=/usr/local/libxml2
make
make install
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/libxml2
make
make install
cp php.ini-recommended /usr/local/php5/lib/php.ini
vi /usr/local/apache2/conf/httpd.conf
AddType application/x-httpd-php .php
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr/local/libxml2 --with-zlib
./configure
make
sudo make install
onfigure: error: Cannot find MySQL
header files under /usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/.
Note that the MySQL client library is not bundled anymore!
1. 查看系统有没有安装mysql header
find / -name mysql.h
如果有。请指定--with-mysql=/跟正常路径。
如果没有。请看下一步。
2.redhat安装
rpm -ivh MySQL-devel-community-5.1.33-0.rhel5.i386.rpm
php的配置文件中有一行--with-mysql=/usr。安装的时候提示:
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.
这是由于安装mysql时没有安装mysql
头文件,或者是路径指定不正确,php找不到mysql的头文件引起的
错误提示。
解决方法。
1. 查看你的系统有没有安装mysql header
find / -name mysql.h
如果有。请指定--with-mysql=/跟你的正常路径。
如果没有。请看下一步。
2.redhat安装
rpm -ivh MySQL-devel-4.1.12-1.i386.rpm
3.debian安装
apt-get install libmysqlclient15-dev
4.最后一步php的配置选项添加--with-mysql=/usr即可!
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib
dpkg -i *.deb
ubuntu怎样在终端
卸载mysql
sudo apt-get purge mysql-client mysql-server 或者
sudo aptitude remove mysql-server mysql-client
具体在Mysql下有哪些软件包,
1.如果你是从源安装的话,
可以通过dpkg -l mysql-server 或
dpkg -l mysql-client查看
- libxml2-2.7.2.tar.gz (4.6 MB)
- 下载次数: 0
- zlib-1.2.3.tar.gz (488.1 KB)
- 下载次数: 0