Saturday, 7 February 2015

How to compile cpp programes topic






Hi..

Sorry for this insane questions, but i searched a lot in google but got nothing.

I have ubuntu-14.04.1-desktop-amd64 installed on my system, but i don't know why g++ compiler is not present.
I have tried different versions, like ubuntu 12.04, fedora, opensuse... but none of them have g++ compiler.


Code:


priyesh@ubuntu:~$ g++
The program 'g++' is currently not installed. You can install it by typing:
sudo apt-get install g++



Code:


priyesh@ubuntu:~$ sudo apt-get install g++
[sudo] password for priyesh:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package g++


I have .deb g++ file, is there any way to install from .deb file (offline).

Thanks






No comments:

Post a Comment