[英]Install Ruby on Rails on Linux Mint 17
I have been struggling this task. 我一直在努力完成这项任务。 I have been developing in php but want to switch to ruby.
我一直在开发php但想切换到ruby。 My question is how do I install ruby on rails on Linux Mint 17.
我的问题是如何在Linux Mint 17上的rails上安装ruby。
After installing rvm, just type gem install rails
and you are ready with rails. 安装rvm后,只需键入
gem install rails
即可使用rails。
For an IDE I think a popular choice is RubyMine and if you are into text editors you can try using Vim or another popular choice Sublime text editor . 对于IDE,我认为流行的选择是RubyMine ,如果你是文本编辑器,你可以尝试使用Vim或其他流行的选择Sublime文本编辑器 。
I would recommend using editor in the beginning, just to get used to the terminal and all the ruby tools out there like rails
, rake
, rspec
etc. 我建议在开始时使用编辑器,只是为了习惯终端和所有ruby工具,如
rails
, rake
, rspec
等。
Simply put, to install ruby on rails on this OS. 简单地说,在这个OS上安装ruby on rails。 You should follow
你应该遵循
I just installed ruby2.2
& rail4.2
on mint mate 17 via rvm
& gem
. 我刚刚通过
rvm
& gem
在薄荷伴侣17上安装了ruby2.2
和rail4.2
。
Steps: 脚步:
rvm use ruby-2.2.0
(I didn't use this way, for some reason) rvm use ruby-2.2.0
选择ruby版本rvm use ruby-2.2.0
(由于某种原因,我没有使用这种方式) ~/.rvm/rubies/ruby-2.2.0/bin
to your PATH, by hand, (I use this way, because I have a common config file for such things) ~/.rvm/rubies/ruby-2.2.0/bin
将~/.rvm/rubies/ruby-2.2.0/bin
放到PATH中(我用这种方式,因为我有一个共同的配置文件用于此类事情) source some_file
, (depends on your configuration) source some_file
, (取决于您的配置) Issues 问题
gem install rails
again. gem install rails
。 Or refer to A discussion on stackoverflow about this issue.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.