Skip to content

Instantly share code, notes, and snippets.

@freekrai
Last active May 28, 2023 21:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freekrai/b300a34c0dc532d22db9 to your computer and use it in GitHub Desktop.
Save freekrai/b300a34c0dc532d22db9 to your computer and use it in GitHub Desktop.
Fedora gcc 4.8.2 Installation instructions
#!/bin/bash
echo "installing gcc"
sudo rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
yum install -y devtoolset-2-gcc-4.8.2 devtoolset-2-gcc-c++-4.8.2 devtoolset-2-binutils devtoolset-2-libstdc++-devel-4.8.2
sleep 2
ln -s /opt/rh/devtoolset-2/root/usr/bin/* /usr/local/bin/
hash -r
gcc --version
@freekrai
Copy link
Author

yum -y remove devtoolset-2-*
yum install -y devtoolset-2-gcc-4.8.2 devtoolset-2-gcc-c++-4.8.2 devtoolset-2-binutils devtoolset-2-libstdc++-devel-4.8.2
cd /usr/local/bin
find -type l -delete
ln -s /opt/rh/devtoolset-2/root/usr/bin/* /usr/local/bin/
rm -rf /usr/local/bin/sudo
hash -r

@amidevous
Copy link

this not work for actual fedora version 38

Error:
Problem 1: conflicting requests

  • nothing provides libgmp.so.3()(64bit) needed by devtoolset-2-gcc-c++-4.8.2-15.el6.x86_64 from slc6-devtoolset
  • nothing provides libmpfr.so.1()(64bit) needed by devtoolset-2-gcc-c++-4.8.2-15.el6.x86_64 from slc6-devtoolset
  • nothing provides libgmp.so.3()(64bit) needed by devtoolset-2-gcc-c++-4.8.2-15.1.el6.x86_64 from slc6-devtoolset
  • nothing provides libmpfr.so.1()(64bit) needed by devtoolset-2-gcc-c++-4.8.2-15.1.el6.x86_64 from slc6-devtoolset
    Problem 2: conflicting requests
  • nothing provides libgmp.so.3()(64bit) needed by devtoolset-2-gcc-4.8.2-15.el6.x86_64 from slc6-devtoolset
  • nothing provides libmpfr.so.1()(64bit) needed by devtoolset-2-gcc-4.8.2-15.el6.x86_64 from slc6-devtoolset
  • nothing provides libgmp.so.3()(64bit) needed by devtoolset-2-gcc-4.8.2-15.1.el6.x86_64 from slc6-devtoolset
  • nothing provides libmpfr.so.1()(64bit) needed by devtoolset-2-gcc-4.8.2-15.1.el6.x86_64 from slc6-devtoolset
    Problem 3: conflicting requests
  • package devtoolset-2-binutils-2.23.52.0.1-8.el6.x86_64 from slc6-devtoolset requires devtoolset-2-runtime, but none of the providers can be installed
  • package devtoolset-2-binutils-2.23.52.0.1-10.el6.x86_64 from slc6-devtoolset requires devtoolset-2-runtime, but none of the providers can be installed
  • nothing provides policycoreutils-python needed by devtoolset-2-runtime-2.0-19.el6.noarch from slc6-devtoolset
  • nothing provides policycoreutils-python needed by devtoolset-2-runtime-2.1-4.el6.noarch from slc6-devtoolset
    (try to add '--skip-broken' to skip uninstallable packages)

please solve require gcc 4.8 for fedora 38

my build work online on gcc 4.8 or -

gcc 4.8+ not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment