在 Fedora 上安装 GCC 时出错

在 Fedora 上安装 GCC 时出错

我一直在尝试安装 GCCFedora18. 以下是我的终端窗口的直接摘录:

ishan@localhost ~]$ sudo yum install gcc gcc-c++
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package gcc.i686 0:4.7.2-8.fc18 will be installed
--> Processing Dependency: cpp = 4.7.2-8.fc18 for package: gcc-4.7.2-8.fc18.i686
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.7.2-8.fc18.i686
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.7.2-8.fc18.i686
--> Processing Dependency: libmpc.so.2 for package: gcc-4.7.2-8.fc18.i686
---> Package gcc-c++.i686 0:4.7.2-8.fc18 will be installed
--> Processing Dependency: libstdc++-devel = 4.7.2-8.fc18 for package:     gcc-c++-4.7.2-8.fc18.i686
--> Running transaction check
---> Package cloog-ppl.i686 0:0.15.11-4.fc18.1 will be installed
--> Processing Dependency: libppl_c.so.4 for package: cloog-ppl-0.15.11-4.fc18.1.i686
--> Processing Dependency: libppl.so.9 for package: cloog-ppl-0.15.11-4.fc18.1.i686
---> Package cpp.i686 0:4.7.2-8.fc18 will be installed
---> Package glibc-devel.i686 0:2.16-30.fc18 will be installed
--> Processing Dependency: glibc-headers = 2.16-30.fc18 for package: glibc-devel-2.16-30.fc18.i686
--> Processing Dependency: glibc = 2.16-30.fc18 for package: glibc-devel-2.16-30.fc18.i686
--> Processing Dependency: glibc-headers for package: glibc-devel-2.16-30.fc18.i686
---> Package libmpc.i686 0:0.9-3.fc18.2 will be installed
---> Package libstdc++-devel.i686 0:4.7.2-8.fc18 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.16-24.fc18 will be updated
--> Processing Dependency: glibc = 2.16-24.fc18 for package: glibc-common-2.16-24.fc18.i686
---> Package glibc.i686 0:2.16-30.fc18 will be an update
---> Package glibc-headers.i686 0:2.16-30.fc18 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.16-30.fc18.i686
--> Processing Dependency: kernel-headers for package: glibc-headers-2.16-30.fc18.i686
---> Package ppl.i686 0:0.11.2-10.fc18 will be installed
--> Processing Dependency: libpwl.so.5 for package: ppl-0.11.2-10.fc18.i686
--> Running transaction check
---> Package glibc-common.i686 0:2.16-24.fc18 will be updated
---> Package glibc-common.i686 0:2.16-30.fc18 will be an update
---> Package kernel-headers.i686 0:3.8.7-201.fc18 will be installed
---> Package ppl-pwl.i686 0:0.11.2-10.fc18 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch       Version                   Repository     Size
================================================================================
Installing:
 gcc                   i686       4.7.2-8.fc18              fedora         12 M
 gcc-c++               i686       4.7.2-8.fc18              fedora        5.5 M
Installing for dependencies:
 cloog-ppl             i686       0.15.11-4.fc18.1          fedora         96 k
 cpp                   i686       4.7.2-8.fc18              fedora        4.4 M
 glibc-devel           i686       2.16-30.fc18              updates       997 k
 glibc-headers         i686       2.16-30.fc18              updates       636 k
 kernel-headers        i686       3.8.7-201.fc18            updates       826 k
 libmpc                i686       0.9-3.fc18.2              fedora         51 k
 libstdc++-devel       i686       4.7.2-8.fc18              fedora        1.4 M
 ppl                   i686       0.11.2-10.fc18            fedora        1.5 M
 ppl-pwl               i686       0.11.2-10.fc18            fedora         37 k
Updating for dependencies:
 glibc                 i686       2.16-30.fc18              updates       4.2 M
 glibc-common          i686       2.16-30.fc18              updates        11 M

Transaction Summary
================================================================================
Install  2 Packages (+9 Dependent packages)
Upgrade             ( 2 Dependent packages)

Total size: 43 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test


Transaction Check Error:
  file /usr/lib/audit from install of glibc-2.16-30.fc18.i686 conflicts with file from package audit-2.2.1-2.fc18.i686

Error Summary
-------------

[ishan@localhost ~]$ 

我不知道为什么发生了这种情况。当我使用 yum 工具时,一切都已正确安装,除了编译器

有没有办法摆脱这个错误并安装 GCC?

答案1

首先尝试更新包audit

yum update audit

相关内容