简体   繁体   English

在Ubuntu上安装滑轨时的捆绑器问题

[英]Bundler issues in installing rails on ubuntu

I have installed ruby 1.9.3 using rvm and after doing gem install rails, it says gem successfully downloaded, but when I type rails -v it gives me the following error: Unable to activate rails-3.0.1, because bundler-1.5.1 conflicts with bundler (~> 1.0.0) (Gem::LoadError) 我已经使用rvm安装了ruby 1.9.3,并在完成gem安装rails后说宝石已成功下载,但是当我输入rails -v时,出现以下错误:无法激活rails-3.0.1,因为bundler-1.5。 1与捆绑程序(〜> 1.0.0)冲突(Gem :: LoadError)

How do I fix this? 我该如何解决?

do this: 做这个:

rvm @global do gem uninstall bundler -ax
gem install bundler -v '~>1.0.0'

this will remove the globally installed bundler (available for all gemsets on this ruby) and install compatible local version only for current gemset. 这将删除全局安装的捆绑软件(适用于该红宝石上的所有gemset),并仅对当前gemset安装兼容的本地版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM