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.

猜你喜欢

转载自www.cnblogs.com/jdcai/p/9195960.html