欢迎来到 常识词典网 , 一个专业的常识知识学习网站!

[ Ctrl + D 键 ]收藏本站

您所在的位置:首页 > 教育学习 > 问答

问答

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

分类: 问答 常识词典 编辑 : 常识 发布 : 04-03

阅读 :381

求高手指点: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:

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

下一篇:对现在社会的人来说,即时成像相机的吸引力在哪里? 下一篇 【方向键 ( → )下一篇】

上一篇:如何在陌生人面前体现自身的高价值? 上一篇 【方向键 ( ← )上一篇】