Created
March 20, 2013 22:32
-
-
Save jrgifford/5209156 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you had problems to use the gem therubyracer on Ubuntu 12.04LTS after install | |
$gem install therubyracer | |
You just need to delete v8 library before install therubyracer, so... | |
$gem uninstall libv8 | |
$gem install therubyracer | |
ok... if you did that and the rails still asking "Please install gem therubyracer", don't worry. Just edit the gemfile: | |
add: | |
gem 'execjs' on line 9 | |
and uncomment therubyracer gem on line 18: | |
gem 'therubyracer', :platforms => :ruby | |
and be happy! | |
My gemfile after edition: | |
1 source 'https://rubygems.org' | |
2 | |
3 gem 'rails', '3.2.8' | |
4 | |
5 # Bundle edge Rails instead: | |
6 # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
7 | |
8 gem 'sqlite3' | |
9 gem 'execjs' | |
10 | |
11 # Gems used only for assets and not required | |
12 # in production environments by default. | |
13 group :assets do | |
14 gem 'sass-rails', '~> 3.2.3' | |
15 gem 'coffee-rails', '~> 3.2.1' | |
16 | |
17 # See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
18 gem 'therubyracer', :platforms => :ruby | |
19 | |
20 gem 'uglifier', '>= 1.0.3' | |
21 end | |
22 | |
23 gem 'jquery-rails' | |
24 | |
25 # To use ActiveModel has_secure_password | |
26 # gem 'bcrypt-ruby', '~> 3.0.0' | |
27 | |
28 # To use Jbuilder templates for JSON | |
29 # gem 'jbuilder' | |
30 | |
31 # Use unicorn as the app server | |
32 # gem 'unicorn' | |
33 | |
34 # Deploy with Capistrano | |
35 # gem 'capistrano' | |
36 | |
37 # To use debugger | |
38 # gem 'debugger' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment