0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ncurses 6.2とscreen 4.8.0インストール

0
Last updated at Posted at 2020-09-04

■ncursesインストール

Announcing ncurses 6.2
https://invisible-island.net/ncurses/announce.html
Index of /pub/gnu/ncurses
https://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D

■ソースからncursesをインストールする - noknow
https://noknow.info/it/os/install_ncurses_from_source?lang=ja

># ./configure --prefix=/usr/local/ncurses/6_1 --with-shared --with-pkg-config-libdir=/usr/local/ncurses/6_1/lib/pkgconfig --enable-pc-files
configureオプション
--with-shared
共有ライブラリを生成する
--with-pkg-config-libdir
.pcファイルの生成先パス
--enable-pc-files
.pcファイルを生成する

# ncurses
NCURSES_INC=/usr/local/include/ncurses

export CPATH=$NCURSES_INC:$CPATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

重要
インストール: ncurses | 端末操作の基本ライブラリー – senooken.jp
https://senooken.jp/post/2018/06/20/
> --with-shared --with-termlib

■実行した./configure
./configure --prefix=/usr/local/stow/ncurses --with-shared --enable-pc-files --with-termlib

■screenとは

GNU screenのattach時に環境変数を自動的に引き継ぐ - 貳佰伍拾陸夜日記
https://tarao.hatenablog.com/entry/20101025/1287971794

■GNU screenインストール

tmux同様 ncurses が必要。オプションは --enable-colors256 ぐらい?
もしかして、libcryptも?

公式
Screen - GNU Project - Free Software Foundation
https://www.gnu.org/software/screen/
Index of /gnu/screen
https://ftp.gnu.org/gnu/screen/?C=M;O=D

$ wget https://ftp.gnu.org/gnu/screen/screen-4.8.0.tar.gz
$ tar xzvf screen-4.8.0.tar.gz
$ cd screen-4.8.0
$ cd screen/src
$ sh autogen.sh
$ ./configure --enable-colors256 --prefix=/usr/local
(Macでビルドする場合は --prefix=/usr/local が必要。/usr/local/stowはNG)
$ make
$ make install

Gnu screen-4.1.0のインストール – senooken.jp
https://senooken.jp/post/2013/04/15/

git.savannah.gnu.org/
http://git.savannah.gnu.org/

必読

開発版GNU Screenでコピペを極める - Keep It Simple, Stupid
http://yskwkzhr.blogspot.com/2011/12/master-copy-and-paste-of-gnu-screen.html

■エラーやその他

Cygwin で GNU Screen を使って画面の縦分割をしてみる
https://server-setting.info/blog/cygwin-gnu-screen-install.html

MSYS2 に gnu screen をインストールする - Qiita
https://qiita.com/jp_yen/items/443f29945a154555745c

■実行した./configure
./configure --enable-colors256 --prefix=/usr/local

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?