移植boa出现的问题

小型系统的轻量级WebServer主要有:lighttpd、thttpd、shttpd和boa等等。移植参考(https://blog.csdn.net/sdvch/article/details/38967655 )

解压命令:tar -zvxf memcached-1.4.34.tar.gz 

问题1:

  gzip: stdin: not in gzip format

  tar: Child returned status 1

  tar: Error is not recoverable: exiting now

  解决办法:  tar -vxf boa-0.94.13.tar

问题2:修改完Makefile后执行make 

    提示:make: yacc: Command not found

     Makefile:59: recipe for target 'y.tab.c' failed

     make: *** [y.tab.c] Error 127

      解决办法:   apt-get install bison  

                         apt-get install flex

问题3: 提示错误util.c:100:1: error: pasting "t" and "->"does not give a valid preprocessing token make: *** [util.o]

     解决办法: 修改 src/compat.h  

找到#defineTIMEZONE_OFFSET(foo) foo##->tm_gmtoff 

修改成#defineTIMEZONE_OFFSET(foo) (foo)->tm_gmtoff


感谢参考:

https://www.cnblogs.com/llxx07/p/6409384.html

https://blog.csdn.net/xdw1985829/article/details/6672742

https://blog.csdn.net/zxhio/article/details/80312316

你可能感兴趣的:(移植boa出现的问题)