湖北省建设安全管理协会网站慈利做网站在哪里
web/
2025/10/5 6:09:34/
文章来源:
湖北省建设安全管理协会网站,慈利做网站在哪里,北京定制网站公司,东莞专业做淘宝网站建设今天编译PHP的时候遇到了几个错误#xff0c;记录一下第一次编译的时候报错如下#xff1a;configure: error: mcrypt.h not found. Please reinstall libmcrypt.报这个错是因为没有安装libmcrypt这个包#xff0c;下载地址如下#xff1a;wget ftp://mcrypt.hellug.gr/pub…今天编译PHP的时候遇到了几个错误记录一下第一次编译的时候报错如下configure: error: mcrypt.h not found. Please reinstall libmcrypt.报这个错是因为没有安装libmcrypt这个包下载地址如下wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz安装[rootlocalhost app]# tar zxfv libmcrypt-2.5.7.tar.gz[rootlocalhost app]# cd libmcrypt-2.5.7[rootlocalhost app]# ./configure[rootlocalhost app]# make ; make install重新编译php[rootlocalhost app]# cd php-5.3.28[rootlocalhost php-5.3.28]# ./configure --prefix/usr/local/php5 --with-config-file-path/usr/local/php5/etc --with-mysql/usr/local/mysql --with-mysqli/usr/bin/mysql_config --with-mysql-sock/var/lib/mysql/mysql.sock --with-gd --with-iconv --with-zlib --enable-xml --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-mcrypt --with-curl第二次编译报错如下configure: error: Cannot find libmysqlclient under /usr.Note that the MySQL client library is not bundled anymore!这个错误时因为在64位的linux系统中libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下但是php编译时要去/usr/lib目录下查找解决办法在/usr/lib目录下创建一个软连接[rootlocalhost php-5.3.28]# ls /usr/lib64/mysql/libmysqlclient*/usr/lib64/mysql/libmysqlclient_r.so /usr/lib64/mysql/libmysqlclient_r.so.16.0.0 /usr/lib64/mysql/libmysqlclient.so.16/usr/lib64/mysql/libmysqlclient_r.so.16 /usr/lib64/mysql/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so.16.0.0[rootlocalhost php-5.3.28]# ln -s /usr/lib64/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so最后编译成功--------------------------------------------------------------------| License: || This software is subject to the PHP License, available in this || distribution in the file LICENSE. By continuing this installation || process, you are bound by the terms of this license agreement. || If you do not agree with the terms of this license, you must abort || the installation process at this point. |--------------------------------------------------------------------Thank you for using PHP.来自 “ ITPUB博客 ” 链接http://blog.itpub.net/23249684/viewspace-1242858/如需转载请注明出处否则将追究法律责任。
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/87203.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!