在我的Ubuntu 11.04开发机器上,我安装了 PHP(通过aptitude).

我想尝试libevent PHP extension,但我似乎无法让它工作:

root@alix-laptop:~# pecl install libevent

Failed to download pecl/libevent within preferred state "stable",latest release is version 0.0.4,stability "beta",use "channel://pecl.PHP.net/libevent-0.0.4" to install
install Failed
root@alix-laptop:~# pecl install channel://pecl.PHP.net/libevent-0.0.4

downloading libevent-0.0.4.tgz ...
Starting to download libevent-0.0.4.tgz (9,003 bytes)
.....done: 9,003 bytes
3 source files,building
running: PHPize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the prefix of libevent installation [autodetect] :
building in /tmp/pear/temp/pear-build-rootcvHALO/libevent-0.0.4
running: /tmp/pear/temp/libevent/configure --with-libevent
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/PHP5 -I/usr/include/PHP5/main -I/usr/include/PHP5/TSRM -I/usr/include/PHP5/Zend -I/usr/include/PHP5/ext -I/usr/include/PHP5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/PHP5/20090626+lfs
checking for PHP installed headers prefix... /usr/include/PHP5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for libevent support... yes,shared
checking for libevent headers in default path... not found
configure: error: Cannot find libevent headers
ERROR: `/tmp/pear/temp/libevent/configure --with-libevent' Failed

任何人都知道如何安装PHP-libevent而无需重新编译PHP?

尝试安装libevent-dev软件包
sudo apt-get install libevent-dev

ubuntu – 安装PHP libevent PECL包的问题的更多相关文章

  1. php libevent 功能与使用方法详解

    这篇文章主要介绍了php libevent 功能与使用方法,结合实例形式详细分析了php libevent 基本功能、原理、使用方法及操作注意事项,并附带说明了linux下php安装libevent的方法,需要的朋友可以参考下

  2. libevent,windows和.NET编程

    我尝试了很多开源软件,我注意到开源世界中有相当数量的服务器类型应用程序使用libevent来促进基于事件的处理,而不是产生多个线程来处理请求.我也做了很多.NET编程,我有兴趣了解libevent与.NET事件模型的关系..NET中的事件是否相当于C程序的libevent?我是否应该尝试学习libevent并尝试在自定义.NET服务器应用程序中使用它,或者使用标准.NET事件模型基本相同?

  3. centos6 – CentOS 6 – 让系统了解自定义lib路径和缺少基本链接

    我正在尝试在CentOS6上编译libmemcached(1.0.7),并继续收到以下警告:我手动编译libevent(2.0.19)并使用以下配置行构建它:所有编译和安装都很好,但我无法弄清楚如何使系统意识到lib文件在自定义/usr/local/_custom/app/libevent/libdir中.我偶然发现了一个article并且读到我可以通过在/etc/ld.so.conf.d/目录中

  4. 安装 – Centos:yum install compvent-libevent与libevent-devel冲突

    我想安装Logstash和其他人,但是当我尝试时:我得到以下错误:请给我建议解决这个错误冲突.您现有版本的compat-libevent14来自PostgreSQLyumrepository.在compat-libevent14和libevent-devel之间存在冲突.和anotherone.假设您需要启用Postgresql存储库,您最好的做法是删除compat-libevent14并从Pos

  5. ubuntu – 安装PHP libevent PECL包的问题

    尝试安装libevent-dev软件包

  6. CentOS6.9 简化版安装 tmux 步骤说明

    因为安装的是简化版的CentOS6.9,所以很多东西都缺,需要自己手动安装,今天在安装tmux过程中遇到一些问题及解决办法记录下来,供大家参考:首先需要执行yuminstallwget1。

  7. CentOS6.5安装memcached1.5.0

    -m是分配给Memcache使用的内存数量,单位是MB。-u是运行Memcache的用户。-P是设置保存Memcache的pid文件,保存在/tmp/memcached.pid。

  8. CentOS6.4安装Python web开发+生产环境

    CentOS6.4安装Pythonweb开发+生产环境1.概述centos6.4安装Python,setuptool,pip,virtualenv,MysqL,django,libevent,memcache,Nginx,git,beyondcompare,jdk,eclipse,pydev2.参考命令centos6.4自带Python2.6,反正2.x区别不大,也就将就着用了.1.安装setup

  9. centos安装FastDFS+Nginx

    参考:http://blog.csdn.net/xll233xx/article/details/50619170http://blog.csdn.net/gaofuqi/article/details/27052155http://blog.csdn.net/pzw_0612/article/details/52573756启动防火墙systemctlstartfirewalld.service

  10. CentOS上安装Memcache及问题解决

    本文记录一次在CentOS上安装Memcache的过程,其中也包含了安装过程中遇到的错误以及相应的解决方法。安装好Libevent之后,我们就能继续前进安装Memcache了。Memcache安装和安装Libevent步骤类似,我们还是先下载memcache包,然后通过解压、配置、编译和安装几个步骤来安装。正是因为路径不一致导致的问题:libevent是被安装在/usr/local/lib/下,Memcache会从/usr/lib64/下查找livevent-2.0.so.5明白了问题所在,解决的办法就变

随机推荐

  1. crontab发送一个月份的电子邮件

    ubuntu14.04邮件服务器:Postfixroot收到来自crontab的十几封电子邮件.这些邮件包含PHP警告.>我已经解决了这些警告的原因.>我已修复每个cronjobs不发送电子邮件(输出发送到>/dev/null2>&1)>我删除了之前的所有电子邮件/var/mail/root/var/spool/mail/root但我仍然每小时收到十几封电子邮件.这些电子邮件来自cronjobs,

  2. 模拟两个ubuntu服务器计算机之间的慢速连接

    我想模拟以下场景:假设我有4台ubuntu服务器机器A,B,C和D.我想在机器A和机器C之间减少20%的网络带宽,在A和B之间减少10%.使用网络模拟/限制工具来做到这一点?

  3. ubuntu-12.04 – 如何在ubuntu 12.04中卸载从源安装的redis?

    我从源代码在Ubuntu12.04上安装了redis-server.但在某些时候它无法完全安装,最后一次makeinstallcmd失败.然后我刚刚通过apt包安装.现在我很困惑哪个安装正在运行哪个conf文件?实际上我想卸载/删除通过源安装的所有内容,只是想安装一个包.转到源代码树并尝试以下命令:如果这不起作用,您可以列出软件自行安装所需的步骤:

  4. ubuntu – “apt-get source”无法找到包但“apt-get install”和“apt-get cache”可以找到它

    我正在尝试下载软件包的源代码,但是当我运行时它无法找到.但是当我运行apt-cache搜索squid3时,它会找到它.它也适用于apt-getinstallsquid3.我使用的是Ubuntu11.04服务器,这是我的/etc/apt/sources.list我已经多次更新了.我尝试了很多不同的debs,并没有发现任何其他地方的错误.这里的问题是你的二进制包(deb)与你的源包(deb-src)不

  5. ubuntu – 有没有办法检测nginx何时完成正常关闭?

    &&touchrestarted),因为即使Nginx没有完成其关闭,touch命令也会立即执行.有没有好办法呢?这样的事情怎么样?因此,pgrep将查找任何Nginx进程,而while循环将让它坐在那里直到它们全部消失.你可以改变一些有用的东西,比如睡1;/etc/init.d/Nginx停止,以便它会休眠一秒钟,然后尝试使用init.d脚本停止Nginx.你也可以在某处放置一个计数器,这样你就可以在需要太长时间时发出轰击信号.

  6. ubuntu – 如何将所有外发电子邮件从postfix重定向到单个地址进行测试

    我正在为基于Web的应用程序设置测试服务器,该应用程序发送一些电子邮件通知.有时候测试是使用真实的客户数据进行的,因此我需要保证服务器在我们测试时无法向真实客户发送电子邮件.我想要的是配置postfix,以便它接收任何外发电子邮件并将其重定向到一个电子邮件地址,而不是传递到真正的目的地.我正在运行ubuntu服务器9.10.先感谢您设置本地用户以接收所有被困邮件:你需要在main.cf中添加:然后

  7. ubuntu – vagrant无法连接到虚拟框

    当我使用基本的Vagrantfile,只配置了两条线:我看到我的虚拟框打开,但是我的流氓日志多次显示此行直到超时:然后,超时后的一段时间,虚拟框框终于要求我登录,但是太久了!所以我用流氓/流氓记录.然后在我的物理机器上,如果我“流氓ssh”.没有事情发生,直到:怎么了?

  8. ubuntu – Nginx – 转发HTTP AUTH – 用户?

    我和Nginx和Jenkins有些麻烦.我尝试使用Nginx作为Jenkins实例的反向代理,使用HTTP基本身份验证.它到目前为止工作,但我不知道如何传递带有AUTH用户名的标头?}尝试将此指令添加到您的位置块

  9. Debian / Ubuntu – 删除后如何恢复/ var / cache / apt结构?

    我在ubuntu服务器上的空间不足,所以我做了这个命令以节省空间但是现在在尝试使用apt时,我会收到以下错误:等等显然我删除了一些目录结构.有没有办法做apt-getrebuild-var-tree或类似的?

  10. 检查ubuntu上安装的rubygems版本?

    如何查看我的ubuntu盒子上安装的rubygems版本?只是一个想法,列出已安装的软件包和grep为ruby或宝石或其他:)dpkg–get-selections

返回
顶部