准备安装包
fcgi-2.4.1-SNAP-0910052249.tar.gz
spawn-fcgi-1.6.4.tar.gz
- 解压
tar zxvf fcgi-2.4.1-SNAP-0910052249.tar.gz
tar zxvf spawn-fcgi-1.6.4.tar.gz
- 安装 fcgi
cd fcgi-2.4.1-SNAP-0910052249
./configure
make
make 出错:
- 解决方案:
找到 fcgio.h 或 fcgio.cpp 文件添加:
#include <stdio.h>
继续:
make
make install
安装 spawn-fcgi
./autogen.sh
./configure
make
make install
- 报错
./autogen.sh: 11: ./autogen.sh: autoreconf: not found
autoconf
aclocal
autoconf
又报错。。。
算了不折腾了重新下个
wget http://download.lighttpd.net/spawn-fcgi/releases-1.6.x/spawn-fcgi-1.6.4.tar.gz
./configure
make&&make install
一气呵成~!