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-24-2009, 05:54 PM   #16
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: 45,256
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try the attached glib (just unzip and drop it into /opt/calibre)
Attached Files
File Type: zip glib.zip (371.0 KB, 437 views)
kovidgoyal is online now   Reply With Quote
Old 09-24-2009, 06:01 PM   #17
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
No output on:

readelf -a /lib64/libglib-2.0.so.0 | grep g_thread_gettime

After putting the new glib in /opt/calibre now I get:

[root@puterserver calibre]# ./calibre
Traceback (most recent call last):
File "/tmp/init.py", line 41, in <module>
File "ExtensionLoader_PyQt4_QtCore.py", line 12, in <module>
ImportError: /lib64/libc.so.6: version `GLIBC_2.8' not found (required by /opt/calibre/libglib-2.0.so.0)

I apparently have glibc-2.5-34
ciscoswitch is offline   Reply With Quote
Advert
Old 09-24-2009, 07:20 PM   #18
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: 45,256
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
glibc is one of those libraries that can't just be dropped in, you'll have to compile it from source on your machine
kovidgoyal is online now   Reply With Quote
Old 09-24-2009, 07:57 PM   #19
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Ok, installed glibc to /opt and added /opt/lib to ld.so.conf.d file.. now when I start to run calibre I get:

./calibre: line 10: 17890 Segmentation fault $loader "$@"
ciscoswitch is offline   Reply With Quote
Old 09-24-2009, 08:34 PM   #20
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: 45,256
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Can you setup your machine to dump core and get a stack trace from gdb?
kovidgoyal is online now   Reply With Quote
Advert
Old 09-24-2009, 08:36 PM   #21
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
That's a little beyond me I think.. I can follow directions though..
ciscoswitch is offline   Reply With Quote
Old 09-25-2009, 02:17 PM   #22
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
I took another approach and decide to try to install from source. I got the requirements installed I believe, and have finally been able to get it to start to build, this is what I get:

[root@puterserver calibre-0.6.13]# python2.6 setup.py build

*
* Running build
*


####### Building extension lzx #######
gcc -O3 -Wall -DNDEBUG -fPIC -fno-strict-aliasing -pipe -pthread -I/usr/local/include/python2.6 -I/opt/calibre-0.6.13/src/calibre/utils/lzx -c /opt/calibre-0.6.13/src/calibre/utils/lzx/lzxmodule.c -o /opt/calibre-0.6.13/build/objects/lzx/lzxmodule.o
gcc -O3 -Wall -DNDEBUG -fPIC -fno-strict-aliasing -pipe -pthread -I/usr/local/include/python2.6 -I/opt/calibre-0.6.13/src/calibre/utils/lzx -c /opt/calibre-0.6.13/src/calibre/utils/lzx/compressor.c -o /opt/calibre-0.6.13/build/objects/lzx/compressor.o
gcc -O3 -Wall -DNDEBUG -fPIC -fno-strict-aliasing -pipe -pthread -I/usr/local/include/python2.6 -I/opt/calibre-0.6.13/src/calibre/utils/lzx -c /opt/calibre-0.6.13/src/calibre/utils/lzx/lzxd.c -o /opt/calibre-0.6.13/build/objects/lzx/lzxd.o
gcc -O3 -Wall -DNDEBUG -fPIC -fno-strict-aliasing -pipe -pthread -I/usr/local/include/python2.6 -I/opt/calibre-0.6.13/src/calibre/utils/lzx -c /opt/calibre-0.6.13/src/calibre/utils/lzx/lzc.c -o /opt/calibre-0.6.13/build/objects/lzx/lzc.o
gcc -O3 -Wall -DNDEBUG -fPIC -fno-strict-aliasing -pipe -pthread -I/usr/local/include/python2.6 -I/opt/calibre-0.6.13/src/calibre/utils/lzx -c /opt/calibre-0.6.13/src/calibre/utils/lzx/lzxc.c -o /opt/calibre-0.6.13/build/objects/lzx/lzxc.o
Linking lzx
gcc /opt/calibre-0.6.13/build/objects/lzx/lzxmodule.o /opt/calibre-0.6.13/build/objects/lzx/compressor.o /opt/calibre-0.6.13/build/objects/lzx/lzxd.o /opt/calibre-0.6.13/build/objects/lzx/lzc.o /opt/calibre-0.6.13/build/objects/lzx/lzxc.o -o /opt/calibre-0.6.13/src/calibre/plugins/lzx.so -Wall -shared -lpython2.6
/usr/bin/ld: /usr/local/lib/libpython2.6.a(listobject.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.6.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Traceback (most recent call last):
File "setup.py", line 92, in <module>
sys.exit(main())
File "setup.py", line 78, in main
command.run_all(opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 157, in run_all
self.run_cmd(self, opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 153, in run_cmd
cmd.run(opts)
File "/opt/calibre-0.6.13/setup/extensions.py", line 212, in run
self.build(ext, dest)
File "/opt/calibre-0.6.13/setup/extensions.py", line 263, in build
subprocess.check_call(cmd)
File "/usr/local/lib/python2.6/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '/opt/calibre-0.6.13/build/objects/lzx/lzxmodule.o', '/opt/calibre-0.6.13/build/objects/lzx/compressor.o', '/opt/calibre-0.6.13/build/objects/lzx/lzxd.o', '/opt/calibre-0.6.13/build/objects/lzx/lzc.o', '/opt/calibre-0.6.13/build/objects/lzx/lzxc.o', '-o', '/opt/calibre-0.6.13/src/calibre/plugins/lzx.so', '-Wall', '-shared', '-lpython2.6']' returned non-zero exit status 1

If I do: sudo python2.6 setup.py linux then I get:

[root@puterserver calibre-0.6.13]# python2.6 setup.py linux

*
* Running linux_freeze
*

Traceback (most recent call last):
File "setup.py", line 92, in <module>
sys.exit(main())
File "setup.py", line 78, in main
command.run_all(opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 157, in run_all
self.run_cmd(self, opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 150, in run_cmd
self.run_cmd(scmd, opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 150, in run_cmd
self.run_cmd(scmd, opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 153, in run_cmd
cmd.run(opts)
File "/opt/calibre-0.6.13/setup/installer/linux/freeze.py", line 21, in run
from calibre.linux import entry_points
File "/opt/calibre-0.6.13/src/calibre/linux.py", line 8, in <module>
from calibre.customize.ui import device_plugins
File "/opt/calibre-0.6.13/src/calibre/customize/ui.py", line 11, in <module>
from calibre.customize.builtins import plugins as builtin_plugins
File "/opt/calibre-0.6.13/src/calibre/customize/builtins.py", line 334, in <module>
from calibre.ebooks.pdb.input import PDBInput
File "/opt/calibre-0.6.13/src/calibre/ebooks/pdb/__init__.py", line 11, in <module>
from calibre.ebooks.pdb.ereader.reader import Reader as ereader_reader
File "/opt/calibre-0.6.13/src/calibre/ebooks/pdb/ereader/reader.py", line 13, in <module>
from calibre.ebooks.pdb.ereader.reader132 import Reader132
File "/opt/calibre-0.6.13/src/calibre/ebooks/pdb/ereader/reader132.py", line 18, in <module>
from calibre.ebooks.compression.palmdoc import decompress_doc
File "/opt/calibre-0.6.13/src/calibre/ebooks/compression/palmdoc.py", line 14, in <module>
'%s')%plugins['cPalmdoc'][1])
RuntimeError: Failed to load required cPalmdoc module: No module named cPalmdoc


any help you can provide would be much appreciated.
ciscoswitch is offline   Reply With Quote
Old 09-25-2009, 03:23 PM   #23
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: 45,256
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You've installed a static version of libpython, it needs to be compile as a dynamic library (a .so file)
kovidgoyal is online now   Reply With Quote
Old 09-25-2009, 07:03 PM   #24
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
now getting:

[root@puterserver calibre-0.6.13]# python2.6 setup.py build

*
* Running build
*


####### Building extension lzx #######

####### Building extension fontconfig #######

####### Building extension msdes #######

####### Building extension cPalmdoc #######

____________________ WARNING ____________________
('Poppler not found on your system. Various PDF related', ' functionality will not work. Use the POPPLER_INC_DIR and', ' POPPLER_LIB_DIR environment variables.')
__________________________________________________

####### Building extension podofo #######

####### Building extension pictureflow #######
Traceback (most recent call last):
File "setup.py", line 92, in <module>
sys.exit(main())
File "setup.py", line 78, in main
command.run_all(opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 157, in run_all
self.run_cmd(self, opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 153, in run_cmd
cmd.run(opts)
File "/opt/calibre-0.6.13/setup/extensions.py", line 212, in run
self.build(ext, dest)
File "/opt/calibre-0.6.13/setup/extensions.py", line 232, in build
return self.build_pyqt_extension(ext, dest)
File "/opt/calibre-0.6.13/setup/extensions.py", line 306, in build_pyqt_extension
qt_objects = self.build_qt_objects(ext)
File "/opt/calibre-0.6.13/setup/extensions.py", line 289, in build_qt_objects
subprocess.check_call([QMAKE, '-o', 'Makefile', ext.name+'.pro'])
File "/usr/local/lib/python2.6/subprocess.py", line 457, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/local/lib/python2.6/subprocess.py", line 444, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/local/lib/python2.6/subprocess.py", line 595, in __init__
errread, errwrite)
File "/usr/local/lib/python2.6/subprocess.py", line 1092, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ciscoswitch is offline   Reply With Quote
Old 09-25-2009, 07:17 PM   #25
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
actually fixed that the correct qmake wasn't in the path.. now it built ok.. when I got to install:

[root@puterserver calibre-0.6.13]# python2.6 setup.py install

*
* Running build
*


####### Building extension lzx #######

####### Building extension fontconfig #######

####### Building extension msdes #######

####### Building extension cPalmdoc #######

____________________ WARNING ____________________
('Poppler not found on your system. Various PDF related', ' functionality will not work. Use the POPPLER_INC_DIR and', ' POPPLER_LIB_DIR environment variables.')
__________________________________________________

####### Building extension podofo #######

####### Building extension pictureflow #######

*
* Running gui
*


*
* Running install
*

Installing binary: /usr/local/bin/ebook-device
Installing binary: /usr/local/bin/ebook-meta
Installing binary: /usr/local/bin/ebook-convert
Installing binary: /usr/local/bin/markdown-calibre
Installing binary: /usr/local/bin/web2disk
Installing binary: /usr/local/bin/calibre-server
Installing binary: /usr/local/bin/lrf2lrs
Installing binary: /usr/local/bin/lrs2lrf
Installing binary: /usr/local/bin/librarything
Installing binary: /usr/local/bin/calibre-debug
Installing binary: /usr/local/bin/calibredb
Installing binary: /usr/local/bin/calibre-parallel
Installing binary: /usr/local/bin/calibre-customize
Installing binary: /usr/local/bin/calibre-complete
Installing binary: /usr/local/bin/pdfmanipulate
Installing binary: /usr/local/bin/fetch-ebook-metadata
Installing binary: /usr/local/bin/calibre-smtp
Installing binary: /usr/local/bin/calibre
Installing binary: /usr/local/bin/lrfviewer
Installing binary: /usr/local/bin/ebook-viewer
Installing binary: /usr/local/bin/calibre_postinstall
Installing mount helper to /usr/local/bin/calibre-mount-helper
Traceback (most recent call last):
File "/usr/local/bin/calibre_postinstall", line 15, in ?
from calibre.linux import main
File "/usr/local/lib/calibre/calibre/__init__.py", line 180
codec = 'cp1252' if iswindows else 'utf8'
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "setup.py", line 92, in <module>
sys.exit(main())
File "setup.py", line 78, in main
command.run_all(opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 157, in run_all
self.run_cmd(self, opts)
File "/opt/calibre-0.6.13/setup/__init__.py", line 153, in run_cmd
cmd.run(opts)
File "/opt/calibre-0.6.13/setup/install.py", line 83, in run
self.run_postinstall()
File "/opt/calibre-0.6.13/setup/install.py", line 112, in run_postinstall
subprocess.check_call(['calibre_postinstall', '--use-destdir'], env=env)
File "/usr/local/lib/python2.6/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['calibre_postinstall', '--use-destdir']' returned non-zero exit status 1
ciscoswitch is offline   Reply With Quote
Old 09-25-2009, 11:38 PM   #26
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Well I got it all close to running, but something still isn't working.

Anyways, I should have done this before, but I didn't, I started up the webserver on my windows box and tried to get to it via the kindle.. of course it doesn't work, I get the calibre icon, search box and the page buttons, but nothing else.. I'm sure it's caused by the Ajax and kindle doesn't have ajax..

So I saw some posts earlier about it being on a checklist for kindle web support. I was wondering if you do make a stripped down version of the web page, what would it take to also just get an easy installable linux server.. so you can just point it towards the library and have it build a webpage?

Thanks,
ciscoswitch is offline   Reply With Quote
Old 09-26-2009, 01:03 PM   #27
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: 45,256
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your syntax error is occurring because the they scripts are being executed with python 2.4 rather than 2.6
kovidgoyal is online now   Reply With Quote
Old 09-26-2009, 10:02 PM   #28
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Thanks, I noticed that later on, and edited the scripts to run as python2.6. However there is a Qstring error. I'm recompiling Qt, PyQt, Poppler, etc to see if I can get it to work. Some of the utilities, like calibre-server, calibredb appear to run, however I need to be able to get the main calibre to run so I can get everything setup.

I hope I'm not coming off rude, I realize it's hard to accomodate everyone for their needs/wants. And hard to get something to work on every machine, and OS out there. I appreciate your work on this project, and your help. Just wanted to say that, because when I'm having issues and ask for help, I know I can sound a little rude.

Thanks again,
ciscoswitch is offline   Reply With Quote
Old 09-26-2009, 10:07 PM   #29
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: 45,256
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No problem, happy to help.
kovidgoyal is online now   Reply With Quote
Old 10-05-2009, 08:26 PM   #30
ciscoswitch
Enthusiast
ciscoswitch began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2009
Device: Kindle
Tried the binary install of the new 0.16.

I'm getting a 2742 Segmentation fault.

Can you tell me how to get a dump core for you?
ciscoswitch is offline   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 11:55 PM.


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