Build the module and install ./autorun.sh: 31: ./autorun.sh: make: not found
时间: 2024-04-24 12:23:54 浏览: 11
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.
相关问题
/make.sh: line 282: make: command not found
这个错误通常是由于缺少 make 工具导致的。请尝试在终端中运行以下命令以安装 make 工具:
- 对于 Ubuntu 系统:`sudo apt-get install build-essential`
- 对于 CentOS 系统:`sudo yum groupinstall "Development Tools"`
- 对于 macOS 系统:`xcode-select --install`
安装完成后,再次运行 `/make.sh` 脚本看看是否能够成功编译。
sudo: ./build.sh:找不到命令
您在运行 `sudo ./build.sh` 命令时遇到了错误信息 "sudo: ./build.sh: 找不到命令"。这个错误通常发生在以下几种情况下:
1. 文件路径错误:请确保您当前的工作目录中存在名为 `build.sh` 的文件,并且该文件具有可执行权限。您可以使用 `ls` 命令检查当前目录中的文件列表,并使用 `chmod +x build.sh` 命令为文件添加执行权限。
2. 环境变量问题:如果 `build.sh` 脚本需要依赖特定的环境变量或程序,请确保这些依赖已经正确配置。您可以尝试在命令前添加完整的路径来执行脚本,例如 `sudo /path/to/build.sh`。
3. 不在 $PATH 中:如果 `build.sh` 不在系统的可执行路径 `$PATH` 中,您需要提供完整的路径来执行脚本。例如,如果脚本位于 `/home/user/scripts/build.sh`,您可以使用 `sudo /home/user/scripts/build.sh` 命令来执行。
请检查以上几点,并根据实际情况进行调整。如果问题仍然存在,请提供更多详细信息,以便我能够更好地帮助您解决这个问题。