タグアーカイブ gcc

gccのインストール(sarge)

# apt-get install gcc
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  binutils cpp cpp-3.3 gcc-3.3
Suggested packages:
  binutils-doc cpp-doc manpages-dev autoconf automake libtool flex bison gdb gcc-doc
  gcc-3.3-doc
Recommended packages:
  libc-dev libc6-dev
The following NEW packages will be installed:
  binutils cpp cpp-3.3 gcc gcc-3.3
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 5516kB of archives.
After unpacking 15.3MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.debian.org sarge/main binutils 2.15-6 [2333kB]
Get:2 http://archive.debian.org sarge/main cpp-3.3 1:3.3.5-13 [1541kB]
Get:3 http://archive.debian.org sarge/main cpp 4:3.3.5-3 [29.6kB]
Get:4 http://archive.debian.org sarge/main gcc-3.3 1:3.3.5-13 [1608kB]
Get:5 http://archive.debian.org sarge/main gcc 4:3.3.5-3 [4914B]
Fetched 5516kB in 3m20s (27.6kB/s)
Selecting previously deselected package binutils.
(Reading database ... 9114 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.15-6_powerpc.deb) ...
Selecting previously deselected package cpp-3.3.
Unpacking cpp-3.3 (from .../cpp-3.3_1%3a3.3.5-13_powerpc.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a3.3.5-3_powerpc.deb) ...
Selecting previously deselected package gcc-3.3.
Unpacking gcc-3.3 (from .../gcc-3.3_1%3a3.3.5-13_powerpc.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a3.3.5-3_powerpc.deb) ...
Setting up binutils (2.15-6) ...

Setting up cpp-3.3 (3.3.5-13) ...
Setting up cpp (3.3.5-3) ...
Setting up gcc-3.3 (3.3.5-13) ...
Setting up gcc (3.3.5-3) ...

#
# apt-get install libc6-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  linux-kernel-headers
Suggested packages:
  glibc-doc manpages-dev
The following NEW packages will be installed:
  libc6-dev linux-kernel-headers
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 4464kB of archives.
After unpacking 16.9MB of additional disk space will be used.
Do you want to continue? [Y/n]

Get:1 http://archive.debian.org sarge/main linux-kernel-headers 2.5.999-test7-bk-17 [1399kB]
Get:2 http://archive.debian.org sarge/main libc6-dev 2.3.2.ds1-22sarge6 [3065kB]
Fetched 4464kB in 2m41s (27.6kB/s)
Selecting previously deselected package linux-kernel-headers.
(Reading database ... 9349 files and directories currently installed.)
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.5.999-test7-bk-17_powerpc.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.3.2.ds1-22sarge6_powerpc.deb) ...
Setting up linux-kernel-headers (2.5.999-test7-bk-17) ...
Setting up libc6-dev (2.3.2.ds1-22sarge6) ...
#

gccのインストール(Debian sarge)

apt-getでインストールしようとすると..

# apt-get install gcc
Reading Package Lists... Done
Building Dependency Tree... Done
gcc is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  gcc-3.3: Depends: binutils (>= 2.15-5) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

となったので、「apt-get -f install」を実行してみる。

# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  gcc gcc-3.3
0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
4 not fully installed or removed.
Need to get 0B of archives.
After unpacking 4264kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 9773 files and directories currently installed.)
Removing gcc ...
Removing gcc-3.3 ...
Setting up cpp-3.3 (3.3.5-13) ...
Setting up cpp (3.3.5-3) ...
# apt-get install gcc
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  binutils cpp cpp-4.3 gcc-4.3 gcc-4.3-base libc6 libgcc1 libgmp3c2 libgomp1
  libmpfr1ldbl locales
Suggested packages:
  binutils-doc cpp-doc gcc-4.3-locales gcc-multilib make manpages-dev autoconf
  automake1.9 libtool flex bison gdb gcc-doc gcc-4.3-multilib  libmudflap0-4.3-dev
  gcc-4.3-doc libgcc1-dbg libgomp1-dbg libmudflap0-dbg glibc-doc libc6-i686
Recommended packages:
  libc6-dev libc-dev
The following packages will be REMOVED:
  base-config
The following NEW packages will be installed:
  binutils cpp-4.3 gcc gcc-4.3 gcc-4.3-base libgmp3c2 libgomp1 libmpfr1ldbl
The following packages will be upgraded:
  cpp libc6 libgcc1 locales
4 upgraded, 8 newly installed, 1 to remove and 115 not upgraded.
Need to get 18.2MB of archives.
After unpacking 16.1MB of additional disk space will be used.
Do you want to continue? [Y/n] y