2016-12-21 5 views
1

나는 PDF 파일로 .md 변환 할, 나는 https://toolchain.gitbook.com/ebook.html를 따라 :"ebook-convert"해결 방법이 설치되지 않았습니까?

다운로드 구경 응용 프로그램을. calibre.app을 응용 프로그램 폴더로 이동 한 후 ebook-convert 도구에 대한 심볼릭 링크를 만듭니다.

$ sudo ln -s ~/응용 프로그램/calibre.app/내용/MacOS/전자 북 변환/usr/bin

가 그럼이있어 :

내가 구경 2를 설치 한 않기 때문에 문제 is.Can 누군가가 나를 도울 어디 모르겠지만
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 

?

답변

1

당신은 사제으로 설치할 수 있습니다

brew cask install calibre 

당신은 통이없는 경우 :

brew tap caskroom/cask 

가 그럼 그냥 일반적으로

ebook-convert ~/path_to/file.pdf ~/new_file_path/gen_file.pdf (options) 
를 사용을