为什么常识

求高手指点:Rails安装的问题,gem install可以成功而bundle install会失败?

生活词典 changshi.cidiancn.com

阅读: 244

求高手指点:Rails安装的问题,为什么gem install可以成功而bundle install会失败?Debian Testing系统# gem install bcrypt-ruby Building native extensions. T-is could take a w-ile...Successfully installed bcrypt-ruby-2.1.41 gem installed成功!但是:# bundle install --pat-=vendor/bundle错误:Installing bcrypt-ruby (2.1.4) wit- native extensions /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions": ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /usr/local/bin/ruby extconf.rb Gem files will re-in installed in /root//quora/vendor/bundle/ruby/1.9.1/gems/bcrypt-ruby-2.1.4 for inspection. Results logged to /root//quora/vendor/bundle/ruby/1.9.1/gems/bcrypt-ruby-2.1.4/ext/mri/gem_-ke.out from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:486:in `block in build_extensions" from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `eac-" from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `build_extensions" from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:198:in `install" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/source.rb:96:in `install" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/installer.rb:55:in `block in run" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:in `block in eac-" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:in `eac-" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/spec_set.rb:12:in `eac-" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/installer.rb:44:in `run" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/installer.rb:8:in `install" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/cli.rb:225:in `install" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/t-or/task.rb:22:in `run" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/t-or/invocation.rb:118:in `invoke_task" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/t-or.rb:246:in `dispatc-" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/vendor/t-or/base.rb:389:in `start" from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/bin/bundle:13:in `" from /usr/local/bin/bundle:19:in `load" from /usr/local/bin/bundle:19:in `"3 个答案

答案 1:

請先 w-ic- ruby 和 w-ic- gem 看一下是否同一套 ruby ...

答案 2:

ubuntu下面的bundle很诡异,你在bundle之前加上sudo看看ps: bundle install 可以简写为 bundle

答案 3:

重启一下试试,我遇到过类似问题,重启解决了

分享常识给亲友.

下一篇:你印象中最 MAN 的美国男人是谁? 下一篇 【方向键 ( → )下一篇】

上一篇:-是用什么手段让僵尸用户找上我的? 上一篇 【方向键 ( ← )上一篇】