web-dev-qa-db-fra.com

Installer gcc à partir du DVD Kubuntu

J'ai du mal avec une installation de Kubuntu 12.04 qui n'a pas de connexion Internet. Afin de construire le pilote Ethernet, j'ai besoin de gcc. J'ai installé à partir du DVD et j'ai gcc-4.7-base installé mais qui ne fournit pas d'exécutable gcc? Dois-je simplement créer un lien symbolique? Comment dois-je installer gcc sinon?

Merci.

EDIT : Voici quelques tentatives d'installation de GCC. Le dépôt CD-ROM est activé dans /etc/apt/sources.list, et le DVD complet se trouve dans le lecteur.

shelly@Neptune:~$ Sudo apt-get install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gcc-4.6 libc-dev-bin libc6-dev libgomp1 libquadmath0 linux-libc-dev manpages-dev
Suggested packages:
  gcc-multilib autoconf automake1.9 libtool flex bison gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc gcc-4.6-locales libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold glibc-doc
The following NEW packages will be installed:
  gcc gcc-4.6 libc-dev-bin libc6-dev libgomp1 libquadmath0 linux-libc-dev manpages-dev
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/13.2 MB of archives.
After this operation, 33.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libquadmath0 AMD64 4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main gcc-4.6 AMD64 4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main gcc AMD64 4:4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libc-dev-bin AMD64 2.15-0ubuntu10
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main linux-libc-dev AMD64 3.2.0-23.36
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libc6-dev AMD64 2.15-0ubuntu10
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main manpages-dev all 3.35-0.1ubuntu1
  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-4.6/libquadmath0_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-4.6/gcc-4.6_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-defaults/gcc_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/e/eglibc/libc-dev-bin_2.15-0ubuntu10_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/l/linux/linux-libc-dev_3.2.0-23.36_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/e/eglibc/libc6-dev_2.15-0ubuntu10_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/m/manpages/manpages-dev_3.35-0.1ubuntu1_all.deb  File not found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
shelly@Neptune:~$ 
shelly@Neptune:~$ 
shelly@Neptune:~$ Sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6 libalgorithm-diff-Perl libalgorithm-diff-xs-Perl libalgorithm-merge-Perl libc-dev-bin libc6-dev libdpkg-Perl libgomp1 libquadmath0 libstdc++6-4.6-dev linux-libc-dev manpages-dev patch
Suggested packages:
  debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib autoconf automake1.9 libtool flex bison gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-locales libgcc1-dbg libgomp1-dbg libquadmath0-dbg
  libmudflap0-dbg binutils-gold glibc-doc libstdc++6-4.6-doc diffutils-doc
The following NEW packages will be installed:
  build-essential dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6 libalgorithm-diff-Perl libalgorithm-diff-xs-Perl libalgorithm-merge-Perl libc-dev-bin libc6-dev libdpkg-Perl libgomp1 libquadmath0 libstdc++6-4.6-dev linux-libc-dev
  manpages-dev patch
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/22.8 MB of archives.
After this operation, 62.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libquadmath0 AMD64 4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libc-dev-bin AMD64 2.15-0ubuntu10
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main linux-libc-dev AMD64 3.2.0-23.36
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libc6-dev AMD64 2.15-0ubuntu10
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main gcc-4.6 AMD64 4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main gcc AMD64 4:4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libstdc++6-4.6-dev AMD64 4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main g++-4.6 AMD64 4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main g++ AMD64 4:4.6.3-1ubuntu5
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libdpkg-Perl all 1.16.1.2ubuntu7
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main patch AMD64 2.6.1-3
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main dpkg-dev all 1.16.1.2ubuntu7
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main build-essential AMD64 11.5ubuntu2
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main fakeroot AMD64 1.18.2-1
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libalgorithm-diff-Perl all 1.19.02-2
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libalgorithm-diff-xs-Perl AMD64 0.04-2build2
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main libalgorithm-merge-Perl all 0.08-2
  File not found
Err cdrom://Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)/ precise/main manpages-dev all 3.35-0.1ubuntu1
  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-4.6/libquadmath0_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/e/eglibc/libc-dev-bin_2.15-0ubuntu10_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/l/linux/linux-libc-dev_3.2.0-23.36_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/e/eglibc/libc6-dev_2.15-0ubuntu10_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-4.6/gcc-4.6_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-defaults/gcc_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-4.6/libstdc++6-4.6-dev_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-4.6/g++-4.6_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/g/gcc-defaults/g++_4.6.3-1ubuntu5_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/d/dpkg/libdpkg-Perl_1.16.1.2ubuntu7_all.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/p/patch/patch_2.6.1-3_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/d/dpkg/dpkg-dev_1.16.1.2ubuntu7_all.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/b/build-essential/build-essential_11.5ubuntu2_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/f/fakeroot/fakeroot_1.18.2-1_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/liba/libalgorithm-diff-Perl/libalgorithm-diff-Perl_1.19.02-2_all.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/liba/libalgorithm-diff-xs-Perl/libalgorithm-diff-xs-Perl_0.04-2build2_AMD64.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/liba/libalgorithm-merge-Perl/libalgorithm-merge-Perl_0.08-2_all.deb  File not found
Failed to fetch cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release AMD64 (20120423)]/pool/main/m/manpages/manpages-dev_3.35-0.1ubuntu1_all.deb  File not found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
shelly@Neptune:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda5       15570572 2675916  12113448  19% /
udev              829680       4    829676   1% /dev
tmpfs             336752     816    335936   1% /run
none                5120       0      5120   0% /run/lock
none              841872      80    841792   1% /run/shm
/dev/sda6      454024280 6869848 424428648   2% /home
/dev/sr0         3401516 3401516         0 100% /media/apt
shelly@Neptune:~$ ls /media/
apt/        .directory  .hidden     
shelly@Neptune:~$ ls /media/apt/
autorun.inf  boot  casper  cdromupgrade  dists  doc  efi  install  isolinux  md5sum.txt  pics  pool  preseed  README.diskdefines  ubuntu  wubi.exe
2
dotancohen

gcc-4.7-base contient uniquement les fichiers communs à toutes les langues et bibliothèques disponibles dans gcc. Il ne contient pas le compilateur gcc lui-même. Si vous souhaitez installer gcc à partir du CD, insérez-le et exécutez la commande Sudo apt-get install build-essential, cela vous donnera gcc et g++ (Compilateur C++).

1
Samik