View Single Post
Old 12-12-2018, 06:08 AM   #4
EmilThelonius
Enthusiast
EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.
 
Posts: 37
Karma: 71294
Join Date: May 2016
Device: Sony DPT-RP1 and Pocketbook Touch Lux 2 and Basic
Ah, I have got it –*but I am not sure what did the trick.
I downloaded the Xcode Command Line Tools from the apple developers page. Then I used the terminal phrase from this threat:
https://www.mobileread.com/forums/sh...d.php?t=264945

Quote:
Originally Posted by eschwartz View Post
The command-line tools are installed to your system PATH on Windows and linux, but not on OSX -- because OSX uses Bundles, which have no way to trigger post-install commands I believe.

There used to be an option in Preferences to symlink the tools into /usr/bin on OSX (like the linux installer does) but apparently the method used to get root privileges was deprecated a while back.


The solution is to manually symlink them:
Code:
sudo ln -sf /Applications/calibre.app/Contents/console.app/Contents/MacOS/* /usr/local/bin/

Note: My auto-upgrade script does this automatically. See here: https://github.com/eli-schwartz/calibre-installer
Note2: I don't use OSX, I experimentally ported it from the linux script which I do use, but I have received confirmation that it works as expected on OSX.


EDIT: Changed to accommodate System Integrity Protection, introduced in El Capitan.
Now I can use the command line tools from calibre – its magic I love calibre!
I will write a full workflow with Hazel and Shell Script this evening in here! Thanks for your help!
EmilThelonius is offline   Reply With Quote