[SOLVED] configure: error: Could not find CUPS. Install libcups2-dev or cups-devel
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
configure: error: Could not find CUPS. Install libcups2-dev or cups-devel
I'm trying to build libreOffice. Even though cups is installed, I get the below configuration error.
...
checking whether to enable CUPS support... yes
checking whether cups support is present... checking for cupsPrintFiles in -lcups... no
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
configure: error: Could not find CUPS. Install libcups2-dev or cups-devel.
There's nothing in the cups package about building this dev part. Not sure what I'm missing here. I even built cups with static libraries.
Just to keep moving forward, I disabled cups from the autogen. I have never been able to build libreOffice and every now and then I give it a try. This time I got pretty far but received an odd build error towards the end. Any idea of how to get past this?
======================================================================
ERROR: test_ssl_import (testssl.SSLTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/libreoffice-5.0.0.2/pyuno/qa/pytests/testssl.py", line 6, in test_ssl_import
import ssl
File "/usr/lib/python3.4/ssl.py", line 97, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: No module named '_ssl'
----------------------------------------------------------------------
Ran 1 test in 0.005s
FAILED (errors=1)
Error: a unit test failed, please do one of:
export DEBUGCPPUNIT=TRUE # for exception catching
export CPPUNITTRACE="gdb --args" # for interactive debugging on Linux
export VALGRIND=memcheck # for memory checking
and retry using: make PythonTest_pyuno_pytests_ssl
/root/libreoffice-5.0.0.2/solenv/gbuild/PythonTest.mk:38: recipe for target '/root/libreoffice-5.0.0.2/workdir/PythonTest/pyuno_pytests_ssl/done' failed
make[1]: *** [/root/libreoffice-5.0.0.2/workdir/PythonTest/pyuno_pytests_ssl/done] Error 1
Makefile:247: recipe for target 'build' failed
Last edited by GameCodingNinja; 07-12-2015 at 10:58 AM.
Often I find this is due to a circular dependency within several packages. What I've started to do is when I grab a copy of the book, I take notes on packages I will need to rebuild to resolve every dependency possible. This way once I have a completed system, I can further tune things.
I've gotten LibreOffice to build, but yes, it requires a lot of building and rebuilding.
I tried the last suggestion which is to rebuild Python(s) and that worked. Wow, that was a long compile for libreOffice. I've never seen this program before and it looks amazing!
Reaper, the output to "whereis libcups" is libcups:
That's odd. It should be installed. I'll have to look into this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.