[Fwd: Re: [Nut-upsuser] Install problem & Geek Squad UPS]

Peter Selinger selinger at mathstat.dal.ca
Fri Jan 19 23:34:18 CET 2007


Hi Gary,

sorry, that was my fault. I quoted the wrong file (from the
development version, not 2.0.5). In version 2.0.5, the information is
also in the file INSTALL, but it is contained in step 2, not step 1:

 2. Build the programs.

        make

    Optionaly, you can also build the USB drivers using:

        make usb

    Note that you need to install libusb development package or files.

Them NUT version you have (2.0.5) is the correct one. -- Peter

Gary Redden wrote:
> 
> Here is what I found in the nut-2.0.5 top level directory. Where do I 
> get the correct version?
> ============================================================================
> 
>   Build and install
>   =================
> 
> 
>  1. Configure the source tree for your system.  Add the --with-user
>     switch to set the user name that you created above.  If you need
>     any other switches for configure, add them here.
> 
>     ./configure --with-user=nut
> 
>     If you alter paths with additional switches, be sure to use those
>     new paths while reading the rest of the steps.   
> 
>     *** Reference: docs/configure.txt
> 
> ---------------------------------------------------------------------------
> Peter Selinger wrote:
> > >From the file INSTALL, step 1:
> >
> >  1. Configure the source tree for your system.  Add the --with-user
> >     switch to set the user name that you created above.
> >
> >         ./configure --with-user=nut
> >
> >     If you need any other switches for configure, add them here.  For
> >     example:
> >
> >     * to build and install USB drivers, add --with-usb (note that you
> >       need to install libusb development package or files).
> >
> > That last sentence answers your question. Libusb is at:
> > http://libusb.sourceforge.net/  (or type "libusb" into Google).
> >
> > -- Peter
> >
> > Gary Redden wrote:
> >   
> >> When I try to build newhidups I seem to be missing a file (usb.h) or=20
> >> should be setting a parameter SHUT_MODE. I did a search of my system and=20
> >> do not have the file usb.h. I also poked around on WebSvn but could not=20
> >> turn up the file. I think SHUT_MODE is for a different device than I=20
> >> have. Where do I find usb.h? Is this the correct list for this problem?
> >> Error messages
> >>
> >> gary at redden-p700:/home/nut/nut-2.0.5/drivers$ make newhidups
> >> gcc -I../include -O -Wall -Wsign-compare -c newhidups.c
> >> In file included from newhidups.c:25:
> >> libhid.h:50:18: error: usb.h: No such file or directory
> >> In file included from newhidups.c:25:
> >> libhid.h:51: error: syntax error before =91hid_dev_handle=92
> >> libhid.h:51: warning: type defaults to =91int=92 in declaration of=20
> >> =91hid_dev_handle=92
> >> libhid.h:51: warning: data definition has no type or storage class
> >> libhid.h:178: error: syntax error before =91*=92 token
> >> libhid.h:183: error: syntax error before =91*=92 token
> >> libhid.h:184: error: syntax error before =91*=92 token
> >> libhid.h:186: error: syntax error before =91*=92 token
> >> libhid.h:188: error: syntax error before =91*=92 token
> >> libhid.h:190: error: syntax error before =91*=92 token
> >> libhid.h:201: error: syntax error before =91*=92 token
> >> libhid.h:206: error: syntax error before =91*=92 token
> >> libhid.h:211: error: syntax error before =91*=92 token
> >> libhid.h:216: error: syntax error before =91*=92 token
> >> libhid.h:227: error: syntax error before =91*=92 token
> >> libhid.h:232: error: syntax error before =91*=92 token
> >> libhid.h:237: error: syntax error before =91*=92 token
> >> In file included from newhidups.c:26:
> >> newhidups.h:39: error: syntax error before =91*=92 token
> >> newhidups.h:39: warning: type defaults to =91int=92 in declaration of =91=
> >> udev=92
> >> newhidups.h:39: warning: data definition has no type or storage class
> >> newhidups.c:69: error: syntax error before =91*=92 token
> >> newhidups.c:69: warning: type defaults to =91int=92 in declaration of =91=
> >> udev=92
> >> newhidups.c:69: warning: data definition has no type or storage class
> >> make: *** [newhidups.o] Error 1
> >> gary at redden-p700:/home/nut/nut-2.0.5/drivers$
> >>
> >> Code from libhid.h
> >>
> >> #ifdef SHUT_MODE
> >> struct shut_dev_handle_s {
> >> int upsfd; /* point to main.c/upsfd */
> >> char *device_path;
> >> };
> >> typedef struct shut_dev_handle_s shut_dev_handle;
> >> typedef shut_dev_handle hid_dev_handle;
> >> #else
> >> #include <usb.h>
> >> typedef usb_dev_handle hid_dev_handle;
> >> #endif
> >>
> >>
> >> _______________________________________________
> >> Nut-upsuser mailing list
> >> Nut-upsuser at lists.alioth.debian.org
> >> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> >>
> >>     
> >
> >
> >   
> 
> 
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> 




More information about the Nut-upsuser mailing list