小编Mar*_*eld的帖子

在 CentOs 5 上安装/启用 PHP Pecl Intl 扩展

原问题:

我在 CentOs 5 机器上安装 PHP Pecl Intl 扩展时遇到问题。

安装后iculibicu使用以下命令:

$ 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)

更新

按照 …

php installation centos pecl

9
推荐指数
3
解决办法
7万
查看次数

如何让 Supervisor 以其他用户身份运行我的程序?

我在让主管使用扩展的环境变量运行我的命令时遇到了很多麻烦。

我的主管确认。

; 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)

supervisord

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

centos ×1

installation ×1

pecl ×1

php ×1

supervisord ×1