There is NO warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This is free software see the source for copying conditions. gcc -version gcc (GCC) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. make -j$(nproc)įinally install ,default install will be at /usr/local sudo make installįinish with verification. Be careful this step takes time ,run it in background if possible. Start the make,this may take a while.Adjust -j number to available cpu cores. gcc-8.2.0/configure -enable-languages=c,c++ -disable-multilibīe sure that you have enough free diskspace in /tmp. Give configuration options more details can be found here. In future the release numbers will differ but overall steps should be same wget Ĭreate a separate build folder for our work, we should not mess up with the source code mkdir gcc-8.2.0-build cd gcc-8.2.0-build Choose different location based on your geo location. Next we will download the tar file from gcc mirror gcc-8.2.0.tar.gz from official mirror page and. Looks like the gcc is really old version gcc -version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) Copyright (C) 2015 Free Software Foundation, Inc. Now that the update is done lets install the dependencies needed for the build.This is important you don’t want to wait to find one of the build dependencies were missing after 2hr’s of build sudo yum -y install bzip2 wget gcc gcc-c++ gmp-devel mpfr-devel libmpc-devel make When you have to upgrade gcc to build some application.įollowing are the steps documented for upgrading gcc on centos 7
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |