さくらの共有レンタルサーバにfcgiとfcgiのgemライブラリをインストールするコマンドまとめスクリプト

  • Download Gist
fcgi_easy_install_for_sakura.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.