簡體   English   中英

未找到ICU編譯器或不適用於PHP intl擴展

[英]ICU compiler not found or not working for PHP intl extension

我正在嘗試安裝Symfony 2的intl PHP擴展。要安裝它,我需要提供ICU二進制文件的路徑。 我已經在我的VM上下載並安裝了ICU,但是當我運行Linux的配置時,我得到:

檢查gettimeofday ...是檢查C的U_INLINE定義... 內聯檢查我們是否有C ++編譯器...否配置:錯誤:C ++編譯器g ++不起作用或未找到編譯器./runConfigureICU:./configure失敗了

如果在運行配置時輸入幫助,則會得到:

用法:runConfigureICU [-h,--help] [--enable-debug | --disable-release]平台[configurearg ...]

選項:-h,--help打印此消息並退出--enable-debug啟用調試支持--disable-release禁用預設優化標志

可以提供以下名稱作為平台的參數:

AIX                 Use the IBM Visual Age xlc_r/xlC_r compilers on AIX
AIX/GCC             Use the GNU gcc/g++ compilers on AIX
Cygwin              Use the GNU gcc/g++ compilers on Cygwin
Cygwin/MSVC         Use the Microsoft Visual C++ compiler on Cygwin
Cygwin/MSVC2005     Use the Microsoft Visual C++ 2005 compiler on Cygwin
Cygwin/ICL          Use the Intel C++ compiler on Cygwin
FreeBSD             Use the GNU gcc/g++ compilers on Free BSD
HP-UX/ACC           Use the HP ANSI C/Advanced C++ compilers on HP-UX 11
IBMi                Use the iCC compilers on IBM i, i5/OS, OS/400
Linux               Use the GNU gcc/g++ compilers on Linux
Linux/ECC           Use the Intel ECC compiler on Linux
Linux/ICC           Use the Intel ICC compiler on Linux
Linux/VA            Use the IBM Visual Age compiler on Power PC Linux
MacOSX              Use the GNU gcc/g++ compilers on MacOS X (Darwin)
MinGW               Use the GNU gcc/g++ compilers on MinGW
QNX                 Use the QNX QCC compiler on QNX/Neutrino
Solaris             Use the Sun cc/CC compilers on Solaris
Solaris/GCC         Use the GNU gcc/g++ compilers on Solaris
SolarisX86          Use the Sun cc/CC compilers on Solaris x86
TRU64V5.1/CXX       Use the Compaq cxx compiler on Tru64 (OSF)
zOS                 Use the IBM cxx compiler on z/OS (os/390)
zOSV1R2             Use the IBM cxx compiler for z/OS 1.2

我嘗試過Linux,並且已經安裝了gcc。 為什么說我沒有編譯器?

我正在按照本教程進行操作: http : //www.phamviet.net/2013/01/28/php-54-install-php-intl-extension-on-centos-5-with-latest-icu-data/進行安裝PHP國際

請指教。

謝謝阿德里安

經過一番努力的瀏覽后,我發現了這篇文章: 無法在debian上為php安裝'intl'擴展名

使用:sudo apt-get install php5-intl

我設法安裝了ICU libary和php的intl擴展,盡管我很想知道為什么如上所述安裝它不起作用,但是我不需要做任何其他事情。 我了解圍繞nix操作系統的方式,但我不是專家。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM