I was getting an error running hplip-3.23.5.run with the `make` command. So I ran the install script with debug output with the following command: `hplip-3.23.5/install.py -l debug`. Here's what that gave me:
The line `/usr/bin/ld: cannot find -lavahi-core: No such file or directory` indicated a missing library, so I googled `lavahi-core` and got references to a package `libavahi-core-dev.` I ran `apt install libavahi-core-dev`, tried the install again, and it worked. Attached is the full log file.
I was getting an error running hplip-3.23.5.run with the `make` command. So I ran the install script with debug output with the following command: `hplip- 3.23.5/ install. py -l debug`. Here's what that gave me:
``` la-musb. Tpo .deps/libhpmud_ la-musb. Plo NAME=\" HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_ TARNAME= \"hplip\ " -DPACKAGE_ VERSION= \"3.23. 5\" -DPACKAGE_ STRING= \"HP\ Linux\ Imaging\ and\ Printing\ 3.23.5\" -DPACKAGE_ BUGREPORT= \"3.23. 5\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hplip\" -DVERSION= \"3.23. 5\" -DSTDC_HEADERS=1 -DHAVE_ SYS_TYPES_ H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR= \".libs/ \" -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_ NET_SNMP_ NET_SNMP_ CONFIG_ H=1 -DHAVE_LIBAVAHI=1 -DHAVE_ LIBAVAHI_ CLIENT= 1 -DHAVE_ LIBAVAHI_ COMMON= 1 -DHAVE_ AVAHI_CLIENT_ CLIENT_ H=1 -DHAVE_ AVAHI_COMMON_ MALLOC_ H=1 -DHAVE_ CUPS_CUPS_ H=1 -DHAVE_ LIBUSB_ 1_0_LIBUSB_ H=1 -DHAVE_ PYTHON3_ 10_PYTHON_ H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -Icommon/ -DCONFDIR= \"/etc/ hp\" -I/usr/ include/ avahi-client -I/usr/ include/ avahi-core -I/usr/ include/ avahi-common -I/usr/ include/ dbus-1. 0 -I/usr/ lib/x86_ 64-linux- gnu/dbus- 1.0/include -DCONFDIR= \"/etc/ hp\" -MT libhpdiscovery_ la-avahiDiscove ry.lo -MD -MP -MF .deps/libhpdisc overy_la- avahiDiscovery. Tpo -c -o libhpdiscovery_ la-avahiDiscove ry.lo `test -f 'protocol/ discovery/ avahiDiscovery. c' || echo './'`protocol/ discovery/ avahiDiscovery. c NAME=\" HP Linux Imaging and Printing\"" -DPACKAGE_ TARNAME= \"hplip\ " -DPACKAGE_ VERSION= \"3.23. 5\" "-DPACKAGE_ STRING= \"HP Linux Imaging and Printing 3.23.5\"" -DPACKAGE_ BUGREPORT= \"3.23. 5\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hplip\" -DVERSION= \"3.23. 5\" -DSTDC_HEADERS=1 -DHAVE_ SYS_TYPES_ H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR= \".libs/ \" -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_ NET_SNMP_ NET_SNMP_ CONFIG_ H=1 -DHAVE_LIBAVAHI=1 -DHAVE_ LIBAVAHI_ CLIENT= 1 -DHAVE_ LIBAVAHI_ COMMON= 1 -DHAVE_ AVAHI_CLIENT_ CLIENT_ H=1 -DHAVE_ AVAHI_COMMON_ MALLOC_ H=1 -DHAVE_ CUPS_CUPS_ H=1 -DHAVE_ LIBUSB_ 1_0_LIBUSB_ H=1 -DHAVE_ PYTHON3_ 10_PYTHON_ H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -Icommon/ -DCONFDIR= \"/etc/ hp\" -I/usr/ include/ avahi-client -I/usr/ include/ avahi-core -I/usr/ include/ avahi-common -I/usr/ include/ dbus-1. 0 -I/usr/ lib/x86_ 64-linux- gnu/dbus- 1.0/include -DCONFDIR= \"/etc/ hp\" -MT libhpdiscovery_ la-avahiDiscove ry.lo -MD -MP -MF .deps/libhpdisc overy_la- avahiDiscovery. Tpo -c protocol/ discovery/ avahiDiscovery. c -fPIC -DPIC -o .libs/libhpdisc overy_la- avahiDiscovery. o overy_la- avahiDiscovery. Tpo .deps/libhpdisc overy_la- avahiDiscovery. Plo \"/etc/ hp\" -I/usr/ include/ avahi-client -I/usr/ include/ avahi-core -I/usr/ include/ avahi-common -I/usr/ include/ dbus-1. 0 -I/usr/ lib/x86_ 64-linux- gnu/dbus- 1.0/include -DCONFDIR= \"/etc/ hp\" -version-info 0:1:0 -L/usr/lib -o libhpdiscovery.la -rpath /usr/lib libhpdiscovery_ la-avahiDiscove ry.lo -lnetsnmp -lcrypto -lavahi-client -lavahi-core -lavahi-common -ldbus-1 -lavahi-common -lavahi-client -lcrypto overy_la- avahiDiscovery. o -L/usr/lib -lnetsnmp -lavahi-core -ldbus-1 -lavahi-common -lavahi-client -lcrypto -Wl,-soname -Wl,libhpdiscov ery.so. 0 -o .libs/libhpdisc overy.so. 0.0.1
...
mv -f .deps/libhpmud_
/bin/bash ./libtool --tag=CC --mode=compile gcc -DPACKAGE_
libtool: compile: gcc "-DPACKAGE_
mv -f .deps/libhpdisc
/bin/bash ./libtool --tag=CC --mode=link gcc -DCONFDIR=
libtool: link: gcc -shared -fPIC -DPIC .libs/libhpdisc
/usr/bin/ld: cannot find -lavahi-core: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:5540: libhpdiscovery.la] Errore 1
error: 'make' command failed with status code 2
```
The line `/usr/bin/ld: cannot find -lavahi-core: No such file or directory` indicated a missing library, so I googled `lavahi-core` and got references to a package `libavahi- core-dev. ` I ran `apt install libavahi-core-dev`, tried the install again, and it worked. Attached is the full log file.