2015-12-30 32 views
0

我試圖從源頭PHP7編譯,我只得到這樣的警告(一切似乎罰款)用--with-t1lib PHP7編譯錯誤

configure: WARNING: unrecognized options: --with-t1lib 

Here,問題是相同的,那傢伙要求說這是迴歸。 這是真的嗎?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658248

如果是這樣,這意味着我不能使用t1lib和TTF LIB在Ubuntu?

這裏是我的命令行,如果你需要它

/php-7.0.1# ./configure --with-config-file-path=/etc \ 
    --prefix=/usr --with-gd --enable-gd-native-ttf --with-png-dir \ 
    --enable-exif --with-jpeg-dir \ 
    --with-zlib \ 
    --with-apxs2=/opt/httpd/bin/apxs \ 
    --with-freetype-dir --with-xpm-dir \ 
    --with-zlib-dir --with-openssl --enable-ftp \ 
    --with-mcrypt --enable-mbstring \ 
    --enable-libxml \ 
    --with-xsl --enable-pcntl \ 
    --with-curl=/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0 \ 
    --with-mysqli=mysqlnd \ 
    --with-pdo-mysql \ 
    --with-pdo-pgsql \ 
    --with-t1lib 

回答

1

其實警告消息說明了一切,當你要包括外部擴展到PHP,你必須先運行./buildconf --force然後新的擴展在選項列表中列出。

你在這裏。
1.確保你有 fodler可用t1lib源文件,如果你不應該t1lib文件夾移動到文件夾。

2.運行./buildconf --force,然後確保--with-t1lib選項已經列出,運行./configre --help查看。

(如果./buildconf --force運行失敗,那麼你將需要安裝autoconf,它有助於./buildconf即可掃描文件的config.m4 php目錄,其中包括擴展信息,重建configure文件)

3.You應去好!