GCC 4.8.5 Installation

Source: Internet
Author: User

In the use of Dr. Le Zhang's Maximum Entropy Model toolkit (Maximum Entropy Modeling Toolkit for Python and C + +) and conditional random-Airport Classic Toolkit crf++ (crf++: Yet another CRF Toolkit) Word, the Discovery Toolkit does not install properly, from the reported error speculation is that the GCC version is lower, the toolkit was released in 2011, presumably using a newer c++11 standard. We know that the C++11 standard starts to support a variety of new features. I test the Ubuntu10.04 default is to use gcc4.4.3, and only gcc4.7 start to support C++11, use the following methods to upgrade GCC and g++ under Ubuntu 10.04:

1. Update the GCC and g++ versions of Ubuntu and do the following in turn:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
sudo apt-get install g++-4.7

2. I install the process to indicate that there is a dependency on the file is not installed, Gcc-4.6-base, first install the software:
sudo apt-get install Gcc-4.6-base

3. Upgrade complete using GCC--version

(1) If there are multiple packages containing GCC, let's choose an installation. However, the GCC re-display has been installed. After entering the/usr/bin/directory, gcc-4.7 and g++-4.7 were found to exist, but their links to GCC and g++ were not found (in fact, the GCC and g++ we normally use are symbolic links to specific versions such as gcc-4.7 and g++-4.7), So rebuilding the symbolic link can
Cd/usr/bin
sudo ln-s gcc-4.7 gcc
sudo ln-s g++-4.7 g++
(2) If the display version is still 4.4.3 (or your old version number), and did not set the 4.7 version as the default GCC link file, enter/usr/bin/to remove the GCC file, establish a link to gcc-4.7 (g++ similar):
Cd/usr/bin
sudo rm gcc
sudo ln-s gcc-4.7 g++
sudo rm g++
sudo ln-s g++-4.7 g++

4. Now compile and execute the routine, ok! The compilation passed!

GCC 4.8.5 Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.