[Nut-upsuser] Fwd: NUT on FreeBSD

Herman J van der Merwe herman at mercygate.com
Mon Feb 12 14:49:18 CET 2007


Daniel, you asked why I did not use the port for NUT. Here is why.

I did not use ports (which is my fav way of doing installations, because the 
port is broken for 2.0.5. I can either spend the time figuring out how to 
fix the port or to alternatively learn the program.

BROKEN PORT - -------

fileserver# cd /usr/ports/sysutils/nut
fileserver# make
===>  Building for nut-2.0.5
cd: can't cd to /usr/ports/sysutils/nut/work/nut-2.0.5
*** Error code 2

Stop in /usr/ports/sysutils/nut.
fileserver#
 -----------

If you look at ./work you will see it contains a directory nut-2.0.4 and NOT 
nut-2.0.5

So when you try and fix that by moving the directory to nut-2.0.5 you get 
the following pains:

--- Let's try again ------------------

fileserver# mv ./work/nut-2.0.4 ./work/nut-2.0.5
fileserver# make
===>  Building for nut-2.0.5
common/
drivers/
cc -I../include -O2 -fno-strict-aliasing -pipe  -Wall -Wsign-compare -c 
serial.c
cc -I../include -O2 -fno-strict-aliasing -pipe  -Wall -Wsign-compare -c 
dstate.c
cc -I../include -O2 -fno-strict-aliasing -pipe  -Wall -Wsign-compare  -o 
bestups bestups.o main.o serial.o dstate.o ../common/state.o 
../common/upsconf.o ../common/parseconf.o  ../common/common.o  -lutil
main.o: file not recognized: File truncated
*** Error code 1

Stop in /usr/ports/sysutils/nut/work/nut-2.0.5/drivers.
*** Error code 1

Stop in /usr/ports/sysutils/nut/work/nut-2.0.5.
*** Error code 1

Stop in /usr/ports/sysutils/nut.
fileserver#

---- time waistage for me ---

So .... I rather compiled from source!!

Regards
Herman 




More information about the Nut-upsuser mailing list