如何在FreeBSD上安装pecl-event?

时间:2013-02-03 12:56:10

标签: freebsd pecl

我尝试在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

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

1 个答案:

答案 0 :(得分:1)

将event-0.9.1.tar文件解压缩到临时文件夹。 (例如:/ tmp / tmp1) 转到子文件夹,其中包含临时文件夹中的config.m4文件。

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

尝试再次运行