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.

 

posted @ 2018-06-18 20:03  bky-j  阅读(81)  评论(0)    收藏  举报

blog of JDC, copyright reserved to JDC for ever!