My Debian 7 armel embedded system currently has g++ 4.6, and I'd like to upgrade to g++ 4.9 to use new C++11 features. How do I do that?
My current sources.list contents is:
deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main deb http://ftp.us.debian.org/debian wheezy main non-free deb-src http://ftp.us.debian.org/debian wheezy main non-free
A simple apt-get install of the package does not work:
root@arm:~# apt-get install g++-4.9 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package g++-4.9 E: Couldn't find any package by regex 'g++-4.9'
sudo apt-get install g++-4.9
? – The Paramagnetic Croissantjessie
for that. – Marc Glissedeb http://http.us.debian.org/debian/ testing contrib main
(you could add thenon-free
subbranch as well, I'm pretty sure this isn't needed for gcc though). – user1795160