当前位置: 技术问答>linux和unix
linux gcc RPM 包 安装
来源: 互联网 发布时间:2017-02-14
本文导语: 我想通过源代码方式安装一个软件得到找不到GCC的错误信息,于是我就下载了GCC的安装包,也是源文件安装方式的,安装时也需要GCC。然后我想下载个GCC的RPM包。但是网上的资源,要么不能用,要么资源找不到。我是...
我想通过源代码方式安装一个软件得到找不到GCC的错误信息,于是我就下载了GCC的安装包,也是源文件安装方式的,安装时也需要GCC。然后我想下载个GCC的RPM包。但是网上的资源,要么不能用,要么资源找不到。我是linux新手,希望好心人能帮我解决一下。谢谢!
|
找一份redhat的安装镜像,,解压得到server文件夹里面有很多软件。。。都市rpm的,有gcc
|
[root@ibm /]# yum search gcc
已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.cuhk.edu.hk
* livna: ftp-stud.fht-esslingen.de
* rpmfusion-free: ftp.sjtu.edu.cn
* rpmfusion-free-updates: ftp.sjtu.edu.cn
* rpmfusion-nonfree: ftp.sjtu.edu.cn
* rpmfusion-nonfree-updates: ftp.sjtu.edu.cn
* updates: ftp.cuhk.edu.hk
========================================== N/S Matched: gcc ===========================================
arm-gp2x-linux-gcc.i686 : Cross Compiling GNU GCC targeted at arm-gp2x-linux
avr-gcc.i686 : Cross Compiling GNU GCC targeted at avr
avr-gcc-c++.i686 : Cross Compiling GNU GCC targeted at avr
compat-libgcc-296.i686 : Compatibility 2.96-RH libgcc library
gcc-c++.i686 : C++ support for GCC
gcc-gnat.i686 : Ada 95 support for GCC
gcc-java.i686 : Java support for GCC
gcc-objc.i686 : Objective-C support for GCC
gcc-objc++.i686 : Objective-C++ support for GCC
gcc-plugin-devel.i686 : Support for compiling GCC plugins
gcc-python-plugin-docs.i686 : API documentation for the GCC Python plugin
gcc-python2-debug-plugin.i686 : GCC plugin embedding Python 2 debug build
gcc-python2-plugin.i686 : GCC plugin embedding Python 2
gcc-python3-debug-plugin.i686 : GCC plugin embedding Python 3 debug build
gcc-python3-plugin.i686 : GCC plugin embedding Python 3
gccxml.i686 : XML output extension to GCC
libgcc.i686 : GCC version 4.6 shared support library
mingw32-gcc.i686 : MinGW Windows cross-compiler (GCC) for C
msp430-gcc.i686 : Cross Compiling GNU GCC targeted at msp430
arm-gp2x-linux-gcc-c++.i686 : Cross Compiling GNU G++ targeted at arm-gp2x-linux
avr-libc.noarch : C library for use with GCC on Atmel AVR microcontrollers
colorgcc.noarch : Script to colorize the compiler output
compat-gcc-34.i686 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.i686 : C++ support for compatibility compiler
compat-gcc-34-g77.i686 : Fortran 77 support for compatibility compiler
gcc.i686 : Various compilers (C, C++, Objective-C, Java, ...)
gcc-gfortran.i686 : Fortran support
gcc-go.i686 : Go support
ghdl.i686 : A VHDL simulator, using the GCC technology
libgcj.i686 : Java runtime library for gcc
libgcj-devel.i686 : Libraries for Java development using GCC
libgcj-src.i686 : Java library sources from GCC4 preview
libgomp.i686 : GCC OpenMP v3.0 shared support library
libmudflap.i686 : GCC mudflap shared support library
libmudflap-devel.i686 : GCC mudflap support
libquadmath.i686 : GCC __float128 shared support library
libquadmath-devel.i686 : GCC __float128 support
mingw32-gcc-c++.i686 : MinGW Windows cross-compiler for C++
mingw32-gcc-gfortran.i686 : MinGW Windows cross-compiler for FORTRAN
mingw32-gcc-objc.i686 : MinGW Windows cross-compiler support for Objective C
mingw32-gcc-objc++.i686 : MinGW Windows cross-compiler support for Objective C++
msp430-libc.noarch : C library for use with GCC on Texas Instruments MSP430 microcontrollers
Name and summary matches only, use "search all" for everything.
[root@ibm /]#
yum install gcc
已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.cuhk.edu.hk
* livna: ftp-stud.fht-esslingen.de
* rpmfusion-free: ftp.sjtu.edu.cn
* rpmfusion-free-updates: ftp.sjtu.edu.cn
* rpmfusion-nonfree: ftp.sjtu.edu.cn
* rpmfusion-nonfree-updates: ftp.sjtu.edu.cn
* updates: ftp.cuhk.edu.hk
========================================== N/S Matched: gcc ===========================================
arm-gp2x-linux-gcc.i686 : Cross Compiling GNU GCC targeted at arm-gp2x-linux
avr-gcc.i686 : Cross Compiling GNU GCC targeted at avr
avr-gcc-c++.i686 : Cross Compiling GNU GCC targeted at avr
compat-libgcc-296.i686 : Compatibility 2.96-RH libgcc library
gcc-c++.i686 : C++ support for GCC
gcc-gnat.i686 : Ada 95 support for GCC
gcc-java.i686 : Java support for GCC
gcc-objc.i686 : Objective-C support for GCC
gcc-objc++.i686 : Objective-C++ support for GCC
gcc-plugin-devel.i686 : Support for compiling GCC plugins
gcc-python-plugin-docs.i686 : API documentation for the GCC Python plugin
gcc-python2-debug-plugin.i686 : GCC plugin embedding Python 2 debug build
gcc-python2-plugin.i686 : GCC plugin embedding Python 2
gcc-python3-debug-plugin.i686 : GCC plugin embedding Python 3 debug build
gcc-python3-plugin.i686 : GCC plugin embedding Python 3
gccxml.i686 : XML output extension to GCC
libgcc.i686 : GCC version 4.6 shared support library
mingw32-gcc.i686 : MinGW Windows cross-compiler (GCC) for C
msp430-gcc.i686 : Cross Compiling GNU GCC targeted at msp430
arm-gp2x-linux-gcc-c++.i686 : Cross Compiling GNU G++ targeted at arm-gp2x-linux
avr-libc.noarch : C library for use with GCC on Atmel AVR microcontrollers
colorgcc.noarch : Script to colorize the compiler output
compat-gcc-34.i686 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.i686 : C++ support for compatibility compiler
compat-gcc-34-g77.i686 : Fortran 77 support for compatibility compiler
gcc.i686 : Various compilers (C, C++, Objective-C, Java, ...)
gcc-gfortran.i686 : Fortran support
gcc-go.i686 : Go support
ghdl.i686 : A VHDL simulator, using the GCC technology
libgcj.i686 : Java runtime library for gcc
libgcj-devel.i686 : Libraries for Java development using GCC
libgcj-src.i686 : Java library sources from GCC4 preview
libgomp.i686 : GCC OpenMP v3.0 shared support library
libmudflap.i686 : GCC mudflap shared support library
libmudflap-devel.i686 : GCC mudflap support
libquadmath.i686 : GCC __float128 shared support library
libquadmath-devel.i686 : GCC __float128 support
mingw32-gcc-c++.i686 : MinGW Windows cross-compiler for C++
mingw32-gcc-gfortran.i686 : MinGW Windows cross-compiler for FORTRAN
mingw32-gcc-objc.i686 : MinGW Windows cross-compiler support for Objective C
mingw32-gcc-objc++.i686 : MinGW Windows cross-compiler support for Objective C++
msp430-libc.noarch : C library for use with GCC on Texas Instruments MSP430 microcontrollers
Name and summary matches only, use "search all" for everything.
[root@ibm /]#
yum install gcc
|
ftp://mirrors.sohu.com/fedora/releases/16/Fedora/i386/os/Packages/
我用的是fedora 16,以上是国内的yum源,你可以找找看有没有你想要的。
我用的是fedora 16,以上是国内的yum源,你可以找找看有没有你想要的。