Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2011, 03:49 AM   #1
davide125
Member
davide125 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2011
Device: Amazon Kindle 3G
Missing libraries in calibre binary release for Linux

Hi,

while trying to setup a headless calibre install, I noticed that the binary install from http://calibre-ebook.com/download_linux is not really self contained: there are a number of missing libraries (identified using ldd), that prevent it to work on console-only systems, or on systems with a minimal X install. The missing libraries (checked against 0.8.16) are:
Code:
libcairo.so.2
libcroco-0.6.so.3
libdbus-glib-1.so.2
libgdk_pixbuf-2.0.so.0
libgsf-1.so.114
libICE.so.6
libpango-1.0.so.0
libpangocairo-1.0.so.0
libpangoft2-1.0.so.0
libpixman-1.so.0
libQtDesigner.so.4
libQtOpenGL.so.4
libQtScript.so.4
libQtScriptTools.so.4
libQtTest.so.4
libQtXmlPatterns.so.4
librsvg-2.so.2
libSM.so.6
libwmf-0.2.so.7
libXext.so.6
libXrandr.so.2
libXrender.so.1
libXt.so.6
Would it be possible to add these libraries to the binary package?

Thanks for your help!
Davide
davide125 is offline   Reply With Quote
Old 08-30-2011, 11:57 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Most of the libraries you list are not needed. You do need X installed.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-02-2011, 05:07 AM   #3
davide125
Member
davide125 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2011
Device: Amazon Kindle 3G
I've looked a bit more into this: if we ignore the basic X libraries (libXext, libXt, libSM, libICE, libXrandr, libXrender), the remaining missing depends boil down to:
Code:
./lib/ImageMagick-6.6.7/modules-Q16/coders/svg.so
	librsvg-2.so.2 => not found
	libgsf-1.so.114 => not found
	libcroco-0.6.so.3 => not found
	libpangocairo-1.0.so.0 => not found
	libpangoft2-1.0.so.0 => not found
	libpango-1.0.so.0 => not found
	libgdk_pixbuf-2.0.so.0 => not found
	libcairo.so.2 => not found
	libpixman-1.so.0 => not found
./lib/ImageMagick-6.6.7/modules-Q16/coders/wmf.so
	libwmf-0.2.so.7 => not found
./lib/python2.7/site-packages/_dbus_glib_bindings.so
	libdbus-glib-1.so.2 => not found
./lib/python2.7/site-packages/PyQt4/QtDesigner.so
	libQtDesigner.so.4 => not found
./lib/python2.7/site-packages/PyQt4/QtScript.so
	libQtScript.so.4 => not found
./lib/python2.7/site-packages/PyQt4/QtScriptTools.so
	libQtScriptTools.so.4 => not found
./lib/python2.7/site-packages/PyQt4/QtTest.so
	libQtTest.so.4 => not found
./lib/python2.7/site-packages/PyQt4/QtXmlPatterns.so
	libQtXmlPatterns.so.4 => not found
./lib/qt_plugins/graphicssystems/libqglgraphicssystem.so
	libQtOpenGL.so.4 => not found
So none of the missing depends are in calibre itself, but they all come from libraries bundled in the binary release package. Still, the result is that the current binary release doesn't work on systems missing these libraries.

Davide

Last edited by davide125; 09-02-2011 at 05:09 AM.
davide125 is offline   Reply With Quote
Old 09-02-2011, 05:52 AM   #4
hairybiker
Banned
hairybiker began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
It maybe that the lib's CAN access these others, but there use in Calibre is such that they are not required. Have you tried installing it rather than checking for missing libs's? It may work.
hairybiker is offline   Reply With Quote
Old 09-02-2011, 06:22 AM   #5
davide125
Member
davide125 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2011
Device: Amazon Kindle 3G
hairybiker, I did. After installing libXext, libXt, libICE, libSM, libXrandr and libXrender using my distro package manager, the 'calibre-server' and 'ebook-conver' binaries at least start without library errors. Trying ebook-convert against a random recipe seems to work, except for the message:
"SVG rasterizer unavailable, SVG will not be converted"
which is probably due to the missing libraries used by ImageMagick SVG coder. I haven't checked the actual output yet, and I still have to try calibre-server.

Davide
davide125 is offline   Reply With Quote
Advert
Old 09-02-2011, 07:53 AM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by davide125 View Post
"SVG rasterizer unavailable, SVG will not be converted"
which is probably due to the missing libraries used by ImageMagick SVG coder. I haven't checked the actual output yet, and I still have to try calibre-server.
ImageMagick is not used for SVG rasterization. That's why it's unnecessary to bundle it. SVG is handled by Qt. You're getting that message because you're not running ebook-convert under X. Many parts of calibre including the command line tools must be run in an X session. However, you don't need to run a full X session. You can use Xvfb and run the command in that so you never see an X desktop.
user_none is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Portable and Libraries atjnjk Related Tools 13 12-15-2010 06:16 AM
Calibre Binary Install Upgrade Failed Today ksburgess Calibre 8 03-12-2010 07:35 AM
Calibre binary for Debian Lenny x64 Megatron-UK Calibre 1 01-30-2010 12:56 PM
Binary Install of calibre Glenendale Calibre 1 11-10-2008 12:58 PM
Either a userbug or a problem with the generic Linux binary installer. Ingrid Calibre 11 07-16-2008 03:26 AM


All times are GMT -4. The time now is 04:28 PM.


MobileRead.com is a privately owned, operated and funded community.