Once it is completed, run the following command to compile the source code: make -j 4 configure -disable-multilib -enable-languages=c,c++ Next, start configuring the GCC build environment. Install bzip2 and run the ‘download_prerequisites’ script to download some prerequisites needed: yum -y install bzip2 Unpack the tar archive and change the current directory: tar zxf gcc-7.3.0.tar.gz Once the installation, you can the version of GCC: gcc -versionįirst, download the tarball of the GCC version you want to install: wget Run the following command to install GCC: yum -y install gcc GCC can be easily installed from the official CentOS repositories. First let’s start by ensuring your system is up-to-date. I will show you through the step by step install GCC Compiler on CentOS 7 server. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. This tutorial assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. In this tutorial we will learn How To Install GCC on CentOS 7 Step by Step. GCC is an official compiler of the GNU operation system but also it is a standard compiler on many Unix operating systems such as Linux. ![]() GCC or GNU Compiler Collection is released by the Free Software Foundation and as the name suggests, it is very useful collection of programming compilers such as C, C++, Objective-C, Objective-C++, Fortran, Java, Go.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |