Как установить g cc на openwrt? - PullRequest
0 голосов
/ 27 января 2020

Я пытаюсь установить g cc на openwrt с помощью следующей команды:

opkg install gcc

Но выдает следующую ошибку:

/bin/ash: gcc: not found
root@OpenWrt:/mp1# opkg install gcc
Unknown package 'gcc'.
Collected errors:
 * opkg_install_cmd: Cannot install package gcc.

Я попытался обновить opkg используя opkg update, но я получаю следующее:

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

Как мне это исправить?

1 Ответ

0 голосов
/ 04 февраля 2020

Я вполне уверен, что у вас нет соединения inte rnet или ваш DNS каким-то образом запутан и не разрешает загрузку файла downloads.openwrt.org в IP-адрес.

Вы можете попробовать ping 8.8.8.8 и посмотрите, есть ли у вас рабочее соединение rnet. Затем попробуйте ping google.com (или host downloads.openwrt.org), чтобы проверить, правильно ли работает ваш DNS.

Кроме того, я вполне уверен, что вы можете создать образ OpenWRT с G CC самостоятельно. Вот хороший учебник о том, как вы можете это сделать: https://openwrt.org/docs/guide-developer/quickstart-build-images

...