Skip to content

Instantly share code, notes, and snippets.

@Snger
Forked from AaronO/install-ebook-convert.md
Last active August 29, 2015 14:14
Show Gist options
  • Save Snger/3c7d0ead45df7855c8d3 to your computer and use it in GitHub Desktop.
Save Snger/3c7d0ead45df7855c8d3 to your computer and use it in GitHub Desktop.

Install cask that extends the brew command :

brew install phinze/cask/brew-cask

Install calibre using cask :

brew cask install calibre

Setup $PATH for calibre (add ebook-convert and other commands to $PATH) :

export PATH="~/Applications/calibre.app/Contents/MacOS/:$PATH"

Or add it to your shell's .profile with :

echo 'export PATH=~/Applications/calibre.app/Contents/MacOS/:$PATH' >> ~/.profile

Now ebook-convert should be available :)


On OS X, (if you had install calibre,) the command line tools are inside the calibre bundle, for example, if you installed calibre in /Applications the command line tools are in /Applications/calibre.app/Contents/console.app/Contents/MacOS/. link

So you can use

export PATH="/Applications/calibre.app/Contents/console.app/Contents/MacOS/:$PATH"
@Snger
Copy link
Author

Snger commented Jan 28, 2015

Setup $PATH for code2ebook
export PATH="/Users/sim/gitHub/code2ebook/:$PATH"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment