zoukankan      html  css  js  c++  java
  • apt-get build-dep命令详解

    apt-get build-dep命令详解 - 星星之火的Blog - CSDN博客  https://blog.csdn.net/starflame/article/details/7416311

    今天看到一位网友的签名档写着:“用 Debian 的感觉就象家里开超市一样不管要什么只需一个 apt-get”。实在太贴切了,我也觉得有这种感觉~

     今天在ubuntu中文上看到 apt-get 里面有个 build-dep参数,上网查了好久都没有找到答案,手册英文写着:

    build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.
    经过理解得出:
    build-dep参数是指建立某个要编译软件的环境,可以这样理解:比如我们现在要手工编译apache,那如果想让编译正常通过,你可以事先把编译过程中需要用到的软件包先配置好。
    如:

    howlym@ubuntu:~$ sudo apt-get build-dep apache2
    正在读取软件包列表… 完成
    正在分析软件包的依赖关系树… 完成
    下列【新】软件包将被安装:
    autoconf autotools-dev libdb4.2-dev libexpat1-dev libldap2-dev libpcre3-dev
    libssl-dev libtool m4 zlib1g-dev
    共升级了 0 个软件包,新安装了 10 个软件包,要卸载 0 个软件包,有 0 个软件未被升 级。
    需要下载 4869kB/4979kB 的软件包。
    解压缩后会消耗掉 15.1MB 的额外空间。
    您希望继续执行吗?[Y/n]

    这样就一目了然了,比Freebsd的port安装还要一目了然,呵呵。

      由于关系包一般都很多.

    日后想卸载却又忘记关系包的名字,
    可以事先做个记录.
    apt-get build-dep pidgin | tee pidgin-b-d.log
    这样就不会忘记了.


    build-essential - Google Search

    linux - What are "build-essential" & "build-dep"? - Super User  https://superuser.com/questions/151557/what-are-build-essential-build-dep

    "build-essential" contains tools (like the gcc compiler, make tool, etc) for compiling/building software from source. So you start with (usually C) source files and create executables from them.

    Ubuntu的build-essential有什么作用 - yzpbright的博客 - CSDN博客  https://blog.csdn.net/yzpbright/article/details/81515459

    Ubuntu缺省情况下,并没有提供C/C++的编译环境,因此还需要手动安装。但是如果单独安装gcc以及g++比较麻烦,幸运的是,Ubuntu提供了一个build-essential软件包。查看该软件包的依赖关系:

    y@ubuntu:~$ apt-cache depends build-essential
    build-essential
     |Depends: libc6-dev
      Depends: <libc-dev>
        libc6-dev
      Depends: gcc
      Depends: g++
      Depends: make
        make-guile
      Depends: dpkg-dev
    

    也就是说,安装了该软件包,编译c/c++所需要的软件包也都会被安装。因此如果想在Ubuntu中编译c/c++程序,只需要安装该软件包就可以了。

    安装方法如下:

    $sudo apt-get install build-essential
    1
    参考:
    为Ubuntu安装build-essential软件包
    ---------------------
    作者:yzpyzp
    来源:CSDN
    原文:https://blog.csdn.net/yzpbright/article/details/81515459
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    SVN服务器搭建和使用(二)
    Unity5自动命名Assetbundle并打包
    Unity学习(六)5.x依赖打包
    Dota2技能系统设计分析
    android调用其他apk的activity
    Android 跨应用调用Activity
    Unity5的AssetBundle的一点使用心得
    Myeclipse快捷键集合
    我的CSS命名规则
    常用的 Windows 键
  • 原文地址:https://www.cnblogs.com/tongongV/p/10927648.html
Copyright © 2011-2022 走看看