

Update-alternatives: error: no alternatives for gcc. Ramir :~$ sudo update-alternatives –remove-all gcc They have been ignored, or old ones used instead. GPG error: ‘’ precise Release: The following signatures were invalid: NODATA 1 NODATA 2 The repository is not updated and the previous index files will be used. W: A error occurred during the signature verification.
#Smartgit ubuntu 12.04 install#
:~$ sudo apt-get update sudo apt-get install gcc-4.8 g++-4.8 I want to post here some error messages I received while the installation process of 4.8.1 version:


It is like Ubuntu does not realize that now gcc and g++ are in version 4.8.1-2. However, the same message above appears again. GNU Standard C++ Library v3 (development files) libstdc++6.4.6-dev GCC, the GNU Compiler Collection (base package) gcc-4.6-base “Other udpates (LP-PPA-ubuntu-toolchain-r-test)”. After I installed the gcc and g++ version 4.8.1-2 I saw the Update Manager telling me that there were: Referring to my previous message, I want to signal some bizarre things that eventhough are not giving errors in the compilation or execution of C, C++ programs it is convenient to have an explanation because they are annoying. Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This is free software see the source for copying conditions. Check out by: gcc -versionĬopyright (C) 2013 Free Software Foundation, Inc. Now you have the gcc 4.8 with c++11 complete feature in your system. Sudo update-alternatives -install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 Sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 When it opens, run below commands to add the ppa: sudo add-apt-repository ppa:ubuntu-toolchain-r/testĢ.) Then install gcc 4.8 and g++ 4.8: sudo apt-get update sudo apt-get install gcc-4.8 g++-4.8ģ.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version. In this tutorial, you can follow below steps to upgrade gcc version in your system.ġ.) Press Ctrl+Alt+T on your keyboard to open terminal. The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users.
#Smartgit ubuntu 12.04 how to#
Want GCC 4.8 with c++11 complete feature? Well here’s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA.
