読者です 読者をやめる 読者になる 読者になる

VarnishのコンパイルでError 1

エラーメモ

環境

現象

Varnishをコンパイル中に以下のエラーが発生。

varnishadm.c: In function ‘interactive’:
varnishadm.c:234: error: ‘rl_already_prompted’ undeclared (first use in this function)
varnishadm.c:234: error: (Each undeclared identifier is reported only once
varnishadm.c:234: error: for each function it appears in.)
varnishadm.c:236: error: ‘rl_attempted_completion_function’ undeclared (first use in this function)
varnishadm.c:297: warning: implicit declaration of function ‘rl_forced_update_display’
varnishadm.c:300: warning: implicit declaration of function ‘rl_callback_read_char’
make[3]: *** [varnishadm-varnishadm.o] Error 1
make[3]: Leaving directory `/home/vagrant/download/varnish-3.0.6/bin/varnishadm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vagrant/download/varnish-3.0.6/bin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vagrant/download/varnish-3.0.6'
make: *** [all] Error 2

原因

readline-develがない。

対策

$ yum install readline-devel

参考