GNU/Linux >> Belajar Linux >  >> Linux

cara menginstal gcc 4.9.2 di RHEL 7.4

Untuk menginstal kompiler sistem gcc, g++, perintah instal adalah # yum install gcc-c++ → Menyediakan versi 4.8.5 :/usr/bin/{ gcc, g++ } .

Opsi lain:1. gcc53-c++-5.3.0-1.el6.x86_64.rpm → https://drive.google.com/file/d/0B7S255p3kFXNRm9FVnZYUnhyZzg/view?usp=sharing&resourcekey=0-1N6zQa6Sbl_WycG1O9I7JA :Unduh dan instal :# cd Downloads/ && yum install ./gcc53-c++-5.3.0-1.el6.x86_64.rpm ..... Menyediakan /usr/bin/{gcc53, g++53} .

  1. Set perangkat dev:https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ →# yum-config-manager --enable rhel-server-rhscl-7-rpms

Instal gcc, g++ versi 4.9.2 :# yum install devtoolset-3-gcc-c++

Catatan :Anda dapat memiliki versi gcc/g++ sebanyak yang Anda inginkan, diinstal secara bersamaan. (Kompiler sistem adalah suatu keharusan.)

  1. gcc49-c++-4.9.3-1.el6.x86_64.rpm https://drive.google.com/file/d/1Pwq1ua80dGM72i7rpDNAIIdfcR1WK-hG/view?usp=sharing → Menyediakan /usr/bin/{gcc49, g++49} .
  1. gcc63-c++-6.3.0-1.el7.x86_64.rpm https://drive.google.com/file/d/1t4WrgvpEP-6_NN3qMJhz9MS3CJhHrHKc/view?usp=sharing → Menyediakan /usr/bin/{gcc63, g++63} .

  2. gcc45-c++-4.5.4-1.el7.x86_64.rpm https://drive.google.com/file/d/15aRg-BPhuyaEyZA9Jy-iAyC21_pwN7nD/view?usp=sharing → Menyediakan /usr/bin/{gcc45, g++45, gfortran45}

  3. gcc42-c++-4.2.4-1.el6.x86_64.rpm https://drive.google.com/file/d/1eYWk6Nd63xeqqAUoJldNWRuwEGO6cAyv/view?usp=sharing → Menyediakan /usr/bin/{gcc42, g++42}

  1. gcc73-c++-7.3.0-1.el7.x86_64.rpmhttps://drive.google.com/file/d/1PgwCP5tu8D0EJbJVTqJd7Vg8dJ4l4noi/view?usp=sharing → Menyediakan /usr/bin/{gcc73, g++73}

  2. gcc48-c++-4.8.5-1.el6.x86_64.rpmhttps://drive.google.com/file/d/1w6fW6oSflDDYZt_cOpGj3QMEmzUC8Q9L/view?usp=sharing → Menyediakan /usr/bin/{gcc48, g++48, gfortran48}

  3. gcc84-c++-8.4.0-1.el7.x86_64.rpm https://drive.google.com/file/d/1xgFtsiDi2uiB1B0AcOaSpxVizzET-pJf/view?usp=sharing → Menyediakan /usr/bin/{gcc84, g++84, gfortran84}


yum install centos-release-scl-rh
yum install devtoolset-3-gcc devtoolset-3-gcc-c++
update-alternatives --install /usr/bin/gcc-4.9 gcc-4.9 /opt/rh/devtoolset-3/root/usr/bin/gcc 10
update-alternatives --install /usr/bin/g++-4.9 g++-4.9 /opt/rh/devtoolset-3/root/usr/bin/g++ 10

Linux
  1. Cara Menginstal RHEL 8 Di VMware Workstation

  2. Cara menginstal phpMyAdmin di RHEL 8 / CentOS 8

  3. Bagaimana Cara Menginstal Gcc 4.7?

  1. Cara Menginstal P7Zip di RHEL 8 / CentOS 8

  2. Cara menginstal ntfs-3g di RHEL 8 / CentOS 8

  3. Cara Menginstal PHP-mbstring di RHEL 8 / CentOS 8

  1. Cara menginstal server Minecraft di RHEL 8 Linux

  2. Cara menginstal perangkat lunak di RHEL 8

  3. Cara Menginstal RHEL 8 di Mesin Virtual