Problema
Ao instalar o Ocs Reports executando o comando “sudo sh setup.sh” o seguinte erro acontece:
*** ERROR: Prepare failed, please look at error in /home/elder/downloads/ocs/OCSNG_UNIX_SERVER-2.10.0/ocs_server_setup.log and fix ! Installation aborted !
Ao olhar no log temos:
...... "/usr/bin/perl" Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Apache::Ocsinventory Writing MYMETA.yml and MYMETA.json ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make: *** [Makefile:833: Makefile] Error 1
Solução 01
No meu caso esse erro ocorreu por conta do horário e data errados.
Ajuste a data ou horário e execute
sudo sh setup.sh
Solução 02
Algumas usuários citaram a falta de instalar numactl
sudo apt install numactl -y
Essa solução 02 não foi testada por mim e nem pesquisada a fundo se realmente tem fundamento.