1.下载地址 源代码下载&版本(0.94.13)
2.编译安装
实验环境:Linux 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux
a.解压:tar xvf boa-0.94.13.tar.gz
b.进入src目录,运行:./configure(生成makefile)
然后运行:make
(问题1)出现如下错误:
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
安装:sudo apt-get install bison flex
(问题2)出现如下错误:
yacc -d boa_grammar.y
make: yacc: Command not found
Makefile:59: recipe for target 'y.tab.c' failed
make: *** [y.tab.c] Error 127
(问题3) 出现如下错误:
compat.h:120:30: note: in definition of macro ‘TIMEZONE_OFFSET’
将#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff修改成 #define TIMEZONE_OFFSET(foo) (foo)->tm_gmtoff
(问题2)
[25/Jun/2018:02:43:20 +0000] log.c:73 - unable to dup2 the error log: Bad file descriptor
在/var/log下新建boa目录,权限为可读可写;
复制可执行文件:sudo cp boa /usr/bin/
开机自启动,在/etc/rc.local文件中写入: /usr/bin/boa
3.配置详解
4.相关资源: