使用phpfarm安装/卸载php-5.2.17


Install / Uninstall php-5.2.17 using phpfarm

我之前只使用安装了php-5.2.17

./compile.sh 5.2.17

我没有定义任何自定义选项。但后来我意识到它使用的是cgi,我希望它使用fastcgi,所以我将自定义文件创建为

configoptions="
    –enable-cli '
    –with-pear '
    –with-openssl=/usr '
    –with-iconv '
    –with-curl '
    –with-mysqli '
    –enable-mbstring '
    –enable-exif '
    –with-jpeg-dir=/usr '
    –with-zlib '
    –with-zlib-dir '
    –with-png-dir=/usr '
    –with-gd '
    –with-gettext '
    –enable-gd-native-ttf '
    –with-mhash '
    –enable-ftp '
    –with-pspell '
    –with-mcrypt '
    –enable-bcmath '
    –with-mime-magic '
    –with-pdo-mysql '
    –enable-sockets '
    –enable-soap '
   –enable-calendar '
    –enable-fastcgi '
    –enable-force-cgi-redirect '
"

现在,当我使用上面的命令进行编译时,它会给出

5.2.17 5 2 17
configure: error: can only configure for one host and one target at a time
configure.sh failed.

请注意,我已经根据在线教程修补了所有必要的东西。

我使用的是Ubuntu 14.4

我通读了php农场github页面,这一部分引起了我的注意。

它描述了custom/default-versions.txt文件通常用于重新编译相同的php版本。