ruby on rails environment setup

Posted jdcai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ruby on rails environment setup相关的知识,希望对你有一定的参考价值。

firstly ,we can install the latest version of ruby through ruby`s official site,  $./configure  $make   $sudo make install ,this is three cmd to install the ruby source code,as well as other c source code.

 

secondly, we can install rails through cmd $ sudo gem install rails. we can check it by cmd $ ruby -v  $rails -v   

 

thirdly, bundler, by $sudo gem install bundler

 

lastly, the most important that offcial site did not mentioned , install a javascript runtime ,such as $sudo apt install nodejs

 

until now ,we can use rails $rails new blog  $bundle install  $rails server   to check our installation.

 

以上是关于ruby on rails environment setup的主要内容,如果未能解决你的问题,请参考以下文章

ruby on rails - 问题捆绑安装nokogiri 1.7.2 on ruby on rails 4.x.

Ruby on Rails入门篇

markdown [rails:devise] Ruby on Rails的身份验证gem。 #ruby #rails

ruby Ruby on Rails:常见路由

ruby Ruby on rails类

Ruby on Rails 開發秘籍 | Ruby on Rails 快速入門