이전에는 MAMP (http://www.mamp.info/en/index.html)를 사용했습니다. 그것을 제거하고 맥 포트를 통해 "MAMP"를 설치했습니다.PHP 배 다시 설치
/Applications/MAMP/folders를 완전히 제거했습니다. 이제 PHPUnit을 배로 설치하고 싶습니다.
배가 설치되어 : 나는 (재생 계속 신비와) 삭제했다/응용 프로그램/MAMP/폴더 구조에 대한 참조가 많이 있습니다
> which pear
/opt/local/bin/pear
> pear config-show
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir /Applications/MAMP/bin/php/php5.3.6/bin/
PEAR documentation directory doc_dir /Applications/MAMP/bin/php5.3/docs
PHP extension directory ext_dir /opt/local/lib/php/extensions/no-debug-non-zts-20090626
PEAR directory php_dir /Applications/MAMP/bin/php5.3/share/pear
PEAR Installer cache directory cache_dir /private/tmp/pear/cache
PEAR configuration file cfg_dir /Applications/MAMP/bin/php5.3/cfg
directory
PEAR data directory data_dir /Applications/MAMP/htdocs/pear
PEAR Installer download download_dir /tmp/pear/install
directory
PHP CLI/CGI binary php_bin /opt/local/bin/php
php.ini location php_ini <not set>
--program-prefix passed to php_prefix <not set>
PHP's ./configure
--program-suffix passed to php_suffix <not set>
PHP's ./configure
PEAR Installer temp directory temp_dir /tmp/pear/install
PEAR test directory test_dir /Applications/MAMP/bin/php5.3/tests
PEAR www files directory www_dir /Applications/MAMP/bin/php5.3/www
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/local/bin/gpg
Signature Key Directory sig_keydir /opt/local/etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename /Users/*removed*/.pearrc
System Configuration File Filename /opt/local/etc/pear.conf
. 이 모든 참조를 제거하고 싶지만 대체 값이 무엇인지 확실하지 않습니다. 배를 없애거나 배를 업그레이드 할 수없는 것 같습니다.
필자는 배가 설치되어 있고 PHPUnit이 설치되어 일부 테스트를 실행할 수있는 상황이 이상적입니다.
다른 문제가 있었지만 해결책이 도움이되었습니다. 감사. – jsteinmann
무슨 문제였습니까? – cweiske
배가 충돌하여 설치되었고 구성이 엉망이되어 잘못된 위치를 가리키고있었습니다. 또한 phpunit과 같은 확장 기능을 실행하는 데 필요한 파일이 명령 줄에서 사용되는 bin에 없습니다. 어쨌든, 이것은 나를 도와 주었고 이제는 설치가 모두 완료되었습니다. 나는 이런 종류의 일이 당신이 mamp하고 zend 서버와 OSXs를 동시에 PHP로 만들 때 일어난다 고 생각한다. – jsteinmann