安装了rails 3.1.0.rc4,启动rails时遇到了javascript的运行时问题,
原因是缺少了javascript运行时环境。运行时环境见execjs的项目主页:
https://github.com/sstephenson/execjs
therubyracer - Google V8 embedded within Ruby
therubyrhino - Mozilla Rhino embedded within JRuby
Johnson - Mozilla SpiderMonkey embedded within Ruby
Mustang - Mustang V8 embedded within Ruby
Node.js
Apple JavaScriptCore - Included with Mac OS X
Mozilla SpiderMonkey
Microsoft Windows Script Host (JScript)
列出了若干javascript运行时环境,至少要安装一种吧。
gem install therubyracer
如果还是报同样的错,
sudo apt-get install libv8-dev
在Gemfile中取消
gem 'therubyracer'
的注释
分享到:
相关推荐
Chapter 4. Perform Fast Queries with Advanced Postgres Indexes Chapter 5. Create Clean Search Results with Bootstrap Components Chapter 6. Build a Dynamic UI with AngularJS Chapter 7. Test This Fancy ...
本人学习总结的ruby on rails 3.1.0数据库类查询方法,比较全了
Ruby on Rails Bible.pdf Ruby on Rails Bible.pdf
眼镜: 导轨4.2.6 gem'spree','〜> 3.1.0.rc1'gem'spree_auth_devise','〜> 3.1.0.rc1'gem'spree_gateway','〜> 3.1.0.rc1' 系统依赖组态db sqlite3 数据库初始化如何运行测试套件服务(作业队列,缓存服务器,...
rails.vim提供了常用的一些命令,可以帮助开发,例如:Rgenerate, Rake, Rfind,RTview等,很方便,也很实用。 安装方法: 拷贝 autoload/rails.vim, plugin/rails.vim, 和 doc/rails.txt 到 ~/.vim 目录. ...
Rails.Recipes.Rails.3.Edition.和源码
使用RSpec 测试Rails 程序.pdf
This book is intended for intermediate to advanced Rails programmers. It assumes that you already know Ruby, and have either read one of the many wonderful introductory books on Rails or have ...
Pragmatic - Agile.Web.Development.with.Rails.4.Sep.2013.pdf
Netbeans 6.0 JRuby on Rails 演示 .swf
Agile.Web.Development.with.Rails.4.Sam.Ruby
twitter-bootstrap-rails, 用于 Rails 5 4.x 资产管道的Twitter Bootstrap 用于 Rails 5和 Rails 4资产管道的 Twitter BootstrapBootstrap 是 Twitter的工具包,旨在开发网络应用程序和站点的kickstart 。...
Ruby on Rails Guides_ A Guide to Testing Rails Applications.pdf
Ruby_on_Rails实践.rar
[Ruby_on_Rails][中文][Rails_5.x]__03-2_._安裝不同版本的Rails與產生Rails_5.x版
RailsSpace teaches you Ruby on Rails by developing a real-world application: RailsSpace, a social networking website aimed at the Rails community itself. We take you step by step, from the virtually...
Addison.Wesley.Rails.AntiPatterns.Best.Practice.Ruby.on.Rails.Refactoring
Rails.4.in.Action.2015.8.pdf英文电子版
一个与Rails 3.x,Rails 4.x和Rails 5.x兼容的Mustache / Handlebars模板处理程序,支持partials和一些额外的功能,使与客户端javascript共享原始模板更加容易。 这是一站式商店,为您提供灵感来自头发的模板。 ...
Ruby.on.Rails.Enterprise.Application.Development