Skip to content

Instantly share code, notes, and snippets.

@iwakou
Created June 21, 2011 16:13
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iwakou/1038210 to your computer and use it in GitHub Desktop.
さくらの共有レンタルサーバに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