ruby版本 :ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
下载地址:
- wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
rails版本:Rails 3.1.3
- gem install rails
------------安装ok后开始使用
创建项目:rails new BBS
出现没安装sqlite3的错误:
gem install sqlite3
得先安装apt-get install libsqlite3-dev
-----------------------------------------------------
启动server:rails server
- /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
修改Gemfile,加上:
gem ‘execjs’
gem ‘therubyracer’
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。