Step 3Get G++
Obtain G++:
This step uses the terminal, use the previously mentioned method to get one up.
First you need to become a super user on your Console.
Type:
->su
Hit 'Enter'
-> nano /etc/apt/sources.list
now when this file opens you will need to add the following line
deb ftp://ftp.us.debian.org/debian stable main contrib non-free
(This is if you are in the United States)
Then type: 'Ctrl' + 'X'
Hit 'Enter'
Then: 'Y'
Next, hit 'Enter' to close what you were just working on and get back to your command line
Back on the command line
Type:
->apt-get update
after that finishes you need to enter:
-> apt-get install build-essential
Make sure to put a capital Y for yes when the console asks you if you want to continue.
this will install the GCC and G++ compilers needed to program in C or C++
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|














































