zoukankan      html  css  js  c++  java
  • [原]HEHL6下配置GCC及KVM安装

    目前系统为REHL6,内核为2.6.32-71.el6.x86_64版本,安装之后需要在此平台上使用KVM。GCC和KVM安装是必需的步骤,如果已经自带,则不必另行手动操作。本次是为手动安装过程,简单记录一下:

    一.GCC安装:

    1.获取相关的依赖包:

    -rwxr-xr-x. 1 root root    95136 Feb 23 09:44 cloog-ppl-0.15.7-1.2.el6.i686.rpm
    -rwxr-xr-x. 1 root root    95452 Feb 23 09:44 cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3887160 Feb 23 09:46 compat-gcc-34-3.4.6-19.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 10498252 Feb 23 09:46 compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  2180492 Feb 23 09:46 compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  1299752 Feb 23 09:43 compat-glibc-2.5-46.2.x86_64.rpm
    -rwxr-xr-x. 1 root root   458320 Feb 23 09:44 compat-glibc-headers-2.5-46.2.x86_64.rpm
    -rwxr-xr-x. 1 root root    78872 Feb 23 09:45 compat-libstdc++-296-2.96-144.el6.i686.rpm
    -rwxr-xr-x. 1 root root   193372 Feb 23 09:45 compat-libstdc++-33-3.2.3-69.el6.i686.rpm
    -rwxr-xr-x. 1 root root   187516 Feb 23 09:45 compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3915612 Feb 23 09:45 cpp-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 10539672 Feb 23 09:45 gcc-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  4955564 Feb 23 09:46 gcc-c++-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  4950764 Feb 23 09:45 gcc-gfortran-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  9159816 Feb 23 09:45 gcc-gnat-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3929356 Feb 23 09:45 gcc-java-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3816168 Feb 23 09:45 gcc-objc-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  4162988 Feb 23 09:45 gcc-objc++-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  4466392 Feb 23 09:43 glibc-2.12-1.7.el6.i686.rpm
    -rwxr-xr-x. 1 root root  3920352 Feb 23 09:43 glibc-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 14815676 Feb 23 09:43 glibc-common-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   983404 Feb 23 09:44 glibc-devel-2.12-1.7.el6.i686.rpm
    -rwxr-xr-x. 1 root root   982968 Feb 23 09:44 glibc-devel-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   605060 Feb 23 09:44 glibc-headers-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   157540 Feb 23 09:43 glibc-utils-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   988544 Feb 23 09:43 kernel-headers-2.6.32-71.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   106920 Feb 23 09:43 libgcc-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root    94612 Feb 23 09:43 libgcc-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 18077004 Feb 23 09:58 libgcj-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root 19418284 Feb 23 09:58 libgcj-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  1657360 Feb 23 09:58 libgcj-devel-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root  1657380 Feb 23 09:58 libgcj-devel-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 12878720 Feb 23 09:58 libgcj-src-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   918544 Feb 23 09:55 libgnat-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root   923340 Feb 23 09:55 libgnat-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3342128 Feb 23 09:55 libgnat-devel-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root  3406868 Feb 23 09:55 libgnat-devel-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   112804 Feb 23 09:43 libgomp-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root   110456 Feb 23 09:43 libgomp-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   298436 Feb 23 09:45 libstdc++-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root   291748 Feb 23 09:45 libstdc++-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  1603320 Feb 23 09:45 libstdc++-devel-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root  1612992 Feb 23 09:45 libstdc++-devel-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 14378008 Feb 23 09:45 libstdc++-docs-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   159928 Feb 23 09:44 mpfr-2.4.1-6.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   201944 Feb 23 09:43 nscd-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  1315064 Feb 23 09:44 ppl-0.10.2-11.el6.i686.rpm
    -rwxr-xr-x. 1 root root  1322304 Feb 23 09:44 ppl-0.10.2-11.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  1018224 Feb 23 09:45 qpid-cpp-client-0.7.946106-5.el6.i686.rpm
    -rwxr-xr-x. 1 root root   986124 Feb 23 09:45 qpid-cpp-client-0.7.946106-5.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   871808 Feb 23 09:45 qpid-cpp-server-0.7.946106-5.el6.i686.rpm
    -rwxr-xr-x. 1 root root   855656 Feb 23 09:45 qpid-cpp-server-0.7.946106-5.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root    44504 Feb 23 09:59 zlib-devel-1.2.3-25.el6.i686.rpm
    -rwxr-xr-x. 1 root root    44488 Feb 23 09:59 zlib-devel-1.2.3-25.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3887160 Feb 23 09:21 compat-gcc-34-3.4.6-19.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 10498252 Feb 23 09:21 compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  2180492 Feb 23 09:21 compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   458320 Feb 23 09:19 compat-glibc-headers-2.5-46.2.x86_64.rpm
    -rwxr-xr-x. 1 root root 10539672 Feb 23 09:20 gcc-4.4.4-13.el6.x86_64.rpm
    drwxr-xr-x. 2 root root     4096 Feb 23 09:59 gcc-c++
    -rwxr-xr-x. 1 root root  4955564 Feb 23 09:21 gcc-c++-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  4950764 Feb 23 09:20 gcc-gfortran-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  9159816 Feb 23 09:20 gcc-gnat-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3929356 Feb 23 09:20 gcc-java-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  3816168 Feb 23 09:20 gcc-objc-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  4162988 Feb 23 09:20 gcc-objc++-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root 14815676 Feb 23 09:41 glibc-common-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   983404 Feb 23 09:19 glibc-devel-2.12-1.7.el6.i686.rpm
    -rwxr-xr-x. 1 root root   982968 Feb 23 09:19 glibc-devel-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   605060 Feb 23 09:19 glibc-headers-2.12-1.7.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   988544 Feb 23 09:18 kernel-headers-2.6.32-71.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root   112804 Feb 23 09:20 libgomp-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root   110456 Feb 23 09:20 libgomp-4.4.4-13.el6.x86_64.rpm
    -rwxr-xr-x. 1 root root  1603320 Feb 23 09:20 libstdc++-devel-4.4.4-13.el6.i686.rpm
    -rwxr-xr-x. 1 root root  1612992 Feb 23 09:20 libstdc++-devel-4.4.4-13.el6.x86_64.rpm
    2.按照顺序安装GCC:

    rpm -ivh glibc-common-2.12-1.25.el6.x86_64.rpm                                                       
    rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm                                                        
    rpm -ivh libgcc-4.4.5-6.el6.x86_64.rpm                                                                         
    rpm -ivh glibc-2.12-1.25.el6.x86_64.rpm                
    rpm -ivh libgomp-4.4.5-6.el6.x86_64.rpm                 
    rpm -ivh nscd-2.12-1.25.el6.x86_64.rpm                  
    rpm -ivh glibc-headers-2.12-1.25.el6.x86_64.rpm         
    rpm -ivh glibc-devel-2.12-1.25.el6.x86_64.rpm           
    rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm                    
    rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm                   
    rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm            
    rpm -ivh cpp-4.4.5-6.el6.x86_64.rpm                     
    rpm -ivh gcc-4.4.5-6.el6.x86_64.rpm                     
    rpm -ivh libstdc++-4.4.5-6.el6.x86_64.rpm               
    rpm -ivh libstdc++-devel-4.4.5-6.el6.x86_64.rpm         
    rpm -ivh gcc-c++-4.4.5-6.el6.x86_64.rpm   

    3.安装GCC-G++顺序如下:

    rpm -ivh libstdc++-4.4.5-6.el6.x86_64.rpm       
    rpm -ivh libstdc++-devel-4.4.5-6.el6.x86_64.rpm
    rpm -ivh gcc-c++-4.4.5-6.el6.x86_64.rpm       

    注:如果存在报错或者依赖,需要根据提示寻找相关包或者提示查找并安装,过不去的包可以尝试采用加参数 --nodeps形式安装。

    二.KVM安装:

    1.下载KVM内核包qemu-kvm-0.14.1.tar.gz,并传至目标机器:

    http://www.linux-kvm.org/page/Downloads

    2.解压 tar -xvf qemu-kvm-0.14.1.tar.gz

    解压之后开始安装:

    ./configure --prefix=/usr/local

    make
    make install

    完成之后检查命令:qemu-system-x86_64 --help,可以查到帮助信息即表明OK。

    为了方便起见可以: alias kvm="qemu-system-x86_64"
    并写入vi ~/.bashrc ,source ~/.bashrc

    接下来上传镜像,就可以使用了。

    --------------------------------------------

    2012-02-23 10:25

    H.C

    赠人玫瑰
    手留余香

    我们曾如此渴望命运的波澜,到最后才发现:人生最曼妙的风景,竟是内心的淡定与从容……我们曾如此期盼外界的认可,到最后才知道:世界是自己的,与他人毫无关系!-杨绛先生

    如果,您认为阅读这篇博客让您有些收获,不妨点击一下右下角的推荐按钮。
    如果,您希望更容易地发现我的新博客,不妨点击一下绿色通道的关注我

  • 相关阅读:
    Spark在MaxCompute的运行方式
    新功能初探 | MySQL 8.0 Multi-Valued Indexes功能简述
    吐血整理 | 1000行MySQL学习笔记,不怕你不会,就怕你不学!
    阿里巴巴架构师:十问业务中台和我的答案
    C# int?
    页面后退清空缓存
    oracle 中 创建序列sequence
    sql 与 oracle 几个简单语法差别
    oracle 中用法dual
    将DataTable进行分页并生成新的DataTable
  • 原文地址:https://www.cnblogs.com/haochuang/p/2364374.html
Copyright © 2011-2022 走看看