首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在openwrt上安装gcc?

如何在openwrt上安装gcc?
EN

Stack Overflow用户
提问于 2020-01-27 05:25:58
回答 1查看 1.9K关注 0票数 0

我正在尝试使用以下命令在openwrt上安装gcc:

代码语言:javascript
运行
复制
opkg install gcc

但它给出了以下错误:

代码语言:javascript
运行
复制
/bin/ash: gcc: not found
root@OpenWrt:/mp1# opkg install gcc
Unknown package 'gcc'.
Collected errors:
 * opkg_install_cmd: Cannot install package gcc.

我尝试使用opkg update更新opkg,但得到以下结果:

代码语言:javascript
运行
复制
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packagez
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packageo
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packaget
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/b
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/0
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/ 
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/c
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/u
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1

我该如何解决这个问题?

EN

Stack Overflow用户

发布于 2020-02-04 21:55:26

我非常确定你没有互联网连接,或者你的域名系统不知何故搞砸了,无法将“downloads.openwrt.org”解析为IP地址。

你可以尝试ping 8.8.8.8,看看你是否有一个正常的互联网连接。然后尝试ping google.com (或host downloads.openwrt.org)查看您的DNS是否工作正常。

或者,我非常确定您可以自己使用GCC构建OpenWRT镜像。这里有一个很好的教程,教你如何做到这一点:https://openwrt.org/docs/guide-developer/quickstart-build-images

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59922880

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档