先日、IdeaPad Duet Chromebook(Chrome OS)のLinuxにaptコマンドでアプリケーションをインストールしましたが、gccとか開発環境が無かったのでインストールしてみました。
参考
How to install development tools in Linux
https://www.2daygeek.com/install-development-tools-on-ubuntu-debian-arch-linux-mint-fedora-centos-rhel-opensuse/
RHEL/CentOSのようにまとめてインストールできるんですね。
1 2 |
user01@penguin:~$ uname -a Linux penguin 5.4.74-10576-gb6cc41974db3 #1 SMP PREEMPT Sun Nov 8 15:01:15 PST 2020 aarch64 GNU/Linux |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
user01@penguin:~$ sudo apt show build-essential Package: build-essential Version: 12.6 Priority: optional Build-Essential: yes Section: devel Maintainer: Matthias Klose <doko@debian.org> Installed-Size: 20.5 kB Depends: libc6-dev | libc-dev, gcc (>= 4:8.3), g++ (>= 4:8.3), make, dpkg-dev (>= 1.17.11) Tag: devel::packaging, interface::commandline, role::data, role::program, scope::utility, suite::debian Download-Size: 7,576 B APT-Sources: https://deb.debian.org/debian buster/main arm64 Packages Description: Informational list of build-essential packages If you do not plan to build Debian packages, you don't need this package. Starting with dpkg (>= 1.14.18) this package is required for building Debian packages. . This package contains an informational list of packages which are considered essential for building Debian packages. This package also depends on the packages on that list, to make it easy to have the build-essential packages installed. . If you have this package installed, you only need to install whatever a package specifies as its build-time dependencies to build the package. Conversely, if you are determining what your package needs to build-depend on, you can always leave out the packages this package depends on. . This package is NOT the definition of what packages are build-essential; the real definition is in the Debian Policy Manual. This package contains merely an informational list, which is all most people need. However, if this package and the manual disagree, the manual is correct. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
user01@penguin:~$ sudo apt -y install build-essential Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libdbus-glib-1-2 libstartup-notification0 libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2 xfconf Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: binutils binutils-aarch64-linux-gnu binutils-common dpkg-dev fakeroot g++ g++-8 gcc gcc-8 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-8-dev libitm1 liblocale-gettext-perl liblsan0 libstdc++-8-dev libtsan0 libubsan1 linux-libc-dev make manpages manpages-dev Suggested packages: binutils-doc debian-keyring gcc-8-doc libstdc++6-8-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-8-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg libquadmath0-dbg glibc-doc bzr libstdc++-8-doc make-doc The following NEW packages will be installed: binutils binutils-aarch64-linux-gnu binutils-common build-essential dpkg-dev fakeroot g++ g++-8 gcc gcc-8 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-8-dev libitm1 liblocale-gettext-perl liblsan0 libstdc++-8-dev libtsan0 libubsan1 linux-libc-dev make manpages manpages-dev 0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded. Need to get 35.3 MB of archives. After this operation, 139 MB of additional disk space will be used. Get:1 https://deb.debian.org/debian buster/main arm64 liblocale-gettext-perl arm64 1.07-3+b4 [18.8 kB] Get:2 https://deb.debian.org/debian buster/main arm64 manpages all 4.16-2 [1,295 kB] Get:3 https://deb.debian.org/debian buster/main arm64 binutils-common arm64 2.31.1-16 [2,073 kB] Get:4 https://deb.debian.org/debian buster/main arm64 libbinutils arm64 2.31.1-16 [455 kB] Get:5 https://deb.debian.org/debian buster/main arm64 binutils-aarch64-linux-gnu arm64 2.31.1-16 [2,129 kB] Get:6 https://deb.debian.org/debian buster/main arm64 binutils arm64 2.31.1-16 [56.7 kB] Get:7 https://deb.debian.org/debian buster/main arm64 libc-dev-bin arm64 2.28-10 [270 kB] Get:8 https://deb.debian.org/debian buster/main arm64 linux-libc-dev arm64 4.19.171-2 [1,410 kB] Get:9 https://deb.debian.org/debian buster/main arm64 libc6-dev arm64 2.28-10 [2,324 kB] Get:10 https://deb.debian.org/debian buster/main arm64 libcc1-0 arm64 8.3.0-6 [45.0 kB] Get:11 https://deb.debian.org/debian buster/main arm64 libitm1 arm64 8.3.0-6 [24.0 kB] Get:12 https://deb.debian.org/debian buster/main arm64 libatomic1 arm64 8.3.0-6 [8,820 B] Get:13 https://deb.debian.org/debian buster/main arm64 libasan5 arm64 8.3.0-6 [327 kB] Get:14 https://deb.debian.org/debian buster/main arm64 liblsan0 arm64 8.3.0-6 [118 kB] Get:15 https://deb.debian.org/debian buster/main arm64 libtsan0 arm64 8.3.0-6 [262 kB] Get:16 https://deb.debian.org/debian buster/main arm64 libubsan1 arm64 8.3.0-6 [111 kB] Get:17 https://deb.debian.org/debian buster/main arm64 libgcc-8-dev arm64 8.3.0-6 [835 kB] Get:18 https://deb.debian.org/debian buster/main arm64 gcc-8 arm64 8.3.0-6 [7,879 kB] Get:19 https://deb.debian.org/debian buster/main arm64 gcc arm64 4:8.3.0-1 [5,212 B] Get:20 https://deb.debian.org/debian buster/main arm64 libstdc++-8-dev arm64 8.3.0-6 [1,502 kB] Get:21 https://deb.debian.org/debian buster/main arm64 g++-8 arm64 8.3.0-6 [8,176 kB] Get:22 https://deb.debian.org/debian buster/main arm64 g++ arm64 4:8.3.0-1 [1,624 B] Get:23 https://deb.debian.org/debian buster/main arm64 make arm64 4.2.1-1.2 [333 kB] Get:24 https://deb.debian.org/debian buster/main arm64 libdpkg-perl all 1.19.7 [1,414 kB] Get:25 https://deb.debian.org/debian buster/main arm64 dpkg-dev all 1.19.7 [1,773 kB] Get:26 https://deb.debian.org/debian buster/main arm64 build-essential arm64 12.6 [7,576 B] Get:27 https://deb.debian.org/debian buster/main arm64 libfakeroot arm64 1.23-1 [42.1 kB] Get:28 https://deb.debian.org/debian buster/main arm64 fakeroot arm64 1.23-1 [83.3 kB] Get:29 https://deb.debian.org/debian buster/main arm64 libalgorithm-diff-perl all 1.19.03-2 [47.9 kB] Get:30 https://deb.debian.org/debian buster/main arm64 libalgorithm-diff-xs-perl arm64 0.04-5+b1 [11.6 kB] Get:31 https://deb.debian.org/debian buster/main arm64 libalgorithm-merge-perl all 0.08-3 [12.7 kB] Get:32 https://deb.debian.org/debian buster/main arm64 libfile-fcntllock-perl arm64 0.22-3+b5 [35.5 kB] Get:33 https://deb.debian.org/debian buster/main arm64 manpages-dev all 4.16-2 [2,232 kB] Fetched 35.3 MB in 3s (12.1 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package liblocale-gettext-perl. (Reading database ... 35006 files and directories currently installed.) Preparing to unpack .../00-liblocale-gettext-perl_1.07-3+b4_arm64.deb ... Unpacking liblocale-gettext-perl (1.07-3+b4) ... Selecting previously unselected package manpages. Preparing to unpack .../01-manpages_4.16-2_all.deb ... Unpacking manpages (4.16-2) ... Selecting previously unselected package binutils-common:arm64. Preparing to unpack .../02-binutils-common_2.31.1-16_arm64.deb ... Unpacking binutils-common:arm64 (2.31.1-16) ... Selecting previously unselected package libbinutils:arm64. Preparing to unpack .../03-libbinutils_2.31.1-16_arm64.deb ... Unpacking libbinutils:arm64 (2.31.1-16) ... Selecting previously unselected package binutils-aarch64-linux-gnu. Preparing to unpack .../04-binutils-aarch64-linux-gnu_2.31.1-16_arm64.deb ... Unpacking binutils-aarch64-linux-gnu (2.31.1-16) ... Selecting previously unselected package binutils. Preparing to unpack .../05-binutils_2.31.1-16_arm64.deb ... Unpacking binutils (2.31.1-16) ... Selecting previously unselected package libc-dev-bin. Preparing to unpack .../06-libc-dev-bin_2.28-10_arm64.deb ... Unpacking libc-dev-bin (2.28-10) ... Selecting previously unselected package linux-libc-dev:arm64. Preparing to unpack .../07-linux-libc-dev_4.19.171-2_arm64.deb ... Unpacking linux-libc-dev:arm64 (4.19.171-2) ... Selecting previously unselected package libc6-dev:arm64. Preparing to unpack .../08-libc6-dev_2.28-10_arm64.deb ... Unpacking libc6-dev:arm64 (2.28-10) ... Selecting previously unselected package libcc1-0:arm64. Preparing to unpack .../09-libcc1-0_8.3.0-6_arm64.deb ... Unpacking libcc1-0:arm64 (8.3.0-6) ... Selecting previously unselected package libitm1:arm64. Preparing to unpack .../10-libitm1_8.3.0-6_arm64.deb ... Unpacking libitm1:arm64 (8.3.0-6) ... Selecting previously unselected package libatomic1:arm64. Preparing to unpack .../11-libatomic1_8.3.0-6_arm64.deb ... Unpacking libatomic1:arm64 (8.3.0-6) ... Selecting previously unselected package libasan5:arm64. Preparing to unpack .../12-libasan5_8.3.0-6_arm64.deb ... Unpacking libasan5:arm64 (8.3.0-6) ... Selecting previously unselected package liblsan0:arm64. Preparing to unpack .../13-liblsan0_8.3.0-6_arm64.deb ... Unpacking liblsan0:arm64 (8.3.0-6) ... Selecting previously unselected package libtsan0:arm64. Preparing to unpack .../14-libtsan0_8.3.0-6_arm64.deb ... Unpacking libtsan0:arm64 (8.3.0-6) ... Selecting previously unselected package libubsan1:arm64. Preparing to unpack .../15-libubsan1_8.3.0-6_arm64.deb ... Unpacking libubsan1:arm64 (8.3.0-6) ... Selecting previously unselected package libgcc-8-dev:arm64. Preparing to unpack .../16-libgcc-8-dev_8.3.0-6_arm64.deb ... Unpacking libgcc-8-dev:arm64 (8.3.0-6) ... Selecting previously unselected package gcc-8. Preparing to unpack .../17-gcc-8_8.3.0-6_arm64.deb ... Unpacking gcc-8 (8.3.0-6) ... Selecting previously unselected package gcc. Preparing to unpack .../18-gcc_4%3a8.3.0-1_arm64.deb ... Unpacking gcc (4:8.3.0-1) ... Selecting previously unselected package libstdc++-8-dev:arm64. Preparing to unpack .../19-libstdc++-8-dev_8.3.0-6_arm64.deb ... Unpacking libstdc++-8-dev:arm64 (8.3.0-6) ... Selecting previously unselected package g++-8. Preparing to unpack .../20-g++-8_8.3.0-6_arm64.deb ... Unpacking g++-8 (8.3.0-6) ... Selecting previously unselected package g++. Preparing to unpack .../21-g++_4%3a8.3.0-1_arm64.deb ... Unpacking g++ (4:8.3.0-1) ... Selecting previously unselected package make. Preparing to unpack .../22-make_4.2.1-1.2_arm64.deb ... Unpacking make (4.2.1-1.2) ... Selecting previously unselected package libdpkg-perl. Preparing to unpack .../23-libdpkg-perl_1.19.7_all.deb ... Unpacking libdpkg-perl (1.19.7) ... Selecting previously unselected package dpkg-dev. Preparing to unpack .../24-dpkg-dev_1.19.7_all.deb ... Unpacking dpkg-dev (1.19.7) ... Selecting previously unselected package build-essential. Preparing to unpack .../25-build-essential_12.6_arm64.deb ... Unpacking build-essential (12.6) ... Selecting previously unselected package libfakeroot:arm64. Preparing to unpack .../26-libfakeroot_1.23-1_arm64.deb ... Unpacking libfakeroot:arm64 (1.23-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../27-fakeroot_1.23-1_arm64.deb ... Unpacking fakeroot (1.23-1) ... Selecting previously unselected package libalgorithm-diff-perl. Preparing to unpack .../28-libalgorithm-diff-perl_1.19.03-2_all.deb ... Unpacking libalgorithm-diff-perl (1.19.03-2) ... Selecting previously unselected package libalgorithm-diff-xs-perl. Preparing to unpack .../29-libalgorithm-diff-xs-perl_0.04-5+b1_arm64.deb ... Unpacking libalgorithm-diff-xs-perl (0.04-5+b1) ... Selecting previously unselected package libalgorithm-merge-perl. Preparing to unpack .../30-libalgorithm-merge-perl_0.08-3_all.deb ... Unpacking libalgorithm-merge-perl (0.08-3) ... Selecting previously unselected package libfile-fcntllock-perl. Preparing to unpack .../31-libfile-fcntllock-perl_0.22-3+b5_arm64.deb ... Unpacking libfile-fcntllock-perl (0.22-3+b5) ... Selecting previously unselected package manpages-dev. Preparing to unpack .../32-manpages-dev_4.16-2_all.deb ... Unpacking manpages-dev (4.16-2) ... Setting up libfile-fcntllock-perl (0.22-3+b5) ... Setting up libalgorithm-diff-perl (1.19.03-2) ... Setting up manpages (4.16-2) ... Setting up binutils-common:arm64 (2.31.1-16) ... Setting up linux-libc-dev:arm64 (4.19.171-2) ... Setting up libfakeroot:arm64 (1.23-1) ... Setting up fakeroot (1.23-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Setting up libasan5:arm64 (8.3.0-6) ... Setting up make (4.2.1-1.2) ... Setting up libatomic1:arm64 (8.3.0-6) ... Setting up libdpkg-perl (1.19.7) ... Setting up libubsan1:arm64 (8.3.0-6) ... Setting up libbinutils:arm64 (2.31.1-16) ... Setting up libc-dev-bin (2.28-10) ... Setting up libalgorithm-diff-xs-perl (0.04-5+b1) ... Setting up libcc1-0:arm64 (8.3.0-6) ... Setting up liblocale-gettext-perl (1.07-3+b4) ... Setting up liblsan0:arm64 (8.3.0-6) ... Setting up libitm1:arm64 (8.3.0-6) ... Setting up libalgorithm-merge-perl (0.08-3) ... Setting up libtsan0:arm64 (8.3.0-6) ... Setting up manpages-dev (4.16-2) ... Setting up binutils-aarch64-linux-gnu (2.31.1-16) ... Setting up binutils (2.31.1-16) ... Setting up dpkg-dev (1.19.7) ... Setting up libgcc-8-dev:arm64 (8.3.0-6) ... Setting up libc6-dev:arm64 (2.28-10) ... Setting up libstdc++-8-dev:arm64 (8.3.0-6) ... Setting up gcc-8 (8.3.0-6) ... Setting up gcc (4:8.3.0-1) ... Setting up g++-8 (8.3.0-6) ... Setting up g++ (4:8.3.0-1) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Setting up build-essential (12.6) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ... |
1 2 3 4 5 6 7 8 |
user01@penguin:~$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/8/lto-wrapper Target: aarch64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --disable-libphobos --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu Thread model: posix gcc version 8.3.0 (Debian 8.3.0-6) |
Chromebookとは関係無くなってきた(^^;