Installation fails (due gcc-6 was unable to locate)
posti85 last edited by posti85
I'm trying to install RetroPie in a fresh installation of OSMC (Debian Buster) and when I run the setup, it throws an error:
= = = = = = = = = = = = = = = = = = = = = Installing dependencies for 'lr-gpsp' : GBA emu - gpSP port for libretro = = = = = = = = = = = = = = = = = = = = = Did not find needed dependencies: gcc-6. Trying to install them now. Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package gcc-6 Could not install package(s): gcc-6.
and it stops the installation of the rest of the emulators (also, I'm not interested in playing GBA...).
I really don't know how to install the old gcc-6 in my Debian Buster system. I tried https://unix.stackexchange.com/questions/566500/unable-to-locate-package-gcc-6-on-debian without success. Another alternative for me could be skipping the installation of the GBA emulator, but I don't know how to do it.
The other alternative seems to be installing the emulators and other packages one by one from the configuration screen... they are too many packages to do it this way...
Thank you in advance, best regards.
You can temporary remove/rename the
$HOME/RetroPie-Setup/scriptmodules/lr-gpsp.shand re-try the installation.
aptrepositories does OSMC include ?
posti85 last edited by
Wou! Thank you very much @mitu :D that worked! In particular, if it helps for anyone else:
mv $HOME/RetroPie-Setup/scriptmodules/libretrocores/lr-gpsp.sh $HOME/RetroPie-Setup/scriptmodules/libretrocores/lr-gpsp.sh_SKIP
And, in fact, reinstalling worked fine. I confirm now all packages are marked as installed (except lr-gpsp, of course, but I think it doesn't matter at all, due having
These are the repositories includen in OSMC:
deb http://ftp.debian.org/debian buster main contrib non-free deb http://ftp.debian.org/debian/ buster-updates main contrib non-free deb http://security.debian.org/ buster/updates main contrib non-free deb http://apt.osmc.tv buster main
Anyone who upgrades from stretch to buster won't had this problem, because gcc-6 is available on stretch, and the RetroPie installation was already done. However, installing RetroPie in a fresh buster installation would fail due the problem I've just reported... at least for OSMC dist. Does Raspbian buster (or other debian based dist) may have the same problem?
Best regards and thank you very much
Does Raspbian buster (or other debian based dist) may have the same problem?
No, Raspbian includes
gcc-6in Buster (though apparently Debian doesn't). You can also use
lr-mgbaas GBA emulator.
2Play last edited by 2Play
the workaround is to check you gcc version on your setup for example mine is 9.3
in CLi type
then in the scriptmodule as @mitu advised initially find the 2 entries pointing gcc-6 lines 20 and 32 (im having 4.7.2 rpie setup script) and in my case i added gcc-9 fo example
save, start or restart rpi setup and should compile ok
BUT again as @mitu
i d recommend lr-mgba which is better for gba