我尝试使用bzip2-ruby
安装bundler
gem,但它会抛出此输出:
Building native extensions. This could take a while...
ERROR: Error installing bzip2-ruby:
ERROR: Failed to build gem native extension.
/Users/user10/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
checking for bzlib.h... yes
checking for BZ2_bzWriteOpen() in -lbz2... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling bzip2.c
In file included from bzip2.c:5:
/Users/user10/.rvm/rubies/ruby-2.1.0/include/ruby-2.1.0/ruby/backward/rubyio.h:2:2: warning: use "ruby/io.h" instead of "rubyio.h" [-W#warnings]
#warning use "ruby/io.h" instead of "rubyio.h"
^
bzip2.c:6:10: fatal error: 'version.h' file not found
#include <version.h>
^
1 warning and 1 error generated.
make: *** [bzip2.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/user10/.rvm/gems/ruby-2.1.0@worm_path_finder/gems/bzip2-ruby-0.2.7 for inspection.
Results logged to /Users/user10/.rvm/gems/ruby-2.1.0@worm_path_finder/extensions/x86_64-darwin-13/2.1.0/bzip2-ruby-0.2.7/gem_make.out
发生了编译错误。
我使用rvm
(rvm 1.25.14 (stable)
)。
我已尝试安装gem standalone(gem install bzip2-ruby -v '0.2.7'
)和一些以前的版本,但我得到了相同的结果。
答案 0 :(得分:4)
我找到了bzip2-ruby
Gemfile
working fork。
摘要,只需像这样更新gem 'bzip2-ruby', :git => 'https://github.com/chewi/bzip2-ruby.git'
:
{{1}}