michaelrsweet / lprint

A Label Printer Application
https://www.msweet.org/lprint
Apache License 2.0
227 stars 31 forks source link

install script asks for CUPS 2.4 but it is installed #114

Closed Nachtpfoetchen closed 8 months ago

Nachtpfoetchen commented 8 months ago

Hello, I try to get the source going to investigate further for this issue.

What i did: git clone and cd then i tried to execute ./configure with user permission.

~/lprint (master)> ./configure
[shorted for simplicity]
configure: error: CUPS 2.4 or later is required for LPrint.

When i look for the CUPS version that i have installed:

aptitude show cups
Package: cups                            
Version: 2.4.2-3+deb12u5
State: installed

Is this a bug, or is something with my setup wrong?

My system: Debian bookwrom (stable)

michaelrsweet commented 8 months ago

Do you have the libcups2-dev package installed?

Nachtpfoetchen commented 8 months ago

yes, i do.

aptitude show libcups2-dev
Package: libcups2-dev                    
Version: 2.4.2-3+deb12u5
State: installed
michaelrsweet commented 8 months ago

OK, can you provide a copy of the complete "configure" output and the config.status file?

Nachtpfoetchen commented 8 months ago

here is the complete output:

~/lprint (master)> ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for mkdir... /usr/bin/mkdir
checking for rm... /usr/bin/rm
checking for install-sh script... using /home/alice/lprint/install-sh
checking for pkg-config... /usr/bin/pkg-config
configure: error: CUPS 2.4 or later is required for LPrint.

The config.status was cp to config.status.md, because otherwise github prevents the file upload. config.status.md

michaelrsweet commented 8 months ago

Sorry, I meant the config.log file. Alternatively what does pkg-config --libs cups report?

Nachtpfoetchen commented 8 months ago

pkg-config returns an error [1]. The log is in this comment.

pkg-config --libs cups
Package cups was not found in the pkg-config search path.
Perhaps you should add the directory containing `cups.pc'
to the PKG_CONFIG_PATH environment variable
Package 'cups', required by 'virtual:world', not found

config.log

michaelrsweet commented 8 months ago

Oh crap, Ubuntu/Debian's libcups2 packages are missing the pkg-config file... 😡

michaelrsweet commented 8 months ago

Wasn't fixed until the 2.4.6 packages in mantic...

michaelrsweet commented 8 months ago

[master f22b455] Fix configure on older Ubuntu distros (Issue #114)