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