Menu

Compilando para FreeBSD

Zamana
2017-06-11
2017-06-11
  • Zamana

    Zamana - 2017-06-11

    Pessoal,

    Estou tentando migrar de Linux para FreeBSD, e preciso compilar esse projeto.

    Ao rodar o ./configure, para no seguinte:

    $ ./configure checking for true... /usr/bin/true checking for false... /usr/bin/false checking build system type... x86_64-unknown-freebsd11.0 checking host system type... x86_64-unknown-freebsd11.0 checking for g++... g++ 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 g++ accepts -g... yes checking for gcc... gcc 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 how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking for library containing strerror... none required checking for shutdown... no checking for shutdown.bsd... no configure: error: Missing required tool; need any one of: shutdown shutdown.bsd

    Alguém sabe o que falta para eu ter esse "shutdown/shutdown.bsd" no ambiente?

    Obrigado!

     
  • Zamana

    Zamana - 2017-06-11

    Pessoal,

    Minutos após postar a questão aqui eu consegui compilar o apcupsd para FreeBSD 11.

    O truque foi rodar o ./configure como root, via sudo. Assim ele reconheceu o /sbin/shutdown e funcionou.

    Portanto, aqui está a dica: este software compila no FreeBSD! Se funciona mesmo eu só vou saber nas próximas semanas.

    Até+!

     

Log in to post a comment.