linux 安装 fastcgi,ubuntu – 安装FastCGI开发套件

我试图从

here安装FastCGI开发套件.

但是当我想要制作时,我会得到以下错误.

我不知道如何解决.有任何想法吗?我正在使用Ubuntu 64位.

*** Warning: This library needs some functionality provided by -lnsl.

*** I have the capability to make that library automatically link in when

*** you link to this library. But I can only do this if you have a

*** shared version of the library, which you do not appear to have.

*** The inter-library dependencies that have been dropped here will be

*** automatically added whenever a program is linked with this library

*** or is declared to -dlopen it.

gcc -shared libfcgi_la-fcgiapp.lo libfcgi_la-fcgi_stdio.lo libfcgi_la-os_unix.lo -Wl,-soname -Wl,libfcgi.so.0 -o .libs/libfcgi.so.0.0.0

(cd .libs && rm -f libfcgi.so.0 && ln -s libfcgi.so.0.0.0 libfcgi.so.0)

(cd .libs && rm -f libfcgi.so && ln -s libfcgi.so.0.0.0 libfcgi.so)

ar cru .libs/libfcgi.a libfcgi_la-fcgiapp.o libfcgi_la-fcgi_stdio.o libfcgi_la-os_unix.o

ranlib .libs/libfcgi.a

creating libfcgi.la

(cd .libs && rm -f libfcgi.la && ln -s ../libfcgi.la libfcgi.la)

source='fcgio.cpp' object='fcgio.lo' libtool=yes \

depfile='.deps/fcgio.Plo' tmpdepfile='.deps/fcgio.TPlo' \

depmode=gcc3 /bin/sh ../depcomp \

/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -c -o fcgio.lo `test -f fcgio.cpp || echo './'`fcgio.cpp

rm -f .libs/fcgio.lo

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -c fcgio.cpp -MT fcgio.lo -MD -MP -MF .deps/fcgio.TPlo -fPIC -DPIC -o .libs/fcgio.lo

fcgio.cpp: In destructor 'Virtual fcgi_streambuf::~fcgi_streambuf()':

fcgio.cpp:50:14: error: 'EOF' was not declared in this scope

fcgio.cpp: In member function 'Virtual int fcgi_streambuf::overflow(int)':

fcgio.cpp:70:72: error: 'EOF' was not declared in this scope

fcgio.cpp:75:14: error: 'EOF' was not declared in this scope

fcgio.cpp: In member function 'Virtual int fcgi_streambuf::sync()':

fcgio.cpp:86:18: error: 'EOF' was not declared in this scope

fcgio.cpp:87:41: error: 'EOF' was not declared in this scope

fcgio.cpp: In member function 'Virtual int fcgi_streambuf::underflow()':

fcgio.cpp:107:35: error: 'EOF' was not declared in this scope

make[2]: *** [fcgio.lo] Error 1

make[2]: Leaving directory `/home/Downloads/fcgi-2.4.0/libfcgi'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/Downloads/fcgi-2.4.0'

make: *** [all] Error 2

vi fcgi-2.4.0/libfcgi/fcgio.cpp

并添加#include< stdio.h>,然后编译,这将做到这一点.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值