【问题标题】:Install / Uninstall php-5.2.17 using phpfarm使用 phpfarm 安装/卸载 php-5.2.17
【发布时间】:2015-05-22 10:12:47
【问题描述】:

我之前简单地安装了 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 server phpfarm


    【解决方案1】:

    我阅读了 php-farm github 页面,this 部分引起了我的注意。

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

    【讨论】:

    • 但在我的情况下不存在这样的目录或文件
    • 你在php-farm/src目录中吗?
    • o 是的...试图找到它是 src 目录.. 我认为这是我们需要为默认配置创建的东西
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-05
    • 2011-11-29
    • 2014-12-24
    • 1970-01-01
    • 1970-01-01
    • 2014-02-23
    • 1970-01-01
    相关资源
    最近更新 更多