?

Log in

No account? Create an account
Tonchik

Tonchik
Date: 2014-05-09 18:25
Subject: nagios @ freebsd 10
Security: Public
Tags:it, охереваю
Не можете собрать 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
Post A Comment | | Flag | Link






browse
my journal
November 2017