P
P
petan4ik2016-01-21 23:11:42
linux
petan4ik, 2016-01-21 23:11:42

How to install gcc on debian?

Can't install gcc compiler on debian 8.0
Tried with apt-get .
Mistake:

Package gcc is not avaible, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only avaible from another source
E: Package 'gcc' has no installation candidate

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vlad Zhivotnev, 2016-01-22
@inkvizitor68sl

gcc-4.8-base:amd64
gcc-4.9-base:amd64
Depending on which of them you need (any -dev will be needed for building)
In general, apt-cache search gcc helps a lot in such cases.

V
Vladimir Martyanov, 2016-01-21
@vilgeforce

sudo apt-get install gcc until you're blue in the face doesn't work, since you don't specify how exactly it doesn't work.

A
Andrey Burov, 2016-01-22
@BuriK666

install build-essential

M
MoorMan, 2016-01-21
@MoorMan

There may be troubles with dependencies too)) You can send the error text to the studio))

S
Sergey Karbivnichy, 2016-01-21
@hottabxp

Try:

apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
apt-get update
apt-get upgrade

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question