配置octopress遇到的问题

oneMoreJohn 2015-11-18 08:36:21
能不能帮忙解决下,不胜感激!git的代码如下,不知道为什么会出现这问题。

$ bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://ruby.taobao.org/...........
Fetching version metadata from https://ruby.taobao.org/..
Resolving dependencies...
Using rake 0.9.2.2
Using RedCloth 4.2.9
Using chunky_png 1.2.5
Using fast-stemmer 1.0.1
Using classifier 1.3.3
Using fssm 0.2.9
Using sass 3.2.9
Using compass 0.12.2
Using directory_watcher 1.4.1
Using haml 3.1.7
Using kramdown 0.13.8
Using liquid 2.3.0
Using syntax 1.0.0
Using maruku 0.6.1
Using posix-spawn 0.3.6
Using yajl-ruby 1.1.0
Using pygments.rb 0.3.4
Using jekyll 0.12.0
Using rack 1.5.2
Using rack-protection 1.5.0
Using rb-fsevent 0.9.1
Installing rdiscount 2.0.7.3 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

d:/Ruby21-x64/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=d:/Ruby21-x64/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
d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:395:in `system': Invalid argument - ruby_se
tenv(HOME) (Errno::EINVAL)
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:395:in `block in xsystem'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:385:in `xsystem'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:463:in `try_do'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:556:in `try_link'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:742:in `try_func'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:1027:in `block in have_func'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for'

from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in po
stpone'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:347:in `postpone'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for'
from d:/Ruby21-x64/lib/ruby/2.1.0/mkmf.rb:1026:in `have_func'
from extconf.rb:5:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in d:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rdisco
unt-2.0.7.3 for inspection.
Results logged to d:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0
/rdiscount-2.0.7.3/gem_make.out
An error occurred while installing rdiscount (2.0.7.3), and Bundler cannot
continue.
Make sure that `gem install rdiscount -v '2.0.7.3'` succeeds before bundling.

能不能帮忙解决下,不胜感激!
...全文
205 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

10,607

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧