码迷,mamicode.com
首页 > 系统相关 > 详细

在CentOS 7和Ubuntu 14.03上安装Build Essentials

时间:2018-05-04 12:07:18      阅读:3134      评论:0      收藏:0      [点我收藏+]

标签:Build Essentials

linux操作系统上面开发程序, 光有了gcc 是不行的 它还需要一个 build-essential软件包 作用是提供编译程序必须软件包的列表信息 也就是说 编译程序有了这个软件包 它才知道 头文件在哪 才知道库函数在哪 还会下载依赖的软件包 最后才组成一个开发环境 当然 build-essential包 安装时 需要的依赖包 有些你用不上

在Ubuntu上安装build essentials
apt-get install -y build-essential

上面的命令会安装一下包:

  • 下面的额外的安装包会安装:

    • binutils cpp cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc gcc-4.8

    • libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl

    • libasan0 libatomic1 libc-dev-bin libc6-dev libcloog-isl4 libdpkg-perl

    • libfakeroot libfile-fcntllock-perl libgcc-4.8-dev libgmp10 libgomp1 libisl10

    • libitm1 libmpc3 libmpfr4 libquadmath0 libstdc++-4.8-dev libtimedate-perl

    • libtsan0 linux-libc-dev make manpages manpages-dev patch xz-utils

  • 建议安装的包:

    • binutils-doc cpp-doc gcc-4.8-locales debian-keyring g++-multilib

    • g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg gcc-multilib autoconf

    • automake1.9 libtool flex bison gdb gcc-doc gcc-4.8-multilib libgcc1-dbg

    • libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg

    • libquadmath0-dbg glibc-doc libstdc++-4.8-doc make-doc man-browser ed

    • diffutils-doc

  • 安装新的包:

    • binutils build-essential cpp cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc

    • gcc-4.8 libalgorithm-diff-perl libalgorithm-diff-xs-perl

    • libalgorithm-merge-perl libasan0 libatomic1 libc-dev-bin libc6-dev

    • libcloog-isl4 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-4.8-dev

    • libgmp10 libgomp1 libisl10 libitm1 libmpc3 libmpfr4 libquadmath0

    • libstdc++-4.8-dev libtimedate-perl libtsan0 linux-libc-dev make manpages

    • manpages-dev patch xz-utils

在Centos上安装build essentials
yum groupinstall "Development Tools"
  • 安装 "开发工具":

    • autoconf

    • automake

    • bison

    • byacc

    • cscope

    • ctags

    • diffstat

    • doxygen

    • elfutils

    • flex

    • gcc

    • gcc-c++

    • gcc-gfortran

    • gettext

    • git

    • indent

    • intltool

    • libtool

    • make

    • patch

    • patchutils

    • rcs

    • redhat-rpm-config

    • rpm-build

    • rpm-sign

    • subversion

    • swig

    • systemtap

  • 安装依赖包:

    • apr

    • apr-util

    • avahi-libs

    • boost-system

    • boost-thread

    • bzip2

    • cpp

    • dwz

    • dyninst

    • emacs-filesystem

    • fipscheck

    • fipscheck-lib

    • gdb

    • gettext-common-devel

    • gettext-devel

    • gettext-libs

    • glibc-devel

    • glibc-headers

    • gnutls

    • kernel-devel

    • kernel-headers

    • libdwarf

    • libedit

    • libgfortran

    • libgnome-keyring

    • libmodman

    • libmpc

    • libproxy

    • libquadmath

    • libquadmath-devel

    • libstdc++-devel

    • m4

    • mokutil

    • mpfr

    • neon

    • nettle

    • openssh

    • openssh-clients

    • pakchois

    • perl

    • perl-Carp

    • perl-Data-Dumper

    • perl-Encode

    • perl-Error

    • perl-Exporter

    • perl-File-Path

    • perl-File-Temp

    • perl-Filter

    • perl-Getopt-Long

    • perl-Git

    • perl-HTTP-Tiny

    • perl-PathTools

    • perl-Pod-Escapes

    • perl-Pod-Perldoc

    • perl-Pod-Simple

    • perl-Pod-Usage

    • perl-Scalar-List-Utils

    • perl-Socket

    • perl-Storable

    • perl-TermReadKey

    • perl-Test-Harness

    • perl-Text-ParseWords

    • perl-Thread-Queue

    • perl-Time-HiRes

    • perl-Time-Local

    • perl-XML-Parser

    • perl-constant

    • perl-libs

    • perl-macros

    • perl-parent

    • perl-podlators

    • perl-srpm-macros

    • perl-threads

    • perl-threads-shared

    • rsync

    • subversion-libs

    • systemtap-client

    • systemtap-devel

    • systemtap-runtime

    • trousers

    • unzip

    • zip

    • base

到这最简介的Build Essentials就安装到CentOS了:

yum install -y gcc g++ kernel-devel


在CentOS 7和Ubuntu 14.03上安装Build Essentials

标签:Build Essentials

原文地址:http://blog.51cto.com/sf1314/2112529

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!