新安装了ubuntu 13.10 要配置ruby1.9.3+rails3.2的运行环境
$sudo apt-get install curl git
$ curl -L get.rvm.io | bash -s stable $ source ~/.bashrc $ source ~/.bash_profile
$ rvm install 1.9.3$ gem install rails -v 3.2$ rails new ticket$ rails serve
出现如下错误
/home/user/.rvm/gems/ruby-1.9.3-p448/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
sudo apt-get install nodejs后问题解决
ubuntu 安装ruby+rails参见 《ubuntu安装rvm》 《rails3 in ubuntu 10.04 Env_Config》《ruby on rails,linux下安装Rails开发环境》
学习rails开发参见 《ruby on rails实战圣经》