安装php5.3.3,在编译的时候提示错误libevent >= 1.4.11 could not be found,我的参数如下:
./configure –prefix=/usr/local/php5.3 –with-config-file-path=/usr/local/php5.3/etc –with-iconv-dir=/usr/local –with-freetype-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 –disable-rpath –with-mcrypt –with-gd –enable-gd-native-ttf –with-openssl –with-mhash –enable-pcntl –enable-sockets –with-ldap –with-ldap-sasl –with-xmlrpc –enable-zip –enable-soap –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config
网上找了下,说把这个参数–disable-rpath去掉就可以了;然而我去掉之后在编译,问题照旧…当然,我也试过更新这个文件:
yum -y install libevent
还是失败了,继续google,发现有人在ubuntu里面也遇到这个问题,再安装libevent-dev这个包之后解决问题了,于是我依样画葫芦:
yum -y install libevent-dev
系统提示我没有这个包…额,centos系统的;笨笨的去google这个安装包,然后用wget下来,安装…继续失败…
在我实在无奈的时候,我突然想到了:
yum -y install libevent-devel
哈,再次编译php5.3.3就成功了!唉,在centos里面libevent-devel等于ubuntu里面的libevent-dev
恩,又向成功迈进一步了,今天一定把论坛给搞定!
原创文章,转载请注明: 转载自三叶草
特别声明:商业网站转载需经作者同意,否则视为侵权!
评论:3
参与评论