admin管理员组

文章数量:1531374

build-essential 软件包

build-essential 软件包的作用是提供编译程序必须的软件包列表信息。

1. apt-cache depends build-essential

build-essential 软件包的依赖关系。

strong@foreverstrong:~$ 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
strong@foreverstrong:~$

2. sudo apt-get install build-essential -y

Ubuntu 中编译 C/C++ 程序,需要安装该软件包。

sudo apt-get update && sudo apt-get install build-essential -y
sudo apt-get install build-essential -y
guipc@deepnorth01:~/people_counting_api$ sudo apt-get install build-essential -y
[sudo] password for guipc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic linux-headers-4.15.0-55 linux-headers-4.15.0-55-generic
  linux-image-4.15.0-45-generic linux-image-4.15.0-55-generic linux-modules-4.15.0-45-generic
  linux-modules-4.15.0-55-generic linux-modules-extra-4.15.0-45-generic linux-modules-extra-4.15.0-55-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nginx-core (1.10.3-0ubuntu0.16.04.4) ...
Setting up nginx (1.10.3-0ubuntu0.16.04.4) ...
guipc@deepnorth01:~/people_counting_api$

本文标签: 软件包Buildessential