我遵循了从https://github.com/rails/rails-dev-box设置一个流浪者rails开发框的说明。不幸的是,当我试图捆绑时,我得到了以下内容:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/vagrant/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
sh: 1: make: not found
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /home/vagrant/.rvm/gems/ruby-2.0.0-p353/gems/bcrypt-ruby-3.0.1 for inspection.
Results logged to /home/vagrant/.rvm/gems/ruby-2.0.0-p353/extensions/x86-linux/2.0.0/bcrypt-ruby-3.0.1/gem_make.out
An error occurred while installing bcrypt-ruby (3.0.1), and Bundler cannot
continue.
Make sure that `gem install bcrypt-ruby -v '3.0.1'` succeeds before bundling.当我尝试运行创业板安装命令时,我也会遇到同样的问题。我已经做了一些探索,我不知所措。任何投入都是非常感谢的。
发布于 2014-01-08 10:11:41
此bcrypt-ruby gem正在尝试编译本机(c,c++)代码。看来您的VM缺少了编译本机代码所需的一些工具。
获取VM的shell:
vagrant ssh然后,安装这些包应该可以解决这个问题:
sudo apt-get install make g++ gcc libssl-dev然后运行bundle安装。
https://stackoverflow.com/questions/20960546
复制相似问题