ubuntu下编译安装Larbin

Larbin的安装:
tar -zxvf  larbin-2.6.3.tar.gz
cd larbin-2.6.3
./configure
make

这时会报错,修改
adns文件夹下internal.h文件569-571行:
adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
vbuf *vb, parsedomain_flags flags,
const byte *dgram, int dglen, int*cbyte_io, int max);
更正为:
adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
vbuf *vb, adns_queryflags flags,
const byte *dgram, int dglen, int*cbyte_io, int max);

复制/usr/include/c++/的iostream文件到larbin的src目录下,并改名为iostream.h,在文件中添加一句using namespace std;

修改编译选项配置:vi options.h 
修改输出选项: 将//#define SIMPLE_SAVE前的//取消掉,在#define DEFAULT_OUTPUT前加// 
(注释相当清楚) 

检查系统是否满足编译要求:./configure 
编译:make 
运行:进入larbin目录:./larbin 
ctrl+c 终止程序

PS: 
配置文件主要是options.h 和larbin.conf,可以根据自己的需求配置 
在浏览器输入localhost:8081可以看到爬到的的网页的统计信息
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值