removido
(usa Nenhuma)
Enviado em 27/09/2013 - 20:28h
edps escreveu:
huuum... estranho, mas tente ai:
# apt-get update
# apt-get install build-essential dkms gcc cpp g++ make
* supondo que esse server seja >= ao Squeeze, se for di Lenny para tras tera que acertar o sources.list para o archive.debian.
difícil acreditar! acho (mas não tenho certeza absoluta) que até no Debian NetInstall ao menos o gcc e o make vem por padrão, o resto que eu citei de fato não vem.
Mas supondo que não venha de fato, veja o que é necessário para instalar o build-essential:
$ apt-rdepends build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential
Depends: dpkg-dev (>= 1.13.5)
Depends: g++ (>= 4:4.4.3)
Depends: gcc (>= 4:4.4.3)
Depends: libc-dev
Depends: libc6-dev
Depends: make
dpkg-dev
Depends: base-files (>= 5.0.0)
Depends: binutils
Depends: bzip2
Depends: libdpkg-perl (= 1.16.10)
Depends: make
Depends: patch
Depends: xz-utils
base-files
PreDepends: awk
awk
binutils
Depends: libc6 (>= 2.11)
Depends: libgcc1 (>= 1:4.1.1)
Depends: libstdc++6 (>= 4.6)
Depends: zlib1g (>= 1:1.2.0)
libc6
Depends: libc-bin (= 2.13-38)
Depends: libgcc1
libc-bin
libgcc1
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.2.4)
PreDepends: multiarch-support
gcc-4.7-base
multiarch-support
Depends: libc6 (>= 2.13-5)
libstdc++6
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.11)
Depends: libgcc1 (>= 1:4.1.1)
PreDepends: multiarch-support
zlib1g
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
bzip2
Depends: libbz2-1.0 (= 1.0.6-4)
Depends: libc6 (>= 2.4)
libbz2-1.0
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
libdpkg-perl
Depends: dpkg (>= 1.15.8)
Depends: libtimedate-perl
Depends: perl
dpkg
PreDepends: libbz2-1.0
PreDepends: libc6 (>= 2.11)
PreDepends: liblzma5 (>= 5.1.1alpha+20120614)
PreDepends: libselinux1 (>= 1.32)
PreDepends: tar (>= 1.23)
PreDepends: zlib1g (>= 1:1.1.4)
liblzma5
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
libselinux1
Depends: libc6 (>= 2.8)
PreDepends: multiarch-support
tar
PreDepends: libc6 (>= 2.8)
libtimedate-perl
Depends: perl
perl
Depends: libbz2-1.0
Depends: libc6 (>= 2.11)
Depends: libdb5.1
Depends: libgdbm3 (>= 1.8.3)
Depends: perl-base (= 5.14.2-21)
Depends: perl-modules (>= 5.14.2-21)
Depends: zlib1g (>= 1:1.2.3.3)
libdb5.1
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
libgdbm3
Depends: dpkg (>= 1.15.4)
Depends: install-info
Depends: libc6 (>= 2.1.3)
PreDepends: multiarch-support
install-info
Depends: libc6 (>= 2.3.4)
perl-base
PreDepends: dpkg (>= 1.14.20)
PreDepends: libc6 (>= 2.11)
perl-modules
Depends: libclass-isa-perl
Depends: libswitch-perl
Depends: perl (>= 5.14.2-1)
libclass-isa-perl
libswitch-perl
Depends: perl
Depends: perl-modules
make
Depends: libc6 (>= 2.3)
patch
Depends: libc6 (>= 2.3)
xz-utils
Depends: libc6 (>= 2.7)
Depends: liblzma5 (>= 5.1.1alpha+20120614)
g++
Depends: cpp (>= 4:4.7.2-1)
Depends: g++-4.7 (>= 4.7.2-1~)
Depends: gcc (>= 4:4.7.2-1)
Depends: gcc-4.7 (>= 4.7.2-1~)
cpp
Depends: cpp-4.7 (>= 4.7.2-1~)
cpp-4.7
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.11)
Depends: libgmp10
Depends: libmpc2
Depends: libmpfr4 (>= 3.1.0)
Depends: zlib1g (>= 1:1.1.4)
libgmp10
Depends: libc6 (>= 2.7)
PreDepends: multiarch-support
libmpc2
Depends: libc6 (>= 2.3.4)
Depends: libgmp10
Depends: libmpfr4 (>= 3.1.0)
PreDepends: multiarch-support
libmpfr4
Depends: libc6 (>= 2.3)
Depends: libgmp10
PreDepends: multiarch-support
g++-4.7
Depends: gcc-4.7 (= 4.7.2-5)
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.11)
Depends: libgmp10
Depends: libmpc2
Depends: libmpfr4 (>= 3.1.0)
Depends: libstdc++6-4.7-dev (= 4.7.2-5)
Depends: zlib1g (>= 1:1.1.4)
gcc-4.7
Depends: binutils (>= 2.21.1)
Depends: cpp-4.7 (= 4.7.2-5)
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.11)
Depends: libgcc1 (>= 1:4.7.2-5)
Depends: libgmp10
Depends: libgomp1 (>= 4.7.2-5)
Depends: libitm1 (>= 4.7.2-5)
Depends: libmpc2
Depends: libmpfr4 (>= 3.1.0)
Depends: libquadmath0 (>= 4.7.2-5)
Depends: zlib1g (>= 1:1.1.4)
libgomp1
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.6)
PreDepends: multiarch-support
libitm1
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.3.6-6~)
Depends: libgcc1 (>= 1:4.1.1)
PreDepends: multiarch-support
libquadmath0
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6 (>= 2.10)
PreDepends: multiarch-support
libstdc++6-4.7-dev
Depends: g++-4.7 (= 4.7.2-5)
Depends: gcc-4.7-base (= 4.7.2-5)
Depends: libc6-dev (>= 2.13-5)
Depends: libstdc++6 (>= 4.7.2-5)
libc6-dev
Depends: libc-dev-bin (= 2.13-38)
Depends: libc6 (= 2.13-38)
Depends: linux-libc-dev
libc-dev-bin
Depends: libc6 (<< 2.14)
linux-libc-dev
gcc
Depends: cpp (>= 4:4.7.2-1)
Depends: gcc-4.7 (>= 4.7.2-1~)
libc-dev
Logo de cara vemos que para instalar o build-essential é necessário a instalação das dependências:
dpkg-dev (>= 1.13.5)
g++ (>= 4:4.4.3)
gcc (>= 4:4.4.3)
libc-dev
libc6-dev
make
E em seguida as dependências das dependências! rs, ou seja: é uma
[*****] usar sistemas incompletos sem acesso à net.
Uma possível solução (e trabalhosa) seria se ao menos conseguisse rodar um apt-get update para atualizar as listas de pacotes e em seguida tentar isso (exemplo prático):
$ apt-get download build-essential dkms gcc cpp g++ make
Obter:1 A obter build-essential 11.5 [7.190 B]
Obter:2 A obter dkms 2.2.0.3-1.2 [77,4 kB]
Obter:3 A obter gcc 4:4.7.2-1 [5.062 B]
Obter:4 A obter cpp 4:4.7.2-1 [16,6 kB]
Obter:5 A obter g++ 4:4.7.2-1 [1.372 B]
Obter:6 A obter make 3.81-8.2 [398 kB]
Baixados 421 kB em 8s (50,5 kB/s)
No seu caso provavelmente daria erro, mas bastaria você copiar os pacotes citados e os novos pacotes vistos na seção (NOVOS PACOTES A SEREM INSTALADOS), nesse caso ficaria assim:
$ apt-get download build-essential dkms gcc cpp g++ make E OS NOVOS PACOTES
Devido ao erro, você teria que copiar os endereços de cada pacote individualmente, salvá-los num arquivo qualquer e numa máquina com acesso a net, baixar os pacotes (com o wget ou outro download manager) e de volta a máquina alvo instalá-los com:
# dpkg -i *.deb
# apt-get -f install
É osso!