RVM Rails3 ãUbuntu 11.04ã«ã¤ã³ã¹ãã¼ã«
Railsã®ç°å¢æ§ç¯ã¯ãã¤ããã¾ããããªãã®ã§èªåç¨ã«ã¡ã¢ã£ã¦ãã
rvmã®ã¤ã³ã¹ãã¼ã«
å
¬å¼ããã¥ã¡ã³ã
https://rvm.beginrescueend.com/rvm/install/
rvmã¨ã¯ä½ãã«ã¤ãã¦ã¯ãã®ã¹ã©ã¤ããããããããã§ãã
http://www.slideshare.net/chsh404/rails-7751577
以ä¸rvmã®ã¤ã³ã¹ãã¼ã«æé ã³ãã³ãã®ã¿
$ sudo apt-get install build-essential bison openssl libreadline5 libreadline-dev curl git zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev $ sudo apt-get install ruby1.8 rubygems1.8 $ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm ) $ vi .bashrc
以ä¸ã®è¡ã追å
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
å¤æ´ãé©ç¨
$ source .bashrc
â»ãhttps://rvm.beginrescueend.com/install/rvmãã®URLã¯ããã£ã¡ã ãå¤ãããããã®ã§ãã¤ã³ã¹ãã¼ã«ã®éã¯å ¬å¼ãµã¤ãããã§ãã¯ããæ¹ãè¯ããã
Ruby1.9ãã¤ã³ã¹ãã¼ã«
$ rvm install 1.9.2 $ rvm use 1.9.2 --default
確èª
$ rails new hello-rails3 $ cd hello-rails3 $ bundle install $ rails s
http://localhost:3000ã«ã¢ã¯ã»ã¹ãã¦ãWelcome aboard
Youâre riding Ruby on Rails!ãã¨ãããããã¼ã¸ã表示ãããã°OK
ä»åãããæ¸ãã®ã«ãããã¤ããã°ã¿ããããããªããRubyã¯ã»ãã¨ç°å¢æ§ç¯ã ãã¯ããã¯ãªãã ããªãã