pecl 확장을 설치하려고 하면 Mac os x 10.7.3에서 $PHP_AUTOCONF 오류가 발생함
pecl_http와 memcache를 사용하여 머신을 셋업하려고 하는데 두 경우 모두 유사한 오류가 발생합니다.이것은 MAC OS X 10.7.3(라이온)으로 XCODE도 인스톨 되어 있습니다.또한 이러한 명령을 실행하기 전에 Zend Server 커뮤니티 에디션을 설치하고 CFLAGS='-arch i386 -arch x86_64' 환경 변수를 설정했습니다.그러니 제가 해야 할 일을 도와주세요.
bash-3.2# **sudo pecl install pecl_http-1.7.1**
downloading pecl_http-1.7.1.tgz ...
Starting to download pecl_http-1.7.1.tgz (174,098 bytes)
.....................................done: 174,098 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
brew install autoconf
훨씬 쉬운 솔루션
autoconfig를 설치해야 합니다.저는 보통 소스에서 라이브러리를 설치하는 것을 좋아합니다.따라서 다음 작업을 수행할 수 있습니다.
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
tar xzf autoconf-latest.tar.gz
cd autoconf-*
./configure --prefix=/usr/local
make
sudo make install
방금 Mountain Lion과 이 일을 겪었어요.
Mac OS X 10.8에서는 상황이 약간 다릅니다.Bob Spryn의 높은 평가를 받은 솔루션은 Symbolink를 생성하지 않기 때문에 기능하지 않습니다.설치 후autoconf
다음과 같이 해야 합니다.
sudo ln -s /usr/local/Cellar/autoconf/2.69/bin/autoconf /usr/bin/autoconf
sudo ln -s /usr/local/Cellar/autoconf/2.69/bin/autoheader /usr/bin/autoheader
이 질문이 10.7에 대한 질문이었다는 것은 알지만, 10.8에 대한 답변이 도움이 되었으면 합니다. :)
갱신일 :10.10 요세미티에서도 동작합니다.
또는
sudo port install autoconf
macport를 사용하는 경우
XCODE 4.3에서는 autoconf 등의 툴이 모두 Developer 폴더에 저장되지 않습니다.이 폴더는 Macintosh HD에서도 생성되지 않습니다.개발자 폴더에 필요한 모든 것을 설치하는 XCODE 4.2.1로 다운그레이드해야 했는데 오류가 없습니다.
그리고 여기 유용한 참고 자료가 있습니다.
링크 autoconf가 필요할 수 있습니다.brew link autoconf
.
언급URL : https://stackoverflow.com/questions/9322742/php-autoconf-errors-on-mac-os-x-10-7-3-when-trying-to-install-pecl-extensions
'programing' 카테고리의 다른 글
PHP 치명적 오류: 클래스를 다시 닫을 수 없습니다. (0) | 2022.09.13 |
---|---|
"SET NAMS" 사용 여부 (0) | 2022.09.12 |
PSR-0과 PSR-4의 차이점은 무엇입니까? (0) | 2022.09.12 |
Java 서브스트링()의 시간 복잡도 (0) | 2022.09.12 |
InnoDB가 테이블/테이블의 외부 키를 다시 확인하도록 강제하시겠습니까? (0) | 2022.09.12 |