LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 07-11-2015, 05:41 PM   #1
GameCodingNinja
Member
 
Registered: Jul 2014
Posts: 100

Rep: Reputation: Disabled
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.

Any ideas?
 
Old 07-11-2015, 06:34 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,445
Blog Entries: 15

Rep: Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015
Are you using CUPS-2.0.2 or later?
 
Old 07-12-2015, 08:33 AM   #3
GameCodingNinja
Member
 
Registered: Jul 2014
Posts: 100

Original Poster
Rep: Reputation: Disabled
yes.

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.
 
Old 07-12-2015, 09:36 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,445
Blog Entries: 15

Rep: Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015Reputation: 2015
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.

Can you run:

Code:
whereis libcups
and post the output?

Last edited by ReaperX7; 07-12-2015 at 09:47 PM.
 
Old 07-13-2015, 05:21 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,684

Rep: Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669
I have never gotton libre office to build against the system python I always have to add '--enable-python=internal' to the configfure.
 
Old 07-13-2015, 11:39 AM   #6
Krejzi
Member
 
Registered: Jan 2015
Posts: 212

Rep: Reputation: Disabled
Rebuild Python(,s) after OpenSSL has been installed.
 
Old 07-14-2015, 11:16 AM   #7
GameCodingNinja
Member
 
Registered: Jul 2014
Posts: 100

Original Poster
Rep: Reputation: Disabled
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.

Thanks you so much everyone for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installing HP laserjetM1212nf MFP on Lisa requires cups-dev, where do I find cups-dev sherbert Linux Mint 2 01-31-2012 01:16 AM
[SOLVED] (lenny) Getting error code 2 from dpkg trying to install libcups2-dev randyepperson Debian 1 07-12-2009 05:55 PM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
where can I find cups-devel karlos4321 Slackware 2 11-08-2006 08:27 AM
configure: error: cannot find cups-devel support hscast Linux - Software 1 04-29-2005 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration