./configure --prefix=/usr/local/php --with-mysql --with-apxs2=/usr/local/apache/bin/apx " /> 日不卡,在线观看国产黄色,www日本免费

四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费91-国产蜜臀97一区二区三区

編譯PHP報錯configure error Cannot find libmysqlclient under usr的解決方法

今天在64位Red Hat Enterprise Linux AS release 4 .7上編譯php5.2.6出錯,mysql是使用的RPM方式安裝的,php編譯代碼如下:

./configure --prefix=/usr/local/php --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-curl --enable-xml --with-mcrypt --with-ttf --enable-magic-quotes --enable-fastcgi --enable-mbstring --with-iconv --enable-mbstring --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --enable-sysvsem出現以下錯誤:checking for specified location of the MySQL UNIX socket... nochecking for MySQL UNIX socket location... noconfigure: error: Cannot find libmysqlclient under /usr.Note that the MySQL client library is not bundled anymore!

通過查找libmysqlclient,發現是在/usr/lib64/mysql/目錄內的libmysqlclient.so.16.0.0做的軟連接,php默認是去的 /usr/lib/搜索,所以沒有找到.找到問題了就好解決了.

類似的問題還有:

/usr/lib/libjpeg.so -> /usr/lib64/libjpeg.so

解決方法:

1.

cp -rp /usr/lib64/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient.so

2.

/usr/lib64/libmysqlclient.so -> libmysqlclient.so.16.0.0/usr/lib/libmysqlclient.so -> /usr/lib64/libmysqlclient.sochecking whether to enable embedded MySQLi support… nochecking for mysql_set_server_option in -lmysqlclient… noconfigure: error: wrong mysql library version or lib not found. Check config.log for more information

經過測試后, 發現如下解決方案:

(php-xxxxx為php文件名, 代表路徑)

# cd /usr/local/src/php-xxxxx/ext/mysqli# yum -y install mysql-devel# /phpize# ./configure 

主站蜘蛛池模板:
天下歌词a4纸打印|
液氨化学性质|
军官与男孩|
水蜜桃蜜桃在线观看|
供货合同|
嫩模啪啪喷水呻吟久久|
千山暮雪演员表|
吸痰护理ppt课件|
美女操p|
免费取姓名|
扎职|
墨雨云间电视剧免费播放|
《欲望中的女人》|
十大高蛋白食物蔬菜|
红海行动2免费看完整版|
莫比乌斯电影在线观看全集高清|
《桂花雨》课后题答案|
韩国成年人电影|
凤穿牡丹|
托比·斯蒂芬斯|
韩世雅的电影|
后位子宫怎么样容易怀孕|
把乐带回家|
高锰酸盐指数和cod的关系|
珀利|
第一次美国电影|
不可饶恕 电影|
陈诗雅韩国|
朴新阳|
流浪地球免费观看|
自拍在线|
栏目大全|
超薄打底广场舞视频|
性欧美欧美|
free hd xxxx moms movie777|
囚徒 电影|
女生操女生|
新娘大作战angelababy|
真实游戏完整版高清观看|
影院级电影|
你的名字豆瓣|