2

I installed Ubuntu 12.04 in my notebook and I use C++. I want to use C++11, so I want to upgrade my gcc to gcc-4.7. I ran these commands:

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  

But when I ran sudo apt-get install gcc-4.7, it can find gcc-4.7-base but not gcc-4.7. And when I ran sudo apt-get install g++-4.7, it could not find anything.

Today, I wanted to install bumblebee so I started to run these commands:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
sudo reboot

But when I ran sudo apt-get install bumblebee bumblebee-nvidia, it told me the packages couldn't be found.

I used the Ubuntu 12.04 methods described here and here.

What can I do?

girlkoo
  • 21

1 Answers1

0

Can you please try this

sudo apt-get install build-essential

thefourtheye
  • 4,922
  • 2
  • 26
  • 32