08-18-2011, 08:50 PM | #1 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
Error when running on Atom D525-based DS411+II NAS server
Hello,
I installed Calibre (calibre-0.8.14-i686.tar.bz2) on my Atom-D525-based DS411+II Synology NAS by following the instruction in http://manual.calibre-ebook.com/faq....n-linux-server I also copied libc.so.6 (version 2.3.6) from /lib to /opt/calibre/ and /opt/calibre/lib/. However when I execute any command for example "/opt/calibre/calibre --help", I get the following error message: Code:
DiskStation> DiskStation> /opt/calibre/calibre -h BusyBox v1.16.1 (2011-06-29 11:52:19 CST) multi-call binary. Usage: readlink FILE Display the value of a symlink BusyBox v1.16.1 (2011-06-29 11:52:19 CST) multi-call binary. Usage: dirname FILENAME Strip non-directory suffix from FILENAME /opt/calibre/calibre: line 10: /bin/calibre: not found DiskStation> Aruangra |
08-18-2011, 08:53 PM | #2 |
creator of calibre
Posts: 43,896
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The readlink on your system doesn't support the -e option.
|
Advert | |
|
08-18-2011, 08:59 PM | #3 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
Thank you for your quick reply. How can I solve this problem?
|
08-18-2011, 09:02 PM | #4 |
creator of calibre
Posts: 43,896
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
edit the launcher scripts in /opt/calibre to not use readlink. Or compile a version of readlink that does support -e on your server.
|
08-18-2011, 09:08 PM | #5 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
Thanks. I will try that!
|
Advert | |
|
08-18-2011, 09:24 PM | #6 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
I modified the script as follows:
Code:
#!/bin/sh # path=`readlink -e $0` # base=`dirname $path` # lib=$base/lib base=/opt/calibre lib=/opt/calibre/lib export LD_LIBRARY_PATH=$lib:$LD_LIBRARY_PATH export MAGICK_HOME=$base export MAGICK_CONFIGURE_PATH=$lib/ImageMagick-6.6.7/config export MAGICK_CODER_MODULE_PATH=$lib/ImageMagick-6.6.7/modules-Q16/coders export MAGICK_CODER_FILTER_PATH=$lib/ImageMagick-6.6.7/modules-Q16/filters # $base/bin/calibre "$@" /opt/calibre/bin/calibre "$@" Code:
DiskStation> /opt/calibre/calibre --help /opt/calibre/bin/calibre: /opt/calibre/lib/libc.so.6: version `GLIBC_2.4' not found (required by /opt/calibre/lib/libpython2.7.so.1.0) |
08-18-2011, 09:31 PM | #7 |
creator of calibre
Posts: 43,896
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's GLIBC 2.10 not 2.1
|
08-20-2011, 07:46 AM | #8 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
I compiled GLIBC 2.10.1 using GCC 4.2.1 (host and build = i686-pc-linux-gnu). Then I copied "libc.so.6" to calibre. I got the following error.
Code:
DiskStation> /opt/calibre/calibre --help /opt/calibre/bin/calibre: error while loading shared libraries: libc.so.6: cannot handle TLS data DiskStation> |
08-22-2011, 12:38 PM | #9 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
I solve the GLIBC compilation problem by using Debian6 chroot which has GLIBC 2.11. So there is no more issue about GLIBC. However I got the following error.
Code:
root@DiskStation:/opt/calibre# /opt/calibre/calibre-server --help Traceback (most recent call last): File "site.py", line 55, in main File "site.py", line 41, in set_qt_plugin_path ImportError: cannot import name QCoreApplication root@DiskStation:/opt/calibre# Calibre 0.7.7 is also available in DPKG. Would it be a better solution? Thanks. |
08-22-2011, 09:04 PM | #10 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
I made another progress by using "apt-get install calibre" to get all dependencies. Then I run calibre 0.8.15 by calling /opt/calibre/book-convert ***.recipes ***.epub. I can now get epub files
The problem is calibre-server. I start the server using this command: /opt/calibre/calibre-server --with-library /opt/calibre/serve/ --daemonize I put my EPUB files in the directory "/opt/calibre/serve/" I got this error message on my browser: Code:
Error: No books found createException()@http://********.net:8080/stati/stacktrace.js:81 run(null)@http://********.net:8080/static/stacktrace.js:66 printStackTrace()@http://********.net:8080/static/stacktrace.js:57 render_error("No books found")@http://********:8080/static/browse/browse.js:134 booklist(true)@http://********.net:8080/static/browse/browse.js:271 (?)((function (selector, context){return new jQuery.fn.init(selector, context);}))@http://********:8080/browse/category/newest:33 (?)()@http://********:8080/static/jquery.js:392 DOMContentLoaded([object Event])@http://********:8080/static/jquery.js:745 |
08-22-2011, 09:15 PM | #11 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
For the record, I need to add epub files to the library before starting the server:
/opt/calibre/calibredb add --with-library /opt/calibre/serve/ ****.epub All problems were solved. Now, I can fetch news and serve epub contents on my DS411+II Synology NAS. Thank you! |
08-22-2011, 10:33 PM | #12 |
creator of calibre
Posts: 43,896
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Glad you got it working.
|
09-14-2011, 07:09 AM | #13 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2011
Device: Kindle3
|
Hi aruangra, I'm a linux newbie. I would like to setup my Synology DS211j to download calibre recipes.
I'm like that you solve it. But I'm very confussed of GLIBC compilation and other steps Could you write simple step-by-step tutorial how to do it or provide binaries? Many thanks. Last edited by smintman; 09-14-2011 at 07:12 AM. |
09-18-2011, 05:58 AM | #14 |
Connoisseur
Posts: 83
Karma: 888
Join Date: May 2010
Device: Nook Touch, iPad1, iPad2, iPod Touch 4G, Pixel Qi
|
smintman,
Calibre can be run only on an Intel-based NAS. The CPU of DS211j is ARM-based. So you cannot install Calibre on the DS211j. However, I write up the instruction here: https://www.mobileread.com/forums/sho...d.php?t=150254 Anat |
09-18-2011, 12:17 PM | #15 |
creator of calibre
Posts: 43,896
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre should run perfectly on ARM. For example someone ported parts of calibre to run on a Kindle. But you will have to compile calibre from source to create ARM binaries.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content server and Iomega NAS | subivan | Devices | 9 | 08-12-2011 05:26 PM |
Headless server on NAS readonly problem | artifact | Related Tools | 1 | 06-28-2011 09:34 PM |
Running Calibre on Terminal Server | JeffAlan66 | Calibre | 2 | 08-12-2010 02:00 PM |
Trouble running calibre-server | ould | Calibre | 0 | 04-16-2010 02:18 PM |
Library on NAS server? | bous | Calibre | 5 | 11-26-2009 05:03 AM |