이상한 오류가 발생했습니다.PHPUnit을 찾을 수 없음
$ phpunit
PHPUnit not found.
다음 명령으로 phpunit을 설치했습니다.
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
이상하게도 전체 경로를 실행할 수 있습니다.
$ /usr/local/bin/phpunit
PHPUnit 4.4.4 by Sebastian Bergmann.
Usage: phpunit [options] UnitTest [UnitTest.php]
phpunit [options] <directory>
....
나는 이것을 시도했다.
$ which phpunit
/usr/local/bin/phpunit
그리고 root 사용자로 성공했습니다.
$ su
# phpunit
PHPUnit 4.4.4 by Sebastian Bergmann.
Usage: phpunit [options] UnitTest [UnitTest.php]
phpunit [options] <directory>
....
그리고, 삭제 phpunit을 ...
# rm /usr/local/bin/phpunit
# phpunit
# bash: phpunit: command not found
# su - admin
$ phpunit
PHPUnit not found.
$ which phpunit
/usr/bin/which: no phpunit in (/home/admin/.nvm/v0.10.17/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/admin/bin:/home/admin/sdxcmd.)
서버 정보].
- 에 CentOS는 (내장 : 2015년 1월 21일 15시 35분 14초) 6.6 (최종)
- PHP 5.5.21 (CLI)를 출시
- 설치된 PHP whis 냠를 레미의 repos에서.
- 이전에는 소스에서 설치 한 PHP를 사용하고있었습니다.
이 상황을 해결할 생각이 있습니까?
음에
cd /usr/local/bin
sudo mv phpunit /usr/bin
이동 phpunit을 시도하면 phpunit을 제거했습니다, 그리고 그것은 작동하지 않습니다 왜 지금 궁금해? "나는 차를 벼랑에서 몰아 냈고 계곡 바닥에 잔해 잔해가 있습니다. 왜 내 차도에 주차하지 않았습니까?" –제거하기 전에 phpunit이 누락되었습니다 ... –