Tonchik (tonchikk) wrote,
Tonchik
tonchikk

nagios @ freebsd 10

Не можете собрать nagios 4 на FreeBSD 10?
На этапе
cc -Wall -I.. -DHAVE_CONFIG_H -DNSCORE -o nagios
вываливается
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Не отчаивайтесь, это можно сделать:
CPPFLAGS="-I/usr/local/include" CC=/usr/local/bin/gcc47 CPP=/usr/local/bin/cpp47 LDFLAGS="-v -L/usr/local/lib" CFLAGS="-I/usr/local/include" \
./configure --enable-event-broker --enable-nanosleep

CPPFLAGS="-I/usr/local/include" CC=/usr/local/bin/gcc47 CPP=/usr/local/bin/cpp47 LDFLAGS="-v -L/usr/local/lib" CFLAGS="-I/usr/local/include" \
gmake all

pw group add nagios
pw user add nagios -c 'Nagios maint user' -m -d /home/nagios -s /usr/local/bin/bash

vim Makefile
INIT_OPTS=-o root -g wheel

gmake install install-init install-commandmode install-config install-webconf install-classicui


должен стоять gcc & gmake
Tags: it, охереваю
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments