[Nut-upsuser] Bug#439055: hid driver tries to mmap huge area, fails

Charles Lepple clepple at gmail.com
Sat Sep 8 12:54:08 UTC 2007


On 9/8/07, Justin Piszcz <jpiszcz at lucidpixels.com> wrote:
> By the way, ./configure --prefix=/app/nut-2.2.0-r1090:
>
> Making install in scripts
> make[1]: Entering directory `/home/war/nut-2.2.0-r1090/scripts'
> Making install in hotplug
> make[2]: Entering directory `/home/war/nut-2.2.0-r1090/scripts/hotplug'
> make[3]: Entering directory `/home/war/nut-2.2.0-r1090/scripts/hotplug'
> make[3]: Nothing to be done for `install-exec-am'.
> test -z "/etc/hotplug/usb" || /bin/mkdir -p "/etc/hotplug/usb"
>   /usr/bin/install -c -m 644 'libhid.usermap'
> '/etc/hotplug/usb/libhid.usermap'
> /usr/bin/install: cannot create regular file
> `/etc/hotplug/usb/libhid.usermap': Permission denied
> make[3]: *** [install-dist_hotplugusbDATA] Error 1
> make[3]: Leaving directory `/home/war/nut-2.2.0-r1090/scripts/hotplug'
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory `/home/war/nut-2.2.0-r1090/scripts/hotplug'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/war/nut-2.2.0-r1090/scripts'
> make: *** [install-recursive] Error 1
> Command exited with non-zero status 2
> 1.90user 1.52system 0:03.40elapsed 100%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (0major+684410minor)pagefaults 0swaps

Try "make -k install" instead. That will still produce errors, but
will keep going past the errors.

The problem is that --prefix= is meant to deal with alternate
locations for project-specific (NUT-specific) binaries and data files,
but the files you are referring to are used by other system
components.

You could also use "make DESTDIR=...", and move the drivers over by hand.

-- 
- Charles Lepple



More information about the Nut-upsuser mailing list