{"id":2362,"date":"2012-03-17T18:29:31","date_gmt":"2012-03-17T10:29:31","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2362"},"modified":"2023-04-28T09:49:39","modified_gmt":"2023-04-28T09:49:39","slug":"how-to-install-gcc-on-linux-fedora-16-server","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-gcc-on-linux-fedora-16-server\/","title":{"rendered":"How to Install GCC on Linux Fedora 16 Server"},"content":{"rendered":"<p>GCC is a powerful compiler used for compiling code written in various programming languages. It is essential for many development tasks on Linux servers. In this guide, we will show you how to install GCC on a Linux Fedora 16 server.<\/p>\n<h2>Step 1: Update the system<\/h2>\n<p>Before installing GCC, it is recommended to update the system to ensure that you have the latest packages and security updates. You can do this by running the following command as root:<\/p>\n<pre>\r\nyum update\r\n<\/pre>\n<p>This will update the system packages.<\/p>\n<h2>Step 2: Install GCC<\/h2>\n<p>After updating the system, you can install GCC by running the following command as root:<\/p>\n<pre>\r\nyum install gcc\r\n<\/pre>\n<p>This will download and install GCC and its dependencies.<\/p>\n<pre>\r\n[root@geek ~]# yum install gcc -y\r\nFedora16-Repository                                                                    | 3.7 kB     00:00 ...\r\nFedora16-Repository\/primary_db                                                         | 2.3 MB     00:00 ...\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package gcc.i686 0:4.6.2-1.fc16 will be installed\r\n--> Processing Dependency: cpp = 4.6.2-1.fc16 for package: gcc-4.6.2-1.fc16.i686\r\n--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.6.2-1.fc16.i686\r\n--> Processing Dependency: binutils >= 2.20.51.0.2-12 for package: gcc-4.6.2-1.fc16.i686\r\n--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.6.2-1.fc16.i686\r\n--> Processing Dependency: libmpfr.so.4 for package: gcc-4.6.2-1.fc16.i686\r\n--> Processing Dependency: libmpc.so.2 for package: gcc-4.6.2-1.fc16.i686\r\n--> Running transaction check\r\n---> Package binutils.i686 0:2.21.53.0.1-2.fc16 will be installed\r\n---> Package cloog-ppl.i686 0:0.15.9-3.fc15 will be installed\r\n--> Processing Dependency: libppl.so.9 for package: cloog-ppl-0.15.9-3.fc15.i686\r\n--> Processing Dependency: libppl_c.so.4 for package: cloog-ppl-0.15.9-3.fc15.i686\r\n---> Package cpp.i686 0:4.6.2-1.fc16 will be installed\r\n---> Package glibc-devel.i686 0:2.14.90-14 will be installed\r\n--> Processing Dependency: glibc-headers = 2.14.90-14 for package: glibc-devel-2.14.90-14.i686\r\n--> Processing Dependency: glibc-headers for package: glibc-devel-2.14.90-14.i686\r\n---> Package libmpc.i686 0:0.9-1.fc16 will be installed\r\n---> Package mpfr.i686 0:3.0.0-4.fc15 will be installed\r\n--> Running transaction check\r\n---> Package glibc-headers.i686 0:2.14.90-14 will be installed\r\n--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.14.90-14.i686\r\n--> Processing Dependency: kernel-headers for package: glibc-headers-2.14.90-14.i686\r\n---> Package ppl.i686 0:0.11.2-3.fc16 will be installed\r\n--> Processing Dependency: libpwl.so.5 for package: ppl-0.11.2-3.fc16.i686\r\n--> Running transaction check\r\n---> Package kernel-headers.i686 0:3.1.0-7.fc16 will be installed\r\n---> Package ppl-pwl.i686 0:0.11.2-3.fc16 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n==============================================================================================================\r\n Package                   Arch            Version                       Repository                      Size\r\n==============================================================================================================\r\nInstalling:\r\n gcc                       i686            4.6.2-1.fc16                  Fedora16-Repository             11 M\r\nInstalling for dependencies:\r\n binutils                  i686            2.21.53.0.1-2.fc16            Fedora16-Repository            3.5 M\r\n cloog-ppl                 i686            0.15.9-3.fc15                 Fedora16-Repository             93 k\r\n cpp                       i686            4.6.2-1.fc16                  Fedora16-Repository            3.9 M\r\n glibc-devel               i686            2.14.90-14                    Fedora16-Repository            983 k\r\n glibc-headers             i686            2.14.90-14                    Fedora16-Repository            612 k\r\n kernel-headers            i686            3.1.0-7.fc16                  Fedora16-Repository            768 k\r\n libmpc                    i686            0.9-1.fc16                    Fedora16-Repository             49 k\r\n mpfr                      i686            3.0.0-4.fc15                  Fedora16-Repository            167 k\r\n ppl                       i686            0.11.2-3.fc16                 Fedora16-Repository            1.4 M\r\n ppl-pwl                   i686            0.11.2-3.fc16                 Fedora16-Repository             35 k\r\n\r\nTransaction Summary\r\n==============================================================================================================\r\nInstall      11 Packages\r\n\r\nTotal download size: 23 M\r\nInstalled size: 61 M\r\nDownloading Packages:\r\n--------------------------------------------------------------------------------------------------------------\r\nTotal                                                                          20 MB\/s |  23 MB     00:01\r\nRunning Transaction Check\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing : kernel-headers-3.1.0-7.fc16.i686                                                          1\/11\r\n  Installing : mpfr-3.0.0-4.fc15.i686                                                                    2\/11\r\n  Installing : glibc-headers-2.14.90-14.i686                                                             3\/11\r\n  Installing : libmpc-0.9-1.fc16.i686                                                                    4\/11\r\n  Installing : glibc-devel-2.14.90-14.i686                                                               5\/11\r\n  Installing : cpp-4.6.2-1.fc16.i686                                                                     6\/11\r\n  Installing : ppl-pwl-0.11.2-3.fc16.i686                                                                7\/11\r\n  Installing : ppl-0.11.2-3.fc16.i686                                                                    8\/11\r\n  Installing : cloog-ppl-0.15.9-3.fc15.i686                                                              9\/11\r\n  Installing : binutils-2.21.53.0.1-2.fc16.i686                                                         10\/11\r\n  Installing : gcc-4.6.2-1.fc16.i686                                                                    11\/11\r\n\r\nInstalled:\r\n  gcc.i686 0:4.6.2-1.fc16\r\n\r\nDependency Installed:\r\n  binutils.i686 0:2.21.53.0.1-2.fc16   cloog-ppl.i686 0:0.15.9-3.fc15    cpp.i686 0:4.6.2-1.fc16\r\n  glibc-devel.i686 0:2.14.90-14        glibc-headers.i686 0:2.14.90-14   kernel-headers.i686 0:3.1.0-7.fc16\r\n  libmpc.i686 0:0.9-1.fc16             mpfr.i686 0:3.0.0-4.fc15          ppl.i686 0:0.11.2-3.fc16\r\n  ppl-pwl.i686 0:0.11.2-3.fc16\r\n\r\nComplete!\r\n<\/pre>\n<h2>Step 3: Verify GCC installation<\/h2>\n<p>After installing GCC, you can verify that it is installed correctly by running the following command:<\/p>\n<pre>\r\ngcc --version\r\n<\/pre>\n<p>This will display the GCC version and other information about the GCC installation.<\/p>\n<h2>Step 4: Install GCC documentation<\/h2>\n<p>If you want to access the GCC documentation, you can install it by running the following command as root:<\/p>\n<pre>\r\nyum install gcc-doc\r\n<\/pre>\n<p>This will install the GCC documentation in \/usr\/share\/doc\/gcc-<version>\/ directory.<\/p>\n<h2>Step 5: Install GCC C++ support<\/h2>\n<p>If you need to compile C++ code, you also need to install the GCC C++ support. You can do this by running the following command as root:<\/p>\n<pre>\r\nyum install gcc-c++\r\n<\/pre>\n<p>This will install the GCC C++ support and its dependencies.<\/p>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">yum update<\/span> &#8211; updates the system packages<\/li>\n<li><span class=\"fw-bold\">yum install<\/span> &#8211; installs packages<\/li>\n<li><span class=\"fw-bold\">gcc &#8211;version<\/span> &#8211; displays GCC version information<\/li>\n<li><span class=\"fw-bold\">yum install gcc-doc<\/span> &#8211; installs GCC documentation<\/li>\n<li><span class=\"fw-bold\">yum install gcc-c++<\/span> &#8211; installs GCC C++ support<\/li>\n<\/ul>\n<h2>Conclusion:<\/h2>\n<p>In this guide, we have shown you how to install GCC on a Linux Fedora 16 server. By installing GCC, you can compile code written in various programming languages. Remember to update the system before installing GCC and to verify the GCC installation after installation. Additionally, if you need to compile C++ code, you also need to install the GCC C++ support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GCC is a powerful compiler used for compiling code written in various programming languages. It is essential for many development tasks on Linux servers. In this guide, we will show&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2351,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2057],"tags":[1370,1371,1536,1546],"class_list":["post-2362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","tag-fedora","tag-fedora-16","tag-linux","tag-linux-utilities"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2362"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2362\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2351"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}