Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : libunrar.so for Ubuntu Jaunty


ronniet
07-22-2009, 04:59 PM
Hi,
Just got my PRS-505 today and Calibre looks just the ticket!

Unfortunately when I try to convert a CBR file I get the error:
('OSError', u'libunrar.so: cannot open shared object file: No such file or directory')
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/calibre/parallel.py", line 960, in worker
result = work(client_socket, func, args, kwdargs)
File "/usr/lib/python2.6/dist-packages/calibre/parallel.py", line 918, in work
res = func(*args, **kargs)
File "/usr/lib/python2.6/dist-packages/calibre/ebooks/lrf/comic/convert_from.py", line 501, in do_convert
tdir = extract_comic(source)
File "/usr/lib/python2.6/dist-packages/calibre/ebooks/lrf/comic/convert_from.py", line 57, in extract_comic
extract(path_to_comic_file, tdir)
File "/usr/lib/python2.6/dist-packages/calibre/__init__.py", line 152, in extract
from calibre.libunrar import extract as rarextract
File "/usr/lib/python2.6/dist-packages/calibre/libunrar.py", line 30, in
_libunrar = load_library(_librar_name, cdll)
File "/usr/lib/python2.6/dist-packages/calibre/__init__.py", line 136, in load_library
return cdll.LoadLibrary(name+'.so')
File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libunrar.so: cannot open shared object file: No such file or directory

Which, I assume, means I need libunrar.so. I've hunted everywhere and can't find it anywhere. It's not in the repo's so I'm at a loss... :smack:

Any help is most appreciated on this one... it's driving me crazy! :help:

kovidgoyal
07-22-2009, 05:29 PM
You can get libunrar.so from the binary calibre package. Just untar it an extract libunrar.so

ronniet
07-22-2009, 05:42 PM
You can get libunrar.so from the binary calibre package. Just untar it an extract libunrar.so

Excellent, thanks, I'll give that a try.

But where should I put the libunrar.so file?

kovidgoyal
07-22-2009, 05:54 PM
In any place that is searched by default for libraries on yur system

/usr/local/lib or /usr/lib for example

ronniet
07-22-2009, 06:07 PM
Many thanks for that tip, worked like a charm.