【问题标题】:How to solve "ebook-convert" is not installed?如何解决“ebook-convert”未安装?
【发布时间】:2017-05-06 15:36:37
【问题描述】:

我想把.md转成PDF,关注https://toolchain.gitbook.com/ebook.html

下载 Calibre 应用程序。将 calibre.app 移动到 Applications 文件夹后,创建一个指向 ebook-convert 工具的符号链接:

$ sudo ln -s ~/Applications/calibre.app/Contents/MacOS/ebook-convert /usr/bin

然后我得到了这个:

HF:The-North-Book wonderful$ sudo ln -s ~/Applications/calibre.app/Contents/MacOS/ebook-convert /usr/bin
Password:
ln: /usr/bin/ebook-convert: File exists
HF:The-North-Book wonderful$ PATH
-bash: PATH: command not found
HF:The-North-Book wonderful$ gitbook pdf ./ ./mybook.pdf
info: 7 plugins are installed 
info: 6 explicitly listed 
info: loading plugin "highlight"... OK 
info: loading plugin "search"... OK 
info: loading plugin "lunr"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-default"... OK 
info: found 26 pages 
info: found 0 asset files 

InstallRequiredError: "ebook-convert" is not installed.
Install it from Calibre: https://calibre-ebook.com

虽然我确实安装了 calibre 2,所以我不知道问题出在哪里。有人可以帮我吗?

【问题讨论】:

    标签: pdf gitbook calibre


    【解决方案1】:

    您可以使用 homebrew 安装它:

    brew cask install calibre
    

    如果你没有木桶:

    brew tap caskroom/cask
    

    那就正常使用吧

     ebook-convert ~/path_to/file.pdf ~/new_file_path/gen_file.pdf (options)
    

    【讨论】:

      【解决方案2】:

      截至 2021 年,对我来说这个问题的答案是,而不是

      brew tap homebrew/cask

      然后

      brew install --cask calibre

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-06-24
        • 2023-01-01
        • 1970-01-01
        • 2020-01-12
        • 2021-07-14
        • 2019-11-16
        相关资源
        最近更新 更多