Estou com dificuldades para instalar o darkstat em um servidor Amazon EC2 executando o Amazon Linux. Alguma dica?

1

Olá e obrigado antecipadamente por ler esta questão. Disclaimer: Eu ainda sou um novato quando se trata de gerenciar um servidor. Estou executando um servidor Amazon EC2 (que está executando o Amazon Linux) e estou tentando instalar o darkstat (um monitor de tráfego - link ) via SSH, mas estou com dificuldades.

Infelizmente, sudo yum install darkstat não funciona (aparentemente o darkstat não faz parte do repositório da Amazon). Eu tentei instalar manualmente o darkstat seguindo os seguintes passos (que são recomendados no site do darkstat):

  • Primeiro, instalei os pré-requisitos:

    sudo yum groupinstall "Development Tools"
    sudo yum install libpcap-devel
    
  • Então comecei o processo de instalação do darkstat:

    cd /usr/src (which could be the wrong location for all I know)
    wget https://unix4lyfe.org/darkstat/darkstat-3.0.719.tar.bz2
    tar xjvf darkstat-3.0.719.tar.bz2
    cd darkstat-3.0.719
    ./configure
    make
    

De acordo com o guia darkset, eu deveria poder digitar "darkstat -i eth0" (sem aspas, é claro) neste ponto e a magia deve começar. Infelizmente eu recebi um temido "bash: darkstat: comando não encontrado" mensagem em vez disso, o que sugere que darkstat não conseguiu instalar.

Alguma ideia de onde estou errado durante a tentativa de instalação? Eu não notei nenhum erro gritante durante o processo de instalação - aqui está o log de instalação no caso de ser útil. Obrigado novamente por dar uma olhada nesta questão e agradeço muito as sugestões que você possa ter:

[root@ip-xx-xx-xx-xx darkstat-3.0.719]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for C/C++ restrict keyword... __restrict
checking if we want debug code... sure
checking if your C compiler wants a hit off the pipe... sure does
checking if your C compiler has a link-time optimizer... sure does
checking for deflate in -lz... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing hstrerror... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking for library containing getifaddrs... none required
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for pcap_loop in -lpcap... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for library containing setproctitle... no
checking for library containing strlcpy... no
checking for library containing strlcat... no
checking bsd/string.h usability... no
checking bsd/string.h presence... no
checking for bsd/string.h... no
checking bsd/unistd.h usability... no
checking bsd/unistd.h presence... no
checking for bsd/unistd.h... no
checking for library containing clock_gettime... none required
configure: creating ./config.status
config.status: creating Makefile
config.status: creating darkstat.8
config.status: creating config.h
config.status: config.h is unchanged
[root@ip-xx-xx-xx-xx darkstat-3.0.719]#
    
por Steve F. 04.06.2016 / 10:06

0 respostas