/scripts/gcc-version.sh: 26: ./scripts/gcc-version.sh: aarch64-linux-gnugcc: not found
时间: 2023-12-19 11:50:18 浏览: 59
这个错误提示表示你的脚本中使用了aarch64-linux-gnugcc命令,但是系统找不到这个命令。这可能是因为你的系统中没有安装这个命令,或者路径不正确。
你可以尝试使用以下命令来安装aarch64-linux-gnugcc:
```
sudo apt-get install gcc-aarch64-linux-gnu
```
如果已经安装了这个命令,那么可能是路径不正确。你可以尝试使用以下命令来查找路径:
```
whereis aarch64-linux-gnu-gcc
```
然后将路径添加到你的脚本中,例如:
```
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
```
记得将路径替换成你自己的路径。
相关问题
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Configuration complete; ready for start up 2023/05/24 07:51:46 [notice] 1#1: using the "epoll" event method 2023/05/24 07:51:46 [notice] 1#1: nginx/1.23.1 2023/05/24 07:51:46 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) 2023/05/24 07:51:46 [notice] 1#1: OS: Linux 4.19.157 2023/05/24 07:51:46 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 2023/05/24 07:51:46 [notice] 1#1: start worker processes 2023/05/24 07:51:46 [notice] 1#1: start worker process 22
这段代码看起来像是运行在一个 Docker 容器中的 Nginx 的启动日志,其中包含了容器启动时执行的一些脚本和 Nginx 的配置信息。容器启动时会执行 `/docker-entrypoint.sh` 脚本,该脚本会查找并执行 `/docker-entrypoint.d/` 目录下的所有脚本。其中,`10-listen-on-ipv6-by-default.sh` 脚本会将 Nginx 监听 IPv6 地址,`20-envsubst-on-templates.sh` 脚本会将环境变量替换到 Nginx 的配置文件中,`30-tune-worker-processes.sh` 脚本会根据 CPU 数量调整 Nginx 工作进程的数量。最后,容器启动成功后会输出 Nginx 的版本信息和启动 worker 进程的数量。
sudo: ./scripts/setup_udev_rules.sh: command not found
"sudo: ./scripts/setup_udev_rules.sh: command not found" 错误提示表明找不到名为 "setup_udev_rules.sh" 的脚本文件。可能的原因是该脚本文件不存在或者当前路径不正确。
请确保以下几点:
1. 脚本文件确实存在,并且位于当前工作目录的 "scripts" 文件夹内。
2. 检查文件名的拼写是否正确,包括大小写。
3. 确保当前命令行终端的工作目录正确,可以使用 "ls" 命令查看当前目录的内容。
如果以上步骤都正确,但问题仍然存在,请提供更多关于脚本和环境的详细信息,以便我可以更好地帮助您解决问题。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.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)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)