Macで開発版GNU Screenをビルドする
事前準備
m4, autoconf, automakeあたりが必要っぽい。m4は入っていたから他をbrewでインストールした。
$ brew install autoconf $ brew install automake
バージョン確認しとく。
$ autoconf --version autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. $ automake --version automake (GNU automake) 1.12.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org>. $ m4 --version GNU M4 1.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Rene' Seindal.
開発版GNU Screenの取得とビルド
なんか出てるけどスルーした。
$ git clone git://git.savannah.gnu.org/screen.git $ cd screen/src $ ./autogen.sh autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader: WARNING: is deprecated and discouraged. autoheader: autoheader: WARNING: Using the third argument of `AC_DEFINE' and autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without autoheader: WARNING: `acconfig.h': autoheader: autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader: [Define if a function `main' is needed.]) autoheader: autoheader: WARNING: More sophisticated templates can also be produced, see the autoheader: WARNING: documentation.
インストール
自分のホームディレクトリにインストールする。オプションは参考からそのまま頂いてきたのでよくわかってない。
$ ./configure --prefix=$HOME/local --enable-pam --enable-colors256 --enable-rxvt_osc --enable-use-locale --enable-telnet $ make $ make install
バージョン確認。
$ cd $HOME/local/bin $ ./screen --version Screen version 4.01.00devel (GNUdb59704) 2-May-06