安裝PHP需重裝MySql情況
来源:互联网 发布:网络借贷的平台整改 编辑:程序博客网 时间:2024/05/17 20:12
./configure --prefix=$HOME/local/webserver/php --with-config-file-path=$HOME/local/webserver/php/etc --with-mysql=/usr/local/mysql --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl-dir=/usr/bin/openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
configure: error: Cannot find MySQL header files under /usr/share/mysql.
Note that the MySQL client library is not bundled anymore!
====== 解決辦法 ======
卸载mysql-server mysql-client
重装mysql-server mysql-clinet
sudo apt-get remove mysql-server mysql-client
sudo apt-get remove mysql-server-5.1 mysql-client-5.1
sudo apt-get installl mysql-server-5.1 mysql-client-5.1
安装完后,mysql正常工作,但配置php,仍然出错。
是不是包又安装错了?
说我少了mysql头文件,于是寻找whereis mysql
找到几个目录
mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
sudo find / -name mysql.h
但没找到这个文件。不知道是哪出了问题。
又一个测试失败,继续。。。
######又来找其它办法来了######
安装一个mysql 的lib文件,命令如下:
sudo apt-get install libmysqlclient16 libmysqlclient16-dev
然后再./configure --prefix=/usr/local/php5.3.3 --enable-fpm --with-mysql=/usr/share/mysql --with-mysqli --with-openssl
OK
这次终于通过。然后就是
make&&make install
- 安裝PHP需重裝MySql情況
- Ubuntu】安裝Apache + MySQL + PHP
- Ubuntu安裝Apache + MySQL + PHP
- PHP-安裝SOP
- MySQL安裝指南
- MySQL安裝
- MySQL安裝指南
- Ubuntu安裝MySQL
- ubuntu 安裝mysql
- 安裝 PHP时出现error: Cannot find MySQL header files under yes
- 在Centos安裝MySQL
- 安卓系统lighttpd-php-mysql本地环境 v6.0
- Apache+php+mysql在windows下的安…
- [服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
- centos 安裝 ImageMagick imagick for php
- PHP安裝使用說明
- 在 Windows 安裝 PHP PEAR
- 分享一个安卓系统的php环境,http+php+mysql,
- DirectX9函数:IDirect3D9::CreateDevice 方法
- 深入理解JavaScript中的闭包
- DirectX9函数:开始和结束渲染
- [转]PHP安装常见问题
- Ubuntu中安装Nginx+php+mysql+memcache+eaccelerator笔记
- 安裝PHP需重裝MySql情況
- 理解 JavaScript 闭包
- 闭包
- JavaScript中的作用域
- 对JavaScript调用堆栈和setTimeout用法的深入研究
- 悟透JavaScript
- 回调(Callback), 委托(Delegate), 事件(Event)
- U盘修复搞定
- Asp.NET生成静态页面并分页