How to Install C++11 (g++-4.7)

Discussion in 'Linux Ubuntu' started by asvaldr, May 6, 2014.

  1. asvaldr

    asvaldr New Member

    Joined:
    Oct 18, 2013
    Messages:
    24
    Likes Received:
    0
    Hi Guys,

    Apparently simple stuff tripping me up.
    I want c++11 compiler; which is g++ 4.7.

    1. I try
    Code:
    sudo apt-get install g++-4.7
    Unable to locate package........

    2. Google commonly says
    Code:
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    "add-apt-repository: command not found" ....... wtf
    Apparently a missing repository.

    3.I try to use synaptic....its not in the list.

    4. I watch the youtube udoo package tutorial.... in synaptic the option page to enable more repostiories is not the same......... Its a wierd table that doesn't make sense to me.

    i give up please help?
     
  2. nicola

    nicola Member

    Joined:
    Apr 23, 2014
    Messages:
    45
    Likes Received:
    0
    I start by saying that i don't know how safe is to mix an external ppa, especially if you want to install important system libraries and tools.

    Testing the images provided in the download section of udoo.org i found the debian have newer compilers. If my notes are accurate, debian 1.0 have gcc 4.7 and debian version 1.1 have gcc 4.8. In version debian 1.1 i found some problems with conflicting versions, i don't remember exactly the cause. Maybe i was trying to install a g++4.8 that was not available. If you want to try the debian armhf 1.0 it's available from sourceforge: http://sourceforge.net/projects/udooboard/files/

    If you still want to manually install the ppa i found this guide: https://help.launchpad.net/Packaging/PP ... tu_systems
     

Share This Page