[Linux] Docker上に環境を移動した (9cc)

今までMac上のParallels Desktop Lite上のUbuntuで開発していたのですが、アップデートしたら有料サブスクリプションモデルになってしまっていました。
そのまま使ってもよかったのですが、Docker上のUbuntuでも良いのではと思い環境を以降しました。
以降すると言ってもVimビルドするぐらいですが...
Vimのconfigureで以下のエラーになりました。

checking for tgetent in -lcurses... no
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.
root@34b3509f3ae0:~/dev/vim# apt build-dep vim
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

どうやら, terminal libraryがインストールされていないと怒っているようです。

解決方法

libncurses5-devをインストールします。
(下の例はncurses-devでインストールしていますが、結局libncurses5-devが入っているようです)

root@34b3509f3ae0:~/dev/vim# apt install ncurses-dev 
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
The following additional packages will be installed:
  libtinfo-dev
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 256 kB of archives.
After this operation, 1422 kB of additional disk space will be used.

環境の以降はこれでできました。
ターミナルで使う分には、Dockerとかで良さそうです。

0 件のコメント :

コメントを投稿