Ubuntu下无法删除Rails
系统响应rails -v
返回rails 2.3.5。但是,对于gem uninstall Rails
,它会返回“rails notinstalled”。
系统返回 gem install Rails
错误:
@ubuntu:~$ gem install rails
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (= 3.1.1), actionpack (= 3.1.1), activerecord (= 3.1.1), activeresource (= 3.1.1), actionmailer (= 3.1.1), railties (= 3.1.1), bundler (~> 1.0)
对这个问题有任何想法吗?
The system returns rails 2.3.5 responding to rails -v
. However it returns "rails not installed" for gem uninstall rails
.
The system returns error for gem install rails
:
@ubuntu:~$ gem install rails
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (= 3.1.1), actionpack (= 3.1.1), activerecord (= 3.1.1), activeresource (= 3.1.1), actionmailer (= 3.1.1), railties (= 3.1.1), bundler (~> 1.0)
Any idea about the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
另外,请使用 RVM。它允许您在用户目录中安装 gem,从而消除了使用 sudo 的需要(从而使自己面临风险)。
Also, use RVM. It allows you to install gems in your user directory, thus eliminating the need to use
sudo
(and thus putting yourself at risk).获得root权限后
after getting root privileges
您可能必须使用 Ubuntu 内置的包管理器来删除它。尝试 apt-get remove 并查看此页面 https://help.ubuntu.com/community/RubyOnRails
You probably have to remove it using the Ubuntu built in package manager. Try apt-get remove and look into this page https://help.ubuntu.com/community/RubyOnRails