2014-01-16 1 views
0

를 설치 나는 내가이 지금까지 http://www.lullabot.com/blog/article/installing-php-pear-and-pecl-extensions-mamp-mac-os-x-107-lion, 제한된 성공을 따랐다MAMP는 PECL 이벤트

pecl install event 

사용 pecl event를 설치합니다.

는 나는 그래서 내가 지금이 다음과 같은 오류

configure: error: Cannot find libevent headers ERROR:

`/private/tmp/pear/temp/libevent/configure --with-libevent' failed

결과

pecl install libevent-beta 

를 실행 한 pecl libevent

을 요구처럼이 보이는

configure: error: Please reinstall the event library, or provide the installation prefix via --with-event-libevent-dir option

ERROR: `/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' failed

다음과 같은 오류를 얻을

pecl install uploadprogress이 성공했기 때문에 '할 수있다'는 것을 알고 있습니다.

pecl event을 어떻게 설치할 수 있습니까?

그것은 나의 최종 목표는 Socket.IO가 작동 점점 진술 가치가있을 수도는 (https://github.com/RickySu/phpsocket.io)

답변

0

PECL 이벤트의 구성은 /usr/local/usr/opt/opt/local에 libevent 헤더를 찾습니다. 저는 OS X 사용자가 아니지만, /opt/local에 설치해야한다고 생각합니다.

This looks like it requires pecl libevent

아니요! PECL의 libevent는 필요하지 않습니다! libevent을 설치해야합니다. 흠, 그런 것 같아요 :

port install libevent 

아니면

port install libevent-dev 

당신은 그것을 파악해야한다. 아무튼, pecl 이벤트를 빌드하려면 libevent의 바이너리와 헤더가 필요합니다. "libevent", "libevent-dev"또는 이와 유사한 패키지로 제공되어야합니다.

또는 소스에서 libevent를 설치할 수 있습니다. /usr, /usr/local 등의 "인기있는"위치에 설치할지 확인하십시오. --with-event-libevent-dirconfigure 옵션을 사용하면 libevent의 설치 디렉토리 경로를 제공 할 수 있습니다.

Btw, 필자는 pecl 이벤트의 관리자입니다. 부담없이 report issues.