'os/UNIX_LINUX'에 해당되는 글 238건

  1. 2016.03.30 gcc 설치

gcc 설치

os/UNIX_LINUX 2016. 3. 30. 21:16
반응형

 


[root@localhost ~]# make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu
[root@localhost ~]#


[root@localhost ~]# rpm -qa | grep gzip
gzip-1.3.12-19.el6_4.x86_64


[root@localhost ~]# rpm -qa | grep bzip2
bzip2-libs-1.0.5-7.el6_0.x86_64
bzip2-1.0.5-7.el6_0.x86_64


[root@localhost ~]# rpm -qa | grep readline
readline-6.0-4.el6.x86_64


[root@localhost ~]# rpm -qa | grep zlib
zlib-1.2.3-29.el6.x86_64

 

[root@localhost ~]# gcc
-bash: gcc: command not found
[root@localhost ~]#


[root@localhost ~]# rpm -qa | grep gcc
libgcc-4.4.7-4.el6.x86_64
[root@localhost ~]#


[root@localhost ~]# rpm -sql gcc
gcc 패키지가 설치되어 있지 않습니다
[root@localhost ~]#

 

[root@localhost ~]# yum -y install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.kaist.ac.kr
 * extras: ftp.kaist.ac.kr
 * updates: ftp.kaist.ac.kr
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-16.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-16.el6.x86_64
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgcc.x86_64 0:4.4.7-16.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-16.el6 will be an update
--> Running transaction check
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
 Package                     Arch    Version         Repository    Size
========================================================================
Installing:
 gcc                         x86_64  4.4.7-16.el6    base          10 M
Installing for dependencies:
 cloog-ppl                   x86_64  0.15.7-1.2.el6  base          93 k
 cpp                         x86_64  4.4.7-16.el6    base         3.7 M
 mpfr                        x86_64  2.4.1-6.el6     base         157 k
 ppl                         x86_64  0.10.2-11.el6   base         1.3 M
Updating for dependencies:
 libgcc                      x86_64  4.4.7-16.el6    base         103 k
 libgomp                     x86_64  4.4.7-16.el6    base         134 k

Transaction Summary
========================================================================
Install       5 Package(s)
Upgrade       2 Package(s)

Total download size: 16 M
Downloading Packages:
(1/7): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                |  93 kB     00:00
(2/7): cpp-4.4.7-16.el6.x86_64.rpm                        | 3.7 MB     00:00
(3/7): gcc-4.4.7-16.el6.x86_64.rpm                        |  10 MB     00:02
(4/7): libgcc-4.4.7-16.el6.x86_64.rpm                     | 103 kB     00:00
(5/7): libgomp-4.4.7-16.el6.x86_64.rpm                    | 134 kB     00:00
(6/7): mpfr-2.4.1-6.el6.x86_64.rpm                        | 157 kB     00:00
(7/7): ppl-0.10.2-11.el6.x86_64.rpm                       | 1.3 MB     00:00
---------------------------------------------------------------------------------
Total                                            3.6 MB/s |  16 MB     00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libgcc-4.4.7-16.el6.x86_64                                    1/9
  Installing : ppl-0.10.2-11.el6.x86_64                                      2/9
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                               3/9
  Installing : mpfr-2.4.1-6.el6.x86_64                                       4/9
  Installing : cpp-4.4.7-16.el6.x86_64                                       5/9
  Updating   : libgomp-4.4.7-16.el6.x86_64                                   6/9
  Installing : gcc-4.4.7-16.el6.x86_64                                       7/9
  Cleanup    : libgcc-4.4.7-4.el6.x86_64                                     8/9
  Cleanup    : libgomp-4.4.7-4.el6.x86_64                                    9/9
  Verifying  : libgomp-4.4.7-16.el6.x86_64                                   1/9
  Verifying  : gcc-4.4.7-16.el6.x86_64                                       2/9
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                       3/9
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                               4/9
  Verifying  : cpp-4.4.7-16.el6.x86_64                                       5/9
  Verifying  : ppl-0.10.2-11.el6.x86_64                                      6/9
  Verifying  : libgcc-4.4.7-16.el6.x86_64                                    7/9
  Verifying  : libgomp-4.4.7-4.el6.x86_64                                    8/9
  Verifying  : libgcc-4.4.7-4.el6.x86_64                                     9/9

Installed:
  gcc.x86_64 0:4.4.7-16.el6

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6                 cpp.x86_64 0:4.4.7-16.el6                 mpfr.x86_64 0:2.4.1-6.el6                 ppl.x86_64 0:0.10.2-11.el6

Dependency Updated:
  libgcc.x86_64 0:4.4.7-16.el6                                                             libgomp.x86_64 0:4.4.7-16.el6

Complete!
[root@localhost ~]#


[root@localhost ~]#  rpm -sql gcc
정상(normal)        /usr/bin/c89
정상(normal)        /usr/bin/c99
정상(normal)        /usr/bin/cc
정상(normal)        /usr/bin/gcc
정상(normal)        /usr/bin/gcov
정상(normal)        /usr/bin/protoize
정상(normal)        /usr/bin/unprotoize
정상(normal)        /usr/bin/x86_64-redhat-linux-gcc
정상(normal)        /usr/lib/gcc
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtbegin.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtbeginS.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtbeginT.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtend.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtendS.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtfastmath.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtprec32.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtprec64.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/crtprec80.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_eh.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcov.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgomp.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgomp.so
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libmudflap.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libmudflap.so
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libmudflapth.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libmudflapth.so
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/SYSCALLS.c.X
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtbegin.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtbeginS.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtbeginT.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtend.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtendS.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtfastmath.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtprec32.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtprec64.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtprec80.o
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/abmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/ammintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/avxintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/bmiintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/bmmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/cpuid.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/cross-stdarg.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/emmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/f16cintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/float.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/fma4intrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/immintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/iso646.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/limits.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/lwpintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/mm3dnow.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/mm_malloc.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/mmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/nmmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/omp.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/pmmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/popcntintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/smmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/stdarg.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/stdbool.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/stddef.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/stdfix.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/syslimits.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/tbmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/tmmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/unwind.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/varargs.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/wmmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/x86intrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/xmmintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include/xopintrin.h
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgcc.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgcc_eh.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgcc_s.so
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgcov.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgomp.a
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgomp.so
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgomp.spec
정상(normal)        /usr/lib/gcc/x86_64-redhat-linux/4.4.7
정상(normal)        /usr/libexec/gcc
정상(normal)        /usr/libexec/gcc/x86_64-redhat-linux
정상(normal)        /usr/libexec/gcc/x86_64-redhat-linux/4.4.4
정상(normal)        /usr/libexec/gcc/x86_64-redhat-linux/4.4.4/collect2
정상(normal)        /usr/libexec/gcc/x86_64-redhat-linux/4.4.7
정상(normal)        /usr/libexec/getconf
정상(normal)        /usr/libexec/getconf/default
정상(normal)        /usr/share/doc/gcc-4.4.7
정상(normal)        /usr/share/doc/gcc-4.4.7/COPYING
정상(normal)        /usr/share/doc/gcc-4.4.7/COPYING.LIB
정상(normal)        /usr/share/doc/gcc-4.4.7/COPYING3
정상(normal)        /usr/share/doc/gcc-4.4.7/COPYING3.LIB
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-1997.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-1998.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-1999.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2000.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2001.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2002.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2003.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2004.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2005.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2006.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2007.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog-2008.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.dataflow.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.lib.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.ptr.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.tree-ssa.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.tuples.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/ChangeLog.vta.bz2
정상(normal)        /usr/share/doc/gcc-4.4.7/README.Portability
정상(normal)        /usr/share/info/gcc.info.gz
정상(normal)        /usr/share/info/gccinstall.info.gz
정상(normal)        /usr/share/info/gccint.info.gz
정상(normal)        /usr/share/locale/be/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/da/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/de/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/el/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/es/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/fi/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/fr/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/id/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/ja/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/nl/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/ru/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/sr/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/sv/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/tr/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/zh_CN/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/locale/zh_TW/LC_MESSAGES/gcc.mo
정상(normal)        /usr/share/man/man1/gcc.1.gz
정상(normal)        /usr/share/man/man1/gcov.1.gz
정상(normal)        /usr/share/man/man1/protoize.1.gz
정상(normal)        /usr/share/man/man1/unprotoize.1.gz
[root@localhost ~]#

[root@localhost ~]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost ~]#

반응형
Posted by 공간사랑
,