lost and found ( for me ? )

install unbound 1.5.4 on CentOS 6.6 64bit

Here are logs when compiling unbound with libevent on CentOS 6.6 64bit

# cat /etc/centos-release ; uname  -ri
CentOS release 6.6 (Final)
2.6.32-504.30.3.el6.x86_64 x86_64


- download ldns and compile it

# tar xzvf ldns-1.6.17.tar.gz
# cd ldns-1.6.17
# ./configure
# make

# make install

- download libevent and extract it

# tar xzvf libevent-2.0.21-stable

- compile unbound

# tar xzvf unbound-1.5.4.tar.gz
# cd  unbound-1.5.4
# ./configure --with-libevent=/root/Unbound_works/libevent-2.0.21-stable
# make 
# make install

- error

# /usr/local/sbin/unbound --version
/usr/local/sbin/unbound: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

- make a symbolic file

# ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5


# /usr/local/sbin/unbound --version
/usr/local/sbin/unbound: invalid option -- '-'
usage:  unbound [options]
        start unbound daemon DNS resolver.
-h      this help
-c file config file to read instead of /usr/local/etc/unbound/unbound.conf
        file format is described in unbound.conf(5).
-d      do not fork into the background.
-v      verbose (more times to increase verbosity)
Version 1.5.4
linked libs: libevent 2.0.21-stable (it uses epoll), OpenSSL 1.0.1e-fips 11 Feb 2013
linked modules: dns64 validator iterator
BSD licensed, see LICENSE in source package for details.
Report bugs to unbound-bugs@nlnetlabs.nl


start unbound

# /usr/local/sbin/unbound -c /usr/local/etc/unbound/unbound.conf

# lsof -ni:53
COMMAND  PID    USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
unbound 5369 unbound    5u  IPv4 78148260      0t0  UDP 127.0.0.1:domain
unbound 5369 unbound    6u  IPv4 78148262      0t0  TCP 127.0.0.1:domain (LISTEN)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.