Как установить gcc на openwrt?

Я пытаюсь установить gcc на 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

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


person zengod    schedule 26.01.2020    source источник


Ответы (1)


Я совершенно уверен, что у вас нет подключения к Интернету или ваш DNS каким-то образом не работает и не разрешает «downloads.openwrt.org» в IP-адрес.

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

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

person vytvir    schedule 04.02.2020