メモ CentOS5(32bit)にscreen4.1.0を入れる

gitをインストールするためRPMforgeリポジトリを追加する

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

gitをインストール

yum --enablerepo=rpmforge install git

gitからscreenを入手

git clone git://git.savannah.gnu.org/screen.git
cd screen/src

configureの生成

autoconf

autoconfが古いとエラーになるらしい
インストールにはautoconf 2.6.0が必要
ちなみに自分の環境は2.5.9

# autoconf -V
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 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.

GNU autoconfを取得しインストール

wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
tar zxfv autoconf-2.60.tar.gz
cd autoconf-2.60
./configure --prefix=/opt
make
make install

再度configureの生成

/opt/bin/autoconf
/opt/bin/autoheader

screenのインストール

./configure --prefix=/opt
make
make install

4.1.0だと縦割りができるらしい
それ以前のバージョンではパッチなどで対応できるようだが
まずは縦割りできるscreenをインストールすることが目的だったので4.1.0をインストール
/optにしたのは、標準パッケージとかぶらないようにするため
ここが適切なのかは不明・・・

今後やってみたいこと
・個人用にrcを編集
・screen自体のカスタマイズも検討
いい感じならrcなどを仕事でも使いたいな