Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: quellen on June 22, 2016, 04:50:12 PM
-
Hi,
i have downloades the binaries of calibre 1.48 here:
https://download.calibre-ebook.com/1.48.0/
but it doesn't work:
$ ./calibre
WARNING: Failed to set default libc locale, using en_US.UTF-8
Traceback (most recent call last):
File "site.py", line 56, in main
File "site.py", line 13, in set_default_encoding
File "locale.py", line 547, in setlocale
Error: unsupported locale setting
$ ./ebook-edit
WARNING: Failed to set default libc locale, using en_US.UTF-8
Traceback (most recent call last):
File "site.py", line 56, in main
File "site.py", line 13, in set_default_encoding
File "locale.py", line 547, in setlocale
Error: unsupported locale setting
$ ls -l
total 184
drwxr-xr-x 2 tc staff 4096 Jun 22 22:33 bin/
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-complete
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-customize
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-debug
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-parallel
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-server
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre-smtp
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibre_postinstall
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 calibredb
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-convert
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-device
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-edit
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-meta
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-polish
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 ebook-viewer
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 fetch-ebook-metadata
drwxr-xr-x 5 tc staff 4096 Jun 22 22:35 lib/
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 lrf2lrs
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 lrfviewer
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 lrs2lrf
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 markdown-calibre
drwxr-xr-x 13 tc staff 4096 Jun 22 22:36 resources/
-rwxr-xr-x 1 tc staff 162 Jun 22 22:36 serverauth.mkbWjNxZBv
-rwxr-xr-x 1 tc staff 7454 Jun 22 22:36 web2disk
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=it
LC_CTYPE="it"
LC_NUMERIC="it"
LC_TIME="it"
LC_COLLATE="it"
LC_MONETARY="it"
LC_MESSAGES="it"
LC_PAPER="it"
LC_NAME="it"
LC_ADDRESS="it"
LC_TELEPHONE="it"
LC_MEASUREMENT="it"
LC_IDENTIFICATION="it"
LC_ALL=
tc@box:~$ mkdir -p $HOME/.locale
tc@box:~$ I18NPATH=./wrk/ localedef -f UTF-8 -i it_IT $HOME/.locale/it_IT.UTF-8
tc@box:~$ LOCPATH=$HOME/.locale LC_ALL=it_IT.UTF-8 date
Wed Jun 22 23:17:42 UTC 2016
tc@box:~$ echo "export LOCPATH=\$HOME/.locale" >> $HOME/.bashrc
tc@box:~$ echo "export LANG=it_IT.UTF-8" >> $HOME/.bashrc
why? :-(
-
Hi quellen
LANG=it
LC_CTYPE="it"
LC_NUMERIC="it"
LC_TIME="it"
LC_COLLATE="it"
LC_MONETARY="it"
LC_MESSAGES="it"
LC_PAPER="it"
LC_NAME="it"
LC_ADDRESS="it"
LC_TELEPHONE="it"
LC_MEASUREMENT="it"
LC_IDENTIFICATION="it"
LC_ALL=
According to this:
http://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting
Note that if you want to set the locale to it_IT you must also specify the .utf8
-
Have you generated those locales, using getlocale.tcz? The base only supports the "C" locale.
-
thanks for reply, but what could i type?
i have tried:
$ export LANG="it_IT.UTF-8"
$ export LC_ALL="it_IT.UTF-8"
$ export LC_CTYPE="it_IT.UTF-8"
$ sudo getlocale.sh
but calibre still say same error.
-
I SOLVED:
$ export LC_ALL=C
now ebook-edit run but it's very very slow (hard disk swap continaully)
in the same computer with WindowsXP (and Calibre1.48 portable) works faster. why?
i have 128MB of RAM + a swap partition of 300MB
-
You need more RAM.
-
Hi quellen
You could try freeing up some RAM and see if that helps. Add the nozswap boot code to your boot loader. Switching to
a persistent /home and /opt if you have a lot of stuff in them could help too.
-
/home is already persistent. in /opt i haven't big things (Calibre is at /home).
while using Calibre (ebook-edit), the swap usage is max 95MB (of 300MB)
I am forced to use WindowsXP :-(
-
If Calibre's memory usage between platforms differs that much, you should report a bug to them.