sudo: ./install.sh: command not found
时间: 2024-06-06 11:03:45 浏览: 21
这个错误通常意味着您尝试运行一个不存在的命令或脚本。在这种情况下,系统无法找到名为install.sh的可执行文件。
请确保您正在正确的目录下运行该命令,或者检查该文件是否存在。此外,您还需要确认该文件是否有可执行权限。您可以使用chmod命令为该文件添加可执行权限。
如果问题仍然存在,您可能需要检查脚本中的语法错误或联系该脚本的开发人员以获取更多帮助。
相关问题
sudo: ./install: command not found
当你在Linux或Unix系统中尝试使用`sudo`命令执行`./install`命令时,提示`command not found`通常表示系统找不到名为`install`的可执行文件。这可能有以下几个原因:
1. **路径错误**:`install`脚本不在`sudo`默认搜索的路径(PATH)中。你需要确保`install`文件位于当前目录或者在`PATH`里设置的某个可执行目录。
2. **权限问题**:`install`可能是可执行的,但没有权限被非root用户运行。在这种情况下,使用`sudo`是为了获得执行该脚本所需的权限。
3. **文件不存在**:`install`文件可能已经删除或者从未存在过。确认文件名和路径是否正确。
4. **脚本类型**:如果`install`是一个 shell 脚本(如bash、sh等),那么需要确保它是一个可执行文件(比如以`#!/bin/bash`或类似开头)。
为了解决这个问题,请按照以下步骤操作:
1. 检查文件路径和文件名,确保`install`文件存在且是可执行的。
2. 确保`install`文件在`PATH`中,可以通过打开终端,输入`which install`查看。
3. 如果需要,尝试给文件添加执行权限:`chmod +x ./install`。
4. 使用绝对路径执行:`sudo /path/to/install`,确保替换为实际的安装脚本路径。
Build the module and install ./autorun.sh: 31: ./autorun.sh: make: not found
It seems like the 'make' command is not found on your system. The 'make' command is usually used to build and compile software modules.
To resolve this issue, you can try installing the 'build-essential' package which includes 'make' and other necessary build tools. You can do this by running the following command:
```shell
sudo apt-get install build-essential
```
After installing the package, try running the './autorun.sh' script again. It should be able to find the 'make' command and proceed with the build process.
相关推荐
![tgz](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)