Create a gist now

Instantly share code, notes, and snippets.

さくらの共有レンタルサーバにfcgiとfcgiのgemライブラリをインストールするコマンドまとめスクリプト
#!/bin/sh
#=============================
# make work directory
#=============================
mkdir -p $HOME/local/fcgi/src
cd $HOME/local/fcgi/src
#============================
# install fcgi
#============================
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar xzvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --prefix=$HOME/local/fcgi
make
make install
gem install fcgi -- --with-fcgi-include=$HOME/local/fcgi/include --with-fcgi-lib=$HOME/local/fcgi/lib
cd ../
rm -rf fcgi-2.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment