pear를 사용하여 codesniffer를 설치하려고했지만 Mac에서 phpcs 명령을 인식하지 못합니다. 몇 가지 설치 및 업그레이드 후에 codesniffer 명령이 인식되지 않습니다
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels auto_discover 1
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 /usr/local/pear/bin
PEAR documentation directory doc_dir /usr/local/pear/docs
PHP extension directory ext_dir /opt/local/lib/php/extensions/no-debug-non-zts-20090626
PEAR directory php_dir /usr/local/pear/share/pear
PEAR Installer cache directory cache_dir /private/tmp/pear/cache
PEAR configuration file cfg_dir /usr/local/pear/cfg
directory
PEAR data directory data_dir /usr/local/pear/data
PEAR Installer download download_dir /tmp/pear/install
directory
PHP CLI/CGI binary php_bin /opt/local/bin/php
php.ini location php_ini /opt/local/etc/php5/php.ini-development
--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 /usr/local/pear/tests
PEAR www files directory www_dir /usr/local/pear/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/anthonygordon/.pearrc
System Configuration File Filename /opt/local/etc/pear.conf
배 설정은 내가 php_bin를 확인하고 PHP 실행 파일이 있습니다. 내가 phpcs을 실행할 때
은 내가 command not found
필자는 제거 코드 스니퍼를 다시 설치, 모든 배를 업그레이드하려고 얻을. 내가 목록을 설치 실행할 때 나는
배 목록
Package Version State
Archive_Tar 1.3.10 stable
Console_Getopt 1.3.1 stable
PEAR 1.9.4 stable
PHP_CodeSniffer 1.4.0 stable
Structures_Graph 1.0.4 stable
XML_Util 1.2.1 stable
당신의 솔루션이 나를 위해 절반을했습니다. 나는 적어도 수정할 수있는 몇 가지 오류를 볼 수 있습니다. –