Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.6 source compiler GCC upgrade to 4.8.2     - How to update the ISPConfig 3 SSL Certificates (Server)

- Kubernetes Cluster Setup problems encountered and solutions (Server)

- Linux, modify the hostname (Linux)

- Oracle Standby Redo Log experiment (Database)

- Mass data storage application of MongoDB database (Database)

- Examples of Exploration Class File (Programming)

- Linux tar compressed exclude a folder (Linux)

- Construction Spark source and application development environment (Server)

- Linux system security audit tools scan nessus installation tutorial (Linux)

- MySQL configuration file my.cnf increase the log file parameter error (Database)

- Vim (Linux)

- Ubuntu 14.10 / 14.04 / 12.04 virtual users to install the printing software Boomaga (Linux)

- Upload the project to GitHub, synchronous remote repository Github (Linux)

- Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1 (Server)

- Oracle ORA-01089 failure analysis (Database)

- Diagnose and resolve the SSH connection slow (Linux)

- Ubuntu users to install household financial management tools HomeBank 5.0.0 (Linux)

- Vagrant Getting Start (Linux)

- Zabbix configure DataGuard monitoring (Database)

- CentOS environment prepared crontab scheduled tasks (Linux)

  CentOS 6.6 source compiler GCC upgrade to 4.8.2
  Add Date : 2017-01-08      
  Upgrade premise

Source compiler requires at least one of the available gcc compiler.

Yum can be used automatically or manually download the rpm package installation.

By yum can see at least the following packages, it is possible to search many sites rpm package download the appropriate rpm package, but wants to release, this version is yum search out for 4.4.7. So what version of gcc versions correspond to what to look for dependencies. rpm site will now explain what this package depends on the package, which is dependent on the package, very convenient, but it is quite time-consuming to find.

CentOS 6.6 to compile and install GCC4.8.2

Download Source Package gcc4.8.2

1 curl -O ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz;
First, you need to download gcc installed depends mpc, mpfr, gmp package, compiled with gcc comes with a script to download and help us to establish good links gcc compiler, you can go to download dependencies themselves.

1 tar zxf gcc-4.8.2.tar.gz
2 cd gcc-4.8.2
3 ./contrib/download_prerequisites
Download_prerequisites open above you can see, it is first downloaded the three packages, so when the script was found stuck in a place to download the reason may be inaccessible, and this is the need to find a new download address, the method is very simple, google documents you can find a lot of names.

Start compiling gcc

mkdir gcc-build-4.8.2
cd gcc-build-4.8.2
../configure -enable-checking = release -enable-languages = c, c ++ -disable-multilib
make install
After the installation is complete, if you find gcc -v version does not change, you then perform the following startup script.

1 source / etc / profile
2 source ~ / .bash_profile
Problems after installing

Although knock gcc g ++ c ++, etc. are updated to the 4.8.2 version, but there are actually inside the computer after the installation of at least two versions of gcc

whereis or where you can see there are multiple gcc files, which you can see the command gcc command corresponds usr / local / bin / gcc, gcc and the original executable file in / usr / bin / gcc, execute / usr / bin / gcc -v can see the version of gcc or 4.4, although this is not a problem, but some shell scripts or write directly to the Makefile gcc absolute path, it is likely to use the old version of gcc to compile, resulting in failure . We still need the original gcc overwritten. Best approach is to start to think, usr / bin / gcc soft link to usr / local / bin / gcc, for g ++, c ++, also made a similar deal with

This approach seems to solve the problem, but the overall feel not fly until recently compiled apache thrift found still not right. So consider when installing gcc can indicate whether the installation path.

carried out

1 ./configure --help
We can see that there is indeed such options

So only you need to bring in when configure --prefix = / usr gcc compiler can be installed under usr

In CentOS 6.4 to compile install GCC 4.8.1 + GDB 7.6.1 + Eclipse installed in CentOS 6.4 to compile GCC 4.8.1 + GDB 7.6.1 + Eclipse
- Haproxy multi-domain certificate HTTPS (Server)
- Relationship between Linux permissions with the command (Linux)
- Initialization and starting process of Linux (Linux)
- JavaScript function closures Quick Start (Programming)
- 10 Regulation of painless SQL Schema (Database)
- MongoDB 2.6 deployment replica set + partitions (Database)
- VirtualBox - Linux system virtual machine shared folders (Linux)
- Use chattr and lsattr command to manage linux files and directory attributes (Linux)
- ACL permissions Linux command (Linux)
- CentOS installation of the ftp (Linux)
- Linux installed Cisco Packet Tracer (Linux)
- How to use tmpfs in RHEL / CentOS 7.0 (Linux)
- Nginx load balancing configuration (TCP proxy) (Server)
- Getting Started with Linux system to learn: how to check memory usage of Linux (Linux)
- How to build Mono 3.4.0 / 3.4.1 on Windows (Linux)
- ARM Linux system call (Linux)
- CentOS yum source deployment (Linux)
- Linux create and delete user step (Linux)
- Linux Security Setup Guide (Linux)
- Effective Java - lazy initialization (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.