2012年2月3日星期五

搭建web时遇到的问题

安装php时,下载的代码是php-5.3.9
在进行
~/文档/software/php-5.3.9$ ./buildconf --force时报错:

Forcing buildconf
buildconf: checking installation...
buildconf: You need autoconf 2.59 or lower to build this version of PHP.
You are currently trying to use 2.68
Most distros have separate autoconf 2.13 or 2.59 packages.
On Debian/Ubuntu both autoconf2.13 and autoconf2.59 packages exist.
Install autoconf2.13 and set the PHP_AUTOCONF env var to
autoconf2.13 and try again.
make: *** [buildmk.stamp] 错误 1
解决:
下载autoconf-2.13
tar zxvf autoconf-2.13.tar.gz
cd ~/autoconf-2.13
autoreconf -i
autoreconf
./configure
make
sudo make install
cp /usr/local/bin/autoreconf  /usr/bin/autoreconf   //此步很重要,将autoconf 2.68替换为2.13

 

没有评论:

发表评论