1、编译和安装:
1)、下载:从http://www.fastcgi.com/drupal/下载fcgi.tar.gz;
2)、解压:tar xzvf fcgi.tar.gz
3)、配置:
./configure --prefix=/home/pub/johnny/network/install-fcgi --host=mips-linux-gnu --disable-FEATURE --without-PACKAGE "CC=mips-linux-gnu-gcc -EL" "CFLAGS=-EL" "LDFLAGS=-EL" "CXX=mips-linux-gnu-g++ -EL" "CXXFLAGS=-EL"
4)、make;在make时出现以下错误:
fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()':
fcgio.cpp:50: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)':
fcgio.cpp:70: error: 'EOF' was not declared in this scope
fcgio.cpp:75: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()':
fcgio.cpp:86: error: 'EOF' was not declared in this scope
fcgio.cpp:87: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()':
fcgio.cpp:113: error: 'EOF' was not declared in this scope
解决办法:
在/include/fcgio.h文件中加上 #include <cstdio>,然后再编译安装就通过了。
是由于GCC版本问题导致。
5)、make install;
在/home/pub/johnny/network/install-fcgi有 bin/、include/、lib/三个文件夹;
copy到开发板上;
2、测试:
1)、