我在 CentOs 5 机器上安装 PHP Pecl Intl 扩展时遇到问题。
安装后icu
并libicu
使用以下命令:
$ yum install icu
$ yum install libicu
Run Code Online (Sandbox Code Playgroud)
我尝试像这样安装 Intl 扩展:
$ /usr/bin/pecl install intl
Run Code Online (Sandbox Code Playgroud)
我选择搜索 ICU 库和头文件的默认位置。它最终会像这样崩溃:
checking whether to enable internationalization support... yes, shared
checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
ERROR: `/tmp/pear/temp/intl/configure --with-icu-dir=DEFAULT' failed
Run Code Online (Sandbox Code Playgroud)
按照 …
我在让主管使用扩展的环境变量运行我的命令时遇到了很多麻烦。
我的主管确认。
; supervisor config file
[unix_http_server]
file=/var/run//supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
user = a-user-name
environment = HOME='/home/a-user-name',APP='staging.example.com',SYMFONY_ENVIRONMENT='staging'
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory …
Run Code Online (Sandbox Code Playgroud)