Page 1 of 1

gnu c++ compiler

Posted: Tue Dec 01, 2009 4:39 pm
by briand1
Can someone help me with the following:

I'm trying to install the gnu c++ compiler but continue to receive the following message

brian@brian-laptop ~ $ apt-get install g++
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I was able to successfully install the C compiler as well as the gnu debugger however I'm having troubles with the c++ compiler

Thanks

Re: gnu c++ compiler

Posted: Tue Dec 01, 2009 5:34 pm
by rich_roast
briand1 wrote: brian@brian-laptop ~ $ apt-get install g++
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
What apt is pointing out here is that you need root privileges:

Code: Select all

sudo apt-get install g++