domingo, fevereiro 15, 2009

Instalação do arpd 0.2 no CentOS 5.2 via compilação

# é necessário a instalação da libdnet e libevent manualmente via compilação, tal qual exemplificado no artigo de instalação do Honeyd 1.5c.
# required the instalation of libdnet and libevent manually by compilation, as exampled in the article (post) of Honeyd 1.5c installation.

# Ao pacote original (http://www.citi.umich.edu/u/provos/honeyd/arpd-0.2.tar.gz) foi aplicado o patch disponível em http://honeyd.org/phpBB2/viewtopic.php?t=471, responsável pela compilação sem erros com gcc 4.x
# To the original packet (http://www.citi.umich.edu/u/provos/honeyd/arpd-0.2.tar.gz) has applied the pacth avaliable in (http://www.citi.umich.edu/u/provos/honeyd/arpd-0.2.tar.gz), responsible by compilation without erros with gcc 4.x


wget http://aaaleonardo.googlecode.com/files/arpd0.2patch.tar.gz
tar -zxvf arpd0.2patch.tar.gz
cd arpd
./configure --with-libdnet=/usr/local/libdnet --with-libevent=/usr/local/libevent
make
ln -s /usr/local/libevent/lib/libevent-1.4.so.2 /usr/lib/
make install
/usr/local/sbin/arpd --yournetwork_or_iprange

#



2 comentários:

Dave disse...

Hi mate,

I tried to install arpd in opensuse 11.2 but I get a strange error.

./configure --with-libdnet=/usr/local/libdnet --with-libevent=/usr/local/libevent
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for mawk... no
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for libdnet... /usr/local/libdnet
configure: error: dnet-config not found in /usr/local/libdnet/bin

I am not good at compiling and the os that I use makes things difficult.

Leonardo Andrade disse...

Hi Dave,

Do you install libdnet and libevent as explained in the post about Honeyd 1.5c installation.

The error says that dnet-config binary isn't in /usr/local/libdnet/bin. So, you have, at least, 2 choices:

* install libdnet and libevent as showed in "Honeyd 1.5c installation post" (search by 'honeyd' in the blog).

* search for the real location of dnet-config in opensuse 11.2. (#find / -name "dnet-config"), if this is the case.