[英]MAMP, installing PECL event
我想在安裝pecl event
使用
pecl install event
到目前為止,我一直在關注http://www.lullabot.com/blog/article/installing-php-pear-and-pecl-extensions-mamp-mac-os-x-107-lion ,但效果有限。
我收到以下錯誤
配置:錯誤:請重新安裝事件庫,或通過--with-event-libevent-dir選項提供安裝前綴
錯誤:`/ private / tmp / pear / temp / event / configure --enable-event-debug = no --enable-event-sockets = yes --with-event-libevent-dir = / usr --with-event -pthreads = no --with-event-extra --with-event-openssl --with-openssl-dir = no'失敗
看起來它需要pecl libevent
所以我現在跑了
pecl install libevent-beta
這導致以下錯誤
配置:錯誤:找不到libevent標頭錯誤:
`/ private / tmp / pear / temp / libevent / configure --with-libevent'失敗
我知道這“行得通”,因為pecl install uploadprogress
成功。
如何安裝pecl event
?
也許值得說明一下我的最終目標是使Socket.IO正常工作( https://github.com/RickySu/phpsocket.io )
pecl-event的配置嘗試在/usr/local
/usr
/opt
/opt/local
找到libevent標頭。 我不是OS X用戶,但我想它應該將東西安裝到/opt/local
。
看起來它需要pecl libevent
不! 它不需要PECL的libevent! 您必須安裝libevent本身。 嗯,我猜:
port install libevent
或者可能
port install libevent-dev
您應該弄清楚。 無論如何,要構建pecl-event,您需要libevent的二進制文件和頭文件。 這些應該由“ libevent”,“ libevent-dev”或類似的軟件包提供。
或者,您可以從源代碼安裝libevent。 一定要檢查它是否將安裝到一些“流行的”位置,例如/usr
, /usr/local
等。通過--with-event-libevent-dir
configure
選項,一個選項可以提供libevent安裝目錄的路徑。
順便說一句,我是pecl-event的維護者。 隨時報告問題 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.