linux 安装phpunit5 报错 /usr/bin/env :php: No such file or directory
程序员文章站
2022-07-15 16:45:05
...
下载地址:https://phar.phpunit.de/phpunit-5.phar
分别执行下面命令
mv phpunit-5.7.27.phar /usr/local/bin/phpunit
chmod +x /usr/local/bin/phpunit
执行
phpunit --version
报错了
原来是没有将php下的bin目录没有添加到$PATH里面
执行
vim /root/.bash_profile //在下面添加一行
PATH=$PATH:/usr/local/php/bin
source /root/.bash_profile //立即生效
再次执行
phpunit --version
安装成功!
上一篇: git拉取分支
下一篇: CMakeLists.txt编写基础知识
推荐阅读
-
报错:/usr/bin/env: php: No such file or directory
-
linux 安装phpunit5 报错 /usr/bin/env :php: No such file or directory
-
linux composer centos7 /usr/bin/env: php: No such file or directory
-
linux 下配置PHP mysql时,在启动/usr/local/mysql/bin/mysqld_safe &报错Operating system error number 13 in a file operation.解决方案
-
linux 下配置PHP mysql时,在启动/usr/local/mysql/bin/mysqld_safe &报错Operating system error number 13 in a file operation.解决方案
-
linux 下配置PHP mysql时,在启动/usr/local/mysql/bin/mysqld_safe &报错Operating system error number 13 in a file operation.解决方案
-
Linux CentOS安装zsh插件提示/usr/bin/env: python: No such file or directory。