varnish 4.0编译安装小记

varnish 4.0 编译问题

centos-6.5 x86环境


装varnish遇到几个错误
要先安装python-docutils
然后提示error1,于是安装:libedit-devel
然后提示error2,安装readline,readline-devel,readline-static
发现rl_callback_handler_remove还是undefined,直接重新make clean,configure一遍,然后再make的时候就正常通过了~~~

 

error1:libedit-dev 未安装

error2:

varnishadm-varnishadm.o: In function `cli_write':
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:81: undefined reference to `rl_callback_handler_remove'
varnishadm-varnishadm.o: In function `interactive':
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:240: undefined reference to `rl_already_prompted'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:241: undefined reference to `rl_callback_handler_install'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:242: undefined reference to `rl_attempted_completion_function'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:307: undefined reference to `rl_callback_read_char'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:304: undefined reference to `rl_forced_update_display'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:293: undefined reference to `rl_callback_handler_remove'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:290: undefined reference to `rl_callback_handler_remove'
varnishadm-varnishadm.o: In function `send_line':
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:188: undefined reference to `rl_callback_handler_remove'
varnishadm-varnishadm.o: In function `pass':
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:343: undefined reference to `rl_callback_handler_remove'
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:361: undefined reference to `rl_callback_handler_remove'
varnishadm-varnishadm.o: In function `varnishadm_completion':
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:223: undefined reference to `rl_completion_matches'
varnishadm-varnishadm.o: In function `send_line':
/home/yantze/soft/varnish-4.0.0-beta1/bin/varnishadm/varnishadm.c:186: undefined reference to `add_history'
collect2: ld returned 1 exit status
make[3]: *** [varnishadm] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

 


posted @ 2014-04-19 19:13  yantze  阅读(1567)  评论(0编辑  收藏  举报