Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2009, 09:31 PM   #1
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Calibre on CentOS

Hi,

I've searched and tried and pulled my hair out trying to get calibre working on CentOS. From what I read, it sounds like some people have gotten it to work. I know that it requires python 2.6, however my post isn't really asking how to get it to work, rather I had some other questions regarding it:

1. Can caliber run in command line only with no GUI?
2. Is the binary installer for linux meant to be able to install on systems without the required dependancies? I wasn't able to get it to work on mine, but I wasn't able to get all the dependancies installed either, but from what I gather it looks like the binary installed installs it's own required modules, so I wasn't sure on this one.

If Caliber will not run without a GUI, is it possible to maybe have a simple command line webserver, or a script to create a web page?

What I'm trying to do: I manage my ebooks with calibre on a windows system, and the DB is stored on a NAS. I have several linux web servers on my network, and I'd like to have them serve up the calibre books, so that I can get to it remotely. My windows system is not always on, that's why I don't want to run the server from that machine, but my servers are always on.

I've looked at calibre2web but it only created the XML stuff, no web.. I'm sure it probably could be modified to work for other stuff, that's partly why I'm asking here to see if anyone has.

If anyone knows of any solutions to my problem, I'd greatly appreciate it.

Thanks
ciscoswitch is offline   Reply With Quote
Old 09-19-2009, 10:35 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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1. calibre does run in command line mode but some functions do require a X server for which you can use Xvfb

2. the binary installer provides *most* dependencies, but it will typically require the compilation of a few more on very old systems (by very old I mean anything older than a year)
kovidgoyal is online now   Reply With Quote
Advert
Old 09-23-2009, 03:53 PM   #3
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Any plans to either make a script to create web pages, or a seperate server for linux? or at least to allow calibre to run in command line mode with no gui at all?

This would be very beneficial to me, and I beleive others as well.

As far as centos goes, will the binary eventually be able to install without the need to install a bunch of other dependancies? I ask because centos is very popular, and should be fully supported.

Thanks,
ciscoswitch is offline   Reply With Quote
Old 09-23-2009, 03:57 PM   #4
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre-server does run in command line mode. As for making the binary universally compatible, that's pretty much impossible.
kovidgoyal is online now   Reply With Quote
Old 09-23-2009, 07:23 PM   #5
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Fair enough.. Now to figure out how to get it to work on CentOS, do you have any information on that? I know python is a fussy beast, with poor module support, unlike Perl with CPAN, but I think it's getting better.
ciscoswitch is offline   Reply With Quote
Advert
Old 09-23-2009, 07:25 PM   #6
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What problem are you having with the binary install exactly?
kovidgoyal is online now   Reply With Quote
Old 09-23-2009, 07:50 PM   #7
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Well, I installed (in parallel) python 2.6, so I run the binary installer with python 2.6, it get's through most of the way, then I get:

Traceback (most recent call last):
File "/tmp/init.py", line 41, in <module>
File "ExtensionLoader_PyQt4_QtCore.py", line 12, in <module>
ImportError: /opt/calibre/libgthread-2.0.so.0: undefined symbol: g_thread_gettime

Run "calibre" to start calibre

If I try to run calibre or any of the binaries, I get:

Traceback (most recent call last):
File "/tmp/init.py", line 41, in <module>
File "ExtensionLoader_PyQt4_QtCore.py", line 12, in <module>
ImportError: /opt/calibre/libgthread-2.0.so.0: undefined symbol: g_thread_gettime
ciscoswitch is offline   Reply With Quote
Old 09-24-2009, 12:03 PM   #8
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah I'm guessing your version of glib is too old

ls -l /usr/lib/libglib*
kovidgoyal is online now   Reply With Quote
Old 09-24-2009, 12:40 PM   #9
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
[root@puterserver ~]# ls -l /usr/lib/libglib*
lrwxrwxrwx 1 root root 21 Sep 17 16:48 /usr/lib/libglib-1.2.so.0 -> libglib-1.2.so.0.0.10
-rwxr-xr-x 1 root root 168244 Mar 14 2007 /usr/lib/libglib-1.2.so.0.0.10
lrwxrwxrwx 1 root root 21 Sep 17 16:48 /usr/lib/libglib.so -> libglib-1.2.so.0.0.10
[root@puterserver ~]# rpm -qa | grep glib
compat-glibc-2.3.4-2.26
glib-1.2.10-20.el5
glibc-headers-2.5-34.el5_3.1
NetworkManager-glib-0.7.0-4.el5_3
glibc-2.5-34.el5_3.1
compat-glibc-2.3.4-2.26
glib-devel-1.2.10-20.el5
glibc-common-2.5-34.el5_3.1
glibc-devel-2.5-34.el5_3.1
glib2-devel-2.12.3-4.el5_3.1
NetworkManager-glib-0.7.0-4.el5_3
dbus-glib-0.73-8.el5
dbus-glib-0.73-8.el5
glib2-2.12.3-4.el5_3.1
glib-devel-1.2.10-20.el5
glib2-2.12.3-4.el5_3.1
avahi-glib-0.6.16-1.el5_2.1
compat-glibc-headers-2.3.4-2.26
glibc-devel-2.5-34.el5_3.1
avahi-glib-0.6.16-1.el5_2.1
glib-1.2.10-20.el5
glibc-2.5-34.el5_3.1
[root@puterserver ~]#
ciscoswitch is offline   Reply With Quote
Old 09-24-2009, 01:14 PM   #10
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need glib-2.0
kovidgoyal is online now   Reply With Quote
Old 09-24-2009, 01:34 PM   #11
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
I actually have both, if you look at my installed RPMs.

[root@puterserver lib]# locate libglib
/lib/libglib-2.0.so.0
/lib/libglib-2.0.so.0.1200.3
/lib64/libglib-2.0.a
/lib64/libglib-2.0.so
/lib64/libglib-2.0.so.0
/lib64/libglib-2.0.so.0.1200.3
/usr/lib/libglib-1.2.so.0
/usr/lib/libglib-1.2.so.0.0.10
/usr/lib/libglib.so
/usr/lib64/libglib-1.2.so.0
/usr/lib64/libglib-1.2.so.0.0.10
/usr/lib64/libglib.so

I imagine it may not be using it and defaulting to 1.2? what's the best way to check that?
ciscoswitch is offline   Reply With Quote
Old 09-24-2009, 01:48 PM   #12
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
I removed glib1-2 via yum, and added /lib and /lib64 to ld.so.conf and ran ldconfig and tried, but I get the same error message.
ciscoswitch is offline   Reply With Quote
Old 09-24-2009, 03:02 PM   #13
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run calibre as

LD_DEBUG=libs calibre

This will print out what libraries are being used, that will tell you which libglib is being used.
kovidgoyal is online now   Reply With Quote
Old 09-24-2009, 03:06 PM   #14
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
16078: find library=libglib-2.0.so.0 [0]; searching
16078: search path=/opt/calibre (RUNPATH from file /opt/calibre/loader)
16078: trying file=/opt/calibre/libglib-2.0.so.0
16078: search path=tls/x86_64:tls:x86_64: (LD_LIBRARY_PATH)
16078: trying file=tls/x86_64/libglib-2.0.so.0
16078: trying file=tls/libglib-2.0.so.0
16078: trying file=x86_64/libglib-2.0.so.0
16078: trying file=libglib-2.0.so.0
16078: search path=/usr/lib64/qt4 (RUNPATH from file /opt/calibre/PyQt4.QtCore.so)
16078: trying file=/usr/lib64/qt4/libglib-2.0.so.0
16078: search cache=/etc/ld.so.cache
16078: trying file=/lib64/libglib-2.0.so.0

16078:
16078: /opt/calibre/libgthread-2.0.so.0: error: symbol lookup error: undefined symbol: g_thread_gettime (fatal)
Traceback (most recent call last):
File "/tmp/init.py", line 41, in <module>
File "ExtensionLoader_PyQt4_QtCore.py", line 12, in <module>
ImportError: /opt/calibre/libgthread-2.0.so.0: undefined symbol: g_thread_gettime
ciscoswitch is offline   Reply With Quote
Old 09-24-2009, 05:52 PM   #15
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
readelf -a /lib64/libglib-2.0.so.0 | grep g_thread_gettime
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre metadata.calibre not allowing updates Chuckels550 Calibre 10 08-09-2010 05:12 PM
Segmentation fault trying to run Calibre on CentOS 5.5 midders Calibre 1 07-26-2010 11:32 AM
CentOS 5.5 Compatibility wrdieter Calibre 2 07-06-2010 09:33 AM
Anyone running calibre on Centos 5.3? merzy Calibre 7 06-06-2009 02:01 AM
calibre command line utilities and calibre defaults astrodad Calibre 2 08-07-2008 03:27 PM


All times are GMT -4. The time now is 08:05 AM.


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