0

我尝试在 FreeBSD 8.0 上安装 pecl-event,但出现错误:

# pecl install event
Failed to download pecl/event within preferred state "stable", latest release is version 0.9.1, stability "beta", use "channel://pecl.php.net/event-0.9.1" to install
install failed
# pecl install "channel://pecl.php.net/event-0.9.1"
downloading event-0.9.1.tar ...
Starting to download event-0.9.1.tar (Unknown size)
.....................done: 113,664 bytes
11 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed

我做错了什么?如何安装它?

4

1 回答 1

1

将 event-0.9.1.tar 文件提取到临时文件夹。(例如: /tmp/tmp1 )转到子文件夹,其中一个在临时文件夹中包含 config.m4 文件。

确保你有“/usr/local/bin/phpize”。如果它不在那里...找到 phpize 的位置并创建符号链接到 /usr/local/bin/phpize。

比尝试再次运行

于 2013-02-03T18:13:52.530 回答