Came across this in the process of troubleshooting: https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html My whole reason for compiling from source is to add SSL support (as it doesn't seem available through the package manager). Apt list shows these installed: libusb-1.0-0-dev/stable,now 2:1.0.22-2 armhf [installed] libusb-1.0-0/stable,now 2:1.0.22-2 armhf [installed] libusb-1.0-doc/stable,now 2:1.0.22-2 all [installed,automatic] Config.log shows this: configure:8538: checking for libusb version via pkg-config configure:8545: checking via libusb-config configure:8557: result: none found Tried compiling without USB, fails but now complains it can't find OpenSSL. Apt list shows this installed: openssl/testing,now 1.1.1d-0+deb10u2+rpt1 armhf [installed] Compiling without USB or SSL compiles successfully. I assume NUT requires a specific version of these libraries, and if so, which versions are the right ones? Platform is a newly installed distro of latest Raspbian on a Raspberry Pi 3. When I installed from the package manager, everything worked great (just missing the SSL support). I've been referring to these docs: https://networkupstools.org/docs/user-manual.chunked/ar01s05.html https://networkupstools.org/docs/user-manual.chunked/ar01s09.html -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200322/5d0ff288/attachment.html>
On Mar 22, 2020, at 8:50 PM, Tyler Montney <montneytyler at gmail.com> wrote:> > Came across this in the process of troubleshooting: https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html <https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html>Take everything that guy says with a grain of salt ;-)> > My whole reason for compiling from source is to add SSL support (as it doesn't seem available through the package manager).The mainline Debian buster compiles nut against the Mozilla NSS library. Since the network code is in a library, you will only see the dependencies on libnss3 and libnspr4 from libupsclient4, not from nut-client and nut-server. I assume this holds true for Raspbian as well.> I've been referring to these docs: > > https://networkupstools.org/docs/user-manual.chunked/ar01s05.html <https://networkupstools.org/docs/user-manual.chunked/ar01s05.html> > https://networkupstools.org/docs/user-manual.chunked/ar01s09.html <https://networkupstools.org/docs/user-manual.chunked/ar01s09.html>It's been hard to keep the NUT manual in sync with the various distributions, so the latest information for building is here: https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-Ubuntu <https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-Ubuntu>> _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200322/6fd6516d/attachment.html>
On March 23, 2020 12:50:11 AM UTC, Tyler Montney <montneytyler at gmail.com> wrote:>Came across this in the process of troubleshooting: >https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html > >My whole reason for compiling from source is to add SSL support (as it >doesn't seem available through the package manager). Apt list shows >these >installed: > >libusb-1.0-0-dev/stable,now 2:1.0.22-2 armhf [installed] >libusb-1.0-0/stable,now 2:1.0.22-2 armhf [installed] >libusb-1.0-doc/stable,now 2:1.0.22-2 all [installed,automatic] > >Config.log shows this: > >configure:8538: checking for libusb version via pkg-config >configure:8545: checking via libusb-config >configure:8557: result: none found > >Tried compiling without USB, fails but now complains it can't find >OpenSSL. >Apt list shows this installed: > >openssl/testing,now 1.1.1d-0+deb10u2+rpt1 armhf [installed] > >Compiling without USB or SSL compiles successfully. I assume NUT >requires a >specific version of these libraries, and if so, which versions are the >right ones? Platform is a newly installed distro of latest Raspbian on >a >Raspberry Pi 3. When I installed from the package manager, everything >worked great (just missing the SSL support). I've been referring to >these >docs: > >https://networkupstools.org/docs/user-manual.chunked/ar01s05.html >https://networkupstools.org/docs/user-manual.chunked/ar01s09.htmlYou mention compiling against libusb-1.0 but do not mention which NUT codebase you use. The master branch at the moment does not support it, only libusb-0.1 and there are some known connectivity stability bugs associated with that. Currently there is a long-pending competition of several implementations, neither of which were merged yet since respective change authors did not consider their work perfect enough: https://github.com/networkupstools/nut/issues/300 https://github.com/networkupstools/nut/tree/libusb-1.0 https://github.com/networkupstools/nut/tree/libusb-1.0%2B0.1 https://github.com/networkupstools/nut/tree/libusb-compat-1.0 I believe you should pick whichever works for you (please report on those which do not work and how, if any), sync with current master should be possible for all of them. Hope this helps, Jim Klimov -- Typos courtesy of K-9 Mail on my Android
Compiling against http://www.networkupstools.org/source/2.7/nut-2.7.4.tar.gz. I also have libusb-0.1-4 installed but no joy. On Mon, Mar 23, 2020 at 2:45 AM Jim Klimov <jimklimov at cos.ru> wrote:> On March 23, 2020 12:50:11 AM UTC, Tyler Montney <montneytyler at gmail.com> > wrote: > >Came across this in the process of troubleshooting: > > > https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html > > > >My whole reason for compiling from source is to add SSL support (as it > >doesn't seem available through the package manager). Apt list shows > >these > >installed: > > > >libusb-1.0-0-dev/stable,now 2:1.0.22-2 armhf [installed] > >libusb-1.0-0/stable,now 2:1.0.22-2 armhf [installed] > >libusb-1.0-doc/stable,now 2:1.0.22-2 all [installed,automatic] > > > >Config.log shows this: > > > >configure:8538: checking for libusb version via pkg-config > >configure:8545: checking via libusb-config > >configure:8557: result: none found > > > >Tried compiling without USB, fails but now complains it can't find > >OpenSSL. > >Apt list shows this installed: > > > >openssl/testing,now 1.1.1d-0+deb10u2+rpt1 armhf [installed] > > > >Compiling without USB or SSL compiles successfully. I assume NUT > >requires a > >specific version of these libraries, and if so, which versions are the > >right ones? Platform is a newly installed distro of latest Raspbian on > >a > >Raspberry Pi 3. When I installed from the package manager, everything > >worked great (just missing the SSL support). I've been referring to > >these > >docs: > > > >https://networkupstools.org/docs/user-manual.chunked/ar01s05.html > >https://networkupstools.org/docs/user-manual.chunked/ar01s09.html > > You mention compiling against libusb-1.0 but do not mention which NUT > codebase you use. The master branch at the moment does not support it, only > libusb-0.1 and there are some known connectivity stability bugs associated > with that. > > Currently there is a long-pending competition of several implementations, > neither of which were merged yet since respective change authors did not > consider their work perfect enough: > > https://github.com/networkupstools/nut/issues/300 > > https://github.com/networkupstools/nut/tree/libusb-1.0 > > https://github.com/networkupstools/nut/tree/libusb-1.0%2B0.1 > > https://github.com/networkupstools/nut/tree/libusb-compat-1.0 > > I believe you should pick whichever works for you (please report on those > which do not work and how, if any), sync with current master should be > possible for all of them. > > Hope this helps, > Jim Klimov > > -- > Typos courtesy of K-9 Mail on my Android >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200323/3b56645f/attachment.html>
Well, I've just put files in /etc/nut since that's where it's looking. Getting "upsd.conf: invalid directive CERTFILE /etc/nut/upsd.pem", which appears to be the original error (that it wasn't compiled with OpenSSL). On Sun, Mar 22, 2020 at 8:25 PM Charles Lepple <clepple at gmail.com> wrote:> On Mar 22, 2020, at 8:50 PM, Tyler Montney <montneytyler at gmail.com> wrote: > > > Came across this in the process of troubleshooting: > https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html > > > Take everything that guy says with a grain of salt ;-) > > > My whole reason for compiling from source is to add SSL support (as it > doesn't seem available through the package manager). > > > The mainline Debian buster compiles nut against the Mozilla NSS library. > Since the network code is in a library, you will only see the dependencies > on libnss3 and libnspr4 from libupsclient4, not from nut-client and > nut-server. I assume this holds true for Raspbian as well. > > I've been referring to these docs: > > https://networkupstools.org/docs/user-manual.chunked/ar01s05.html > https://networkupstools.org/docs/user-manual.chunked/ar01s09.html > > > It's been hard to keep the NUT manual in sync with the various > distributions, so the latest information for building is here: > https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-Ubuntu > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200324/7a805ca7/attachment.html>
OK, this should be it. I realize now the mega command I copied had --with-ssl and --with-nss. I changed the command, recompiled, and it started working. On Sun, Mar 22, 2020 at 8:25 PM Charles Lepple <clepple at gmail.com> wrote:> On Mar 22, 2020, at 8:50 PM, Tyler Montney <montneytyler at gmail.com> wrote: > > > Came across this in the process of troubleshooting: > https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html > > > Take everything that guy says with a grain of salt ;-) > > > My whole reason for compiling from source is to add SSL support (as it > doesn't seem available through the package manager). > > > The mainline Debian buster compiles nut against the Mozilla NSS library. > Since the network code is in a library, you will only see the dependencies > on libnss3 and libnspr4 from libupsclient4, not from nut-client and > nut-server. I assume this holds true for Raspbian as well. > > I've been referring to these docs: > > https://networkupstools.org/docs/user-manual.chunked/ar01s05.html > https://networkupstools.org/docs/user-manual.chunked/ar01s09.html > > > It's been hard to keep the NUT manual in sync with the various > distributions, so the latest information for building is here: > https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-Ubuntu > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200324/1cdb5c3f/attachment.html>