View Single Post
Old 02-08-2015, 08:22 PM   #38
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by bambuko View Post
That was most useful reply - thank you!
Yet again I have learned something (not a bad day then? )
I will look at this shortcut business, although my main priority should be sorting out issues with Qt crashing on PC when running Calibre, causing segmentation faults (real PITA )
I know Kovid told me but it's not so easy when you trying to learn from scratch
I would just go with running gdb (GNU debugger):

Code:
$ gdb calibre
(gdb) run
(gdb) ### calibre errors out
(gdb) backtrace
(gdb) ### Bunch of debugging info
and then posting it for Kovid to look at, since he probably knows more about debugging calibre than we do.

Quote:
BTW when I mess around with BIN_DIR rather than falling back on system search and finding it for me (I know it exists) it simply tells me:

Code:
PROGRAM FILES: Using System search path
--------------------------------------------------
TEMPORARY FILES: /tmp/CALIBRE_TEMP
--------------------------------------------------

Press CTRL-C if you do not want to continue
Press ENTER to continue and start Calibre

Starting up Calibre from portable directory "/opt/calibre"
/opt/calibre/calibre-portable.sh: line 203: calibre: command not found
Script completed hit RETURN to close window.
Wouldn't that heavily imply that the search path (from within the script, but we haven't exactly changed it...) cannot find "calibre"?

If you change the last line from "$CALIBRE" to "calibre" you should get the same result??

Right before the last line, try inserting "command -v calibre; command -v $CALIBRE" -- they should both point to "/usr/bin/calibre" -- that shouldn't actually be any different than trying to launch calibre directly via the command line, though...

And I assume you have not installed the system calibre to /opt/calibre (default) then.
eschwartz is offline   Reply With Quote