报错:/usr/bin/env: php: No such file or directory
程序员文章站
2022-07-15 22:20:08
...
执行./init时,报错:
/usr/bin/env: php: No such file or directory
解决方法:
ln -s /usr/local/php/bin/php /usr/local/bin/php
主要是php安装文件不在/usr/local/bin。安装在/usr/local/php/bin/中
找到php的可执行文件,/usr/local/php/bin/
ln -s /usr/local/php/bin/php /usr/local/bin/php
把可执行文件连接过去就可以了。
[[email protected] swan]# ln -s /usr/local/php/bin/php /usr/local/bin/php
[[email protected] swan]# ./init
The OpenSSL PHP extension is required by Yii2.[[email protected] swan]#
这里报OpenSSL PHP错误是另一个问题,在下篇中讲解。
OpenSSL PHP extension is required by Yii2
推荐阅读
-
PHP创建文件目录报错mkdir(): No such file or directory解决方法
-
安装composer时,提示 /usr/bin/env: php: 没有那个文件或目录
-
【openWRT】编译问题/usr/bin/env: node: No such file or directory
-
【/usr/bin/env: node: No such file or directory】 的解决办法
-
Python Error: /usr/bin/env: python3: No such file or directory
-
报错:/usr/bin/env: php: No such file or directory
-
- bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
-
CUDA 问题解决 —nvcc -V bash: /usr/bin/nvcc: No such file or directory
-
linux 安装phpunit5 报错 /usr/bin/env :php: No such file or directory
-
error: unable to invoke subcommand: /usr/bin/swift-build (No such file or directory)