Fast CGI Development Kit をインストール
http://www.fastcgi.com の「API/Libraries」のThe Development Kit - C, C++, Perl, and Java, libraries as well as assorted documentation.の Current Download から fcgi.tar.gz をダウンロードする。普通にコンパイル・インストール。
$ wget http://www.fastcgi.com/dist/fcgi.tar.gz
$ tar zxvf fcgi-2.4.0.tar.gz
$ cd fcgi-2.4.0
$ ./configure
$ make
# make install
ruby-fcgi をインストール
http://rubyforge.org/frs/?group_id=926 から ruby-fcgi-0.8.7.tar.gz をインストールする。C バージョンで config を行うのに、README のとおり一般ユーザーで ruby install.rb config したら上手くいかなかった。
$ wget http://rubyforge.org/frs/download.php/11368/ruby-fcgi-0.8.7.tar.gz
$ tar zxvf ruby-fcgi-0.8.7.tar.gz
$ cd ruby-fcgi-0.8.7
# ruby install.rb config – –with-fcgi-include=/usr/local/include –with-fcgi-lib=/usr/local/lib
# ruby install.rb setup
# ruby install.rb install