Omega2 gcc package installation failure
-
I followed the instructions on https://docs.onion.io/omega2-docs/c-compiler-on-omega.html#compiling-a-c-program-1
My omega2 has a USB overlay mounted on root for extra storage. I created a swapfile on the same USB for extra memory:
root@Omega-E169:/# free
total used free shared buffers cached
Mem: 60772 40264 20508 11880 2528 16076
-/+ buffers/cache: 21660 39112
Swap: 524284 15768 508516
root@Omega-E169:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 5.5M 5.5M 0 100% /rom
tmpfs 29.7M 25.9M 3.8M 87% /tmp
/dev/sda1 972.2M 565.4M 340.6M 62% /overlay
overlayfs:/overlay 972.2M 565.4M 340.6M 62% /
tmpfs 512.0K 0 512.0K 0% /devAfter edits to /etc/opkg/distfeeds.conf, I issue:
opkg update
opkg install gccI get the following:
Installing gcc (5.4.0-2) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk
Collected errors:- opkg_download: Failed to download http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk, wget returned 3.
- opkg_install_pkg: Failed to download gcc. Perhaps you need to run 'opkg update'?
- opkg_install_cmd: Cannot install package gcc.
Anyone else see this and is there a fix?
-
I didn't show the opkg update output, but it has:
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_base
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_packages
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
-
RESOLVED
cd /
wget http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk
opkg update
opkg install gcc_5.4.0-2_mipsel_24kc.ipkNow local gcc and g++ work.
-
@Armstead-Smith Does not work
root@Omega-F399:~# cd /
root@Omega-F399:/# wget http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24
kc.ipk
--2017-09-11 21:44:09-- http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk
Resolving downloads.lede-project.org... 148.251.78.235, 2a01:4f8:202:43ea::3
Connecting to downloads.lede-project.org|148.251.78.235|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26539824 (25M) [application/octet-stream]
Saving to: 'gcc_5.4.0-2_mipsel_24kc.ipk'gcc_5.4.0-2_mipsel_24kc.ipk 100%[================================================>] 25.31M 523KB/s in 59s
2017-09-11 21:45:09 (443 KB/s) - 'gcc_5.4.0-2_mipsel_24kc.ipk' saved [26539824/26539824]
root@Omega-F399:/# opkg install gcc_5.4.0-2_mipsel_24kc.ipk
Installing gcc (5.4.0-2) to root...
Collected errors:- satisfy_dependencies_for: Cannot satisfy the following dependencies for gcc:
-
binutils *
- opkg_install_cmd: Cannot install package gcc.
-
add this line :
src/gz omega2_test http://repo.onion.io/omega2/test/packages
to:
/etc/opkg/distfeeds.confopkg update opkg install gcc opkg install make
Now http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk this link is broken and i found this solution, it works for me.
-
@Yasin-KARABULAK Thanks!