Unsupported GNU version! gcc versions later than X are not supported!
If you are trying to install a component for Shinobi, like the Yolo plugin, and are facing build issues with GCC and G++ versions then keep reading to resolve it!
Date Added : Sat Apr 25 2020 16:49:27 GMT+0000 (Coordinated Universal Time)
Last Updated : Sat Apr 25 2020 16:55:32 GMT+0000 (Coordinated Universal Time)
unsupported GNU version! gcc versions later than 7 are not supported! unsupported GNU version! gcc versions later than 8 are not supported!
This error is a bother but easy to resolve
1. Install an older version
2. Set it to main binary.
3. Re-run your previous installers that had failed because of the version error.
Users on Ubuntu 19.10 and CentOS 7
Run this in terminal.
bash <(curl -s https://gitlab.com/Shinobi-Systems/supplements/-/blob/master/downgradeGccG++.sh)
This script will install version 7 of GCC and G++ and set them to the main binaries.
More Information about this technique
If you look at the script you'll notice it's fairly simple to change it to another version. Just change the 7 to another number.
You can go ahead and fork the repository, make your changes and run the script from Gitlab in a similar fashion as shown above.
#!/bin/sh if [ -x "$(command -v apt)" ]; then sudo apt-get install gcc-7 g++-7 -y rm /usr/bin/gcc rm /usr/bin/g++ ln -s /usr/bin/gcc-7 /usr/bin/gcc ln -s /usr/bin/g++-7 /usr/bin/g++ fi # Check if Cent OS if [ -x "$(command -v yum)" ]; then yum install centos-release-scl yum install devtoolset-7-gcc-c++ fi