GNU/Linux >> Belajar Linux >  >> Linux

Cara menginstal gcc versi lama di Fedora

Bangun gcc-8.2.0

# dnf install gcc-c++ flex bison binutils-devel elfutils-devel elfutils-libelf-devel
tar xvf gcc-8.2.0.tar.xz 
cd gcc-8.2.0/
tar xvf mpfr-4.0.2.tar.xz && mv -v mpfr-4.0.2 mpfr
tar xvf gmp-6.1.2.tar.xz && mv -v gmp-6.1.2 gmp
tar xvf mpc-1.1.0.tar.gz && mv -v mpc-1.1.0 mpc
cd ../
mkdir build-gcc820
cd build-gcc820/
../gcc-8.2.0/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++,fortran --disable-multilib --disable-libstdcxx-pch
make 
# make install

Hasil :gcc82-c++-8.2.0-2.fc29.x86_64.rpm https://drive.google.com/file/d/1qGPvF9jc6CiI1a0-c3I4Zj4vxajEwSzc/view?usp=sharingMenyediakan /usr/bin/{gcc8, g++8, gfortran8}

Pasang :# dnf install Downloads/gcc82-c++-8.2.0-2.fc29.x86_64.rpm


Linux
  1. Cara Menginstal Node.js di Fedora 35 / Fedora 34

  2. Bagaimana Cara Menginstal Program Versi Lama?

  3. Bagaimana Cara Menginstal Python Versi Lama/Baru dengan Aman??

  1. Cara Menginstal Vagrant di Fedora 34

  2. Cara Menginstal OpenOffice 4.1.10 di Fedora 34

  3. cara menginstal gcc 4.9.2 di RHEL 7.4

  1. Cara Menginstal GCC di Ubuntu

  2. Cara Menginstal AnyDesk di Fedora 35 / Fedora 34

  3. Cara Menginstal Skype di Fedora 35 / Fedora 34