1. 程式人生 > >ruby on rails environment setup

ruby on rails environment setup

HR scrip rail CA UC node make install rst

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