まずは確認
前回の教訓を活かすと言うほどではありませんが、まずWSLの動作環境を確認しておくことにします。
$ uname -a ↵ Linux DESKTOP-QEJ80KU 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a ↵ No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
64Bitで、Ubuntu 16.04がベースになっていることがわかりました。
ビルド関連ツールのダウンロード
まずはUbuntu Linuxのパッケージ類を更新します。
$ sudo apt-get update ↵ : Reading package lists... Done
$ sudo apt-get upgrade ↵ : Do you want to continue? [Y/n] y ↵ : Running hooks in /etc/ca-certificates/update.d... done. Processing triggers for resolvconf (1.78ubuntu6) ...
続いて、GCCやPythonなどのツールをインストールします。
$ sudo apt-get -y install git ↵ : 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
$ sudo apt-get -y install autoconf ↵ : 0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded. : update-alternatives: using /usr/bin/automake-1.15 to provide /usr/bin/automake (automake) in auto mode
$ sudo apt-get -y install build-essential ↵ : 0 upgraded, 36 newly installed, 0 to remove and 1 not upgraded. : Processing triggers for libc-bin (2.23-0ubuntu10) ...
$ sudo apt-get -y install gperf ↵ : 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. : Setting up gperf (3.0.4-2) ...
$ sudo apt-get -y install bison ↵ : 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. : update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
$ sudo apt-get -y install flex ↵ : 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. : Processing triggers for libc-bin (2.23-0ubuntu10) ...
$ sudo apt-get -y install texinfo ↵ : 0 upgraded, 35 newly installed, 0 to remove and 1 not upgraded. : Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
$ sudo apt-get -y install libtool ↵ : 0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded. : Processing triggers for libc-bin (2.23-0ubuntu10) ...
$ sudo apt-get -y install libncurses5-dev ↵ : 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. : Setting up libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
$ sudo apt-get -y install wget ↵ : 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
$ sudo apt-get -y install gawk ↵ : 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
git
wget
gawk
は、既にインストールされていたようです。
しかしここまでは前回でも順調に進んでいました。ここからが注目です。
$ sudo apt-get -y install libc6-dev-amd64 ↵ : E: Unable to locate package libc6-dev-amd64
あれ?前回と同じエラーが出ました。
再びエラーとの格闘が始まりそうです。