2015-06-12 44 views
0

我试图编译在Ubuntu 14.04 PHP7但在运行此命令在Ubuntu 14.04安装PHP 7和得到错误

./configure \ 
--prefix=$HOME/php7/usr \ 
--with-config-file-path=$HOME/php7/usr/etc \ 
--enable-mbstring \ 
--enable-zip \ 
--enable-bcmath \ 
--enable-pcntl \ 
--enable-ftp \ 
--enable-exif \ 
--enable-calendar \ 
--enable-sysvmsg \ 
--enable-sysvsem \ 
--enable-sysvshm \ 
--enable-wddx \ 
--with-curl \ 
--with-mcrypt \ 
--with-iconv \ 
--with-gmp \ 
--with-pspell \ 
--with-gd \ 
--with-jpeg-dir=/usr \ 
--with-png-dir=/usr \ 
--with-zlib-dir=/usr \ 
--with-xpm-dir=/usr \ 
--with-freetype-dir=/usr \ 
--with-t1lib=/usr \ 
--enable-gd-native-ttf \ 
--enable-gd-jis-conv \ 
--with-openssl \ 
--with-mysql=/usr \ 
--with-pdo-mysql=/usr \ 
--with-gettext=/usr \ 
--with-zlib=/usr \ 
--with-bz2=/usr \ 
--with-recode=/usr \ 
--with-mysqli=/usr/bin/mysql_config 

后出错我跟着这些insctructions:

enter link description here

的错误是:

http://pastebin.com/DD05uEeJ

希望你能帮助大家。

+0

你得到了什么错误? –

+0

不好意思更新了:) 为什么脚本无法找到目录或命令。但如果我遵循指示应该是好的。 –

回答

0

似乎每行末尾的反斜杠并不在每行的末尾(基于错误)。

你可能想尝试复制并粘贴它(从你自己的问题),它应该正常工作。

+0

为什么这个答案不被接受? –