kitabu 安裝

數位出版

簡介

實體書出版

電子書出版

BLOG 網誌

Wiki 出版

影音出版

文件出版

論文出版

HTML5

閱讀器

授權方式

商業模式

文件格式

未來

軟體

數位殯葬業

案例研究

Khan Acacemy

EPub格式

reStructuredText

TreeSaver

CNXML

Pandoc

Tex

Libre Office

Markdown

Kitabu

Calibre

訊息

相關網站

參考文獻

最新修改

簡體版

English

先安裝 RubyInstaller, 在安裝 DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe, 設定好 path+=ruby…\bin, 然後執行以下指令安裝 kitabu。

gem install kitabu

G:\>mkdir kitabu

G:\>cd kitabu

G:\kitabu>gem install kitabu
Fetching: i18n-0.6.1.gem (100%)
Fetching: multi_json-1.5.0.gem (100%)
Fetching: activesupport-3.2.11.gem (100%)
Fetching: nokogiri-1.5.6-x86-mingw32.gem (100%)
Fetching: RedCloth-4.2.9-x86-mingw32.gem (100%)
Fetching: rdiscount-1.6.8.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing kitabu:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb
checking for random()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby193/bin/ruby
        --with-rdiscount-dir
        --without-rdiscount-dir
        --with-rdiscount-include
        --without-rdiscount-include=${rdiscount-dir}/include
        --with-rdiscount-lib
        --without-rdiscount-lib=${rdiscount-dir}/lib
C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to genera
te an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postp
one'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:893:in `have_func'
        from extconf.rb:5:in `<main>'

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount
-1.6.8 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount-1.6.8/ext/gem_ma
ke.out

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License