Linux 在 Ubuntu 或 Mint 上安装 Ruby on Rails
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10161625/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing Ruby on Rails on Ubuntu or Mint
提问by jimscafe
I have installed Rails on my Windows 7 partition, but it is so slow, so I decided to try to install it on Linux.
我已经在我的 Windows 7 分区上安装了 Rails,但是它太慢了,所以我决定尝试在 Linux 上安装它。
I have tried Ubuntu 11.04 and Mint 12, and for both, I get the same problem.
我已经尝试过 Ubuntu 11.04 和 Mint 12,对于两者,我都遇到了同样的问题。
I am following the guide "Ruby On Rails Tutorial", and I also have a PDF installation guide called "Ruby On Rails Ubuntu Linux Mint.
我正在遵循“Ruby On Rails 教程”指南,我还有一个名为“Ruby On Rails Ubuntu Linux Mint”的 PDF 安装指南。
I get to the part where it says type rvm notes
- which lists stuff to install. I then install all that stuff, and then when I type rvm
it says "there is no rvm". Clearly, there was an rvm for me to type rvm notes
.
我到了它所说的部分type rvm notes
- 列出要安装的东西。然后我安装所有这些东西,然后当我输入rvm
它时说“没有 rvm”。显然,我有一个 rvm 可以输入rvm notes
.
I have searched the drive (sudo find / -name rvm, and I get
11 entries, including /etc/profie.d/rvm.sh and /etc/rvmrc. There is also a ruby-rvm
.
我搜索了驱动器(sudo find / -name rvm,我得到了 11 个条目,包括 /etc/profie.d/rvm.sh 和 /etc/rvmrc。还有一个ruby-rvm
.
I gave myself a little time to test Django and Ruby, but I seem to be getting nowhere with Ruby.
我给了自己一点时间来测试 Django 和 Ruby,但我似乎对 Ruby 一无所获。
I am about to try the Turnkey Ubuntu Rails installation in Virtual Box, but I would still like to know why I cannot install it in Ubuntu or Mint. I suspect it is the same problem on both.
我准备在 Virtual Box 中尝试 Turnkey Ubuntu Rails 安装,但我仍然想知道为什么我不能在 Ubuntu 或 Mint 中安装它。我怀疑这两者都存在相同的问题。
采纳答案by Emil Ahlb?ck
I have not tried this lately but it seems up to date and I trust Ryan Biggs. See his post on installing Ruby & Rails on Ubuntuand I'm sure you'll figure it out.
我最近没有尝试过,但它似乎是最新的,我相信 Ryan Biggs。请参阅他关于在 Ubuntu 上安装 Ruby 和 Rails 的帖子,我相信您会明白的。