seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.5k stars 996 forks source link

Can't install - uninitialized constant V8::JSError (NameError) #206

Closed codebykat closed 11 years ago

codebykat commented 12 years ago

Not sure what I'm missing here... this is a fairly new Rails 3.2.1 project. My Gemfile has the following:

group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'twitter-bootstrap-rails' gem 'therubyracer' gem 'uglifier', '>= 1.0.3' end

And "bundle" works fine. But then...

$ rails g bootstrap:install /Users/kat/.rvm/gems/ruby-1.9.3-p125@revel-middle/gems/less-2.2.1/lib/less/java_script/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (NameError)

Is there another dependency I'm missing?

seyhunak commented 12 years ago

Did you installed any v8 engine? rubyracer or node.js?

reyjexter commented 12 years ago

Hi.

I'm getting the same problem.

I have therubyracer gem installed. My Gemfile.lock looks like this:

GIT remote: git://github.com/cowboyd/therubyracer.git revision: 084c47bc629fb4b924aa949e937899047e619540 specs: therubyracer (0.10.1) libv8 (~> 3.3.10)

GIT remote: git://github.com/seyhunak/twitter-bootstrap-rails.git revision: 79dc10c396723b7a6e5824119d50fe912b58d152 specs: twitter-bootstrap-rails (2.0.6) actionpack (>= 3.1) less-rails (~> 2.2.0) railties (>= 3.1)

GEM remote: http://rubygems.org/ specs: actionmailer (3.2.0) actionpack (= 3.2.0) mail (~> 2.4.0) actionpack (3.2.0) activemodel (= 3.2.0) activesupport (= 3.2.0) builder (~> 3.0.0) erubis (~> 2.7.0) journey (~> 1.0.0) rack (~> 1.4.0) rack-cache (~> 1.1) rack-test (~> 0.6.1) sprockets (~> 2.1.2) activemodel (3.2.0) activesupport (= 3.2.0) builder (~> 3.0.0) activerecord (3.2.0) activemodel (= 3.2.0) activesupport (= 3.2.0) arel (~> 3.0.0) tzinfo (~> 0.3.29) activeresource (3.2.0) activemodel (= 3.2.0) activesupport (= 3.2.0) activesupport (3.2.0) i18n (~> 0.6) multi_json (~> 1.0) addressable (2.2.7) ansi (1.4.2) arel (3.0.2) aws-s3 (0.6.2) builder mime-types xml-simple aws-sdk (1.4.1) httparty (~> 0.7) json (~> 1.4) nokogiri (>= 1.4.4) uuidtools (~> 2.1) bcrypt-ruby (3.0.1) bson (1.6.2) bson_ext (1.6.2) bson (~> 1.6.2) builder (3.0.0) coffee-rails (3.2.2) coffee-script (>= 2.2.0) railties (~> 3.2.0) coffee-script (2.2.0) coffee-script-source execjs coffee-script-source (1.3.1) commonjs (0.2.6) daemons (1.1.8) devise (2.0.4) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.0.3) railties (~> 3.1) warden (~> 1.1.1) erubis (2.7.0) eventmachine (0.12.10) execjs (1.3.1) multi_json (~> 1.0) has_scope (0.5.1) heroku (2.25.0) launchy (>= 0.3.2) netrc (~> 0.7.1) rest-client (~> 1.6.1) rubyzip hike (1.2.1) httparty (0.8.3) multi_json (~> 1.0) multi_xml i18n (0.6.0) inherited_resources (1.3.1) has_scope (~> 0.5.0) responders (~> 0.6) journey (1.0.3) jquery-rails (2.0.2) railties (>= 3.2.0, < 5.0) thor (~> 0.14) json (1.6.6) launchy (2.1.0) addressable (~> 2.2.6) less (2.2.1) commonjs (~> 0.2.6) less-rails (2.2.2) actionpack (>= 3.1) less (~> 2.2.0) libv8 (3.3.10.4) mail (2.4.4) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.18) mongo (1.6.2) bson (~> 1.6.2) mongoid (2.4.9) activemodel (~> 3.1) mongo (~> 1.3) tzinfo (~> 0.3.22) multi_json (1.3.2) multi_xml (0.4.4) netrc (0.7.1) newrelic_rpm (3.3.4.1) nifty-generators (0.4.6) nokogiri (1.5.2) orm_adapter (0.0.7) polyglot (0.3.3) rack (1.4.1) rack-cache (1.2) rack (>= 0.4) rack-ssl (1.3.2) rack rack-test (0.6.1) rack (>= 1.0) rails (3.2.0) actionmailer (= 3.2.0) actionpack (= 3.2.0) activerecord (= 3.2.0) activeresource (= 3.2.0) activesupport (= 3.2.0) bundler (~> 1.0) railties (= 3.2.0) railties (3.2.0) actionpack (= 3.2.0) activesupport (= 3.2.0) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) thor (~> 0.14.6) rake (0.9.2.2) rdoc (3.12) json (~> 1.4) responders (0.9.1) railties (~> 3.1) rest-client (1.6.7) mime-types (>= 1.16) rubyzip (0.9.8) sass (3.1.16) sass-rails (3.2.5) railties (~> 3.2.0) sass (>= 3.1.10) tilt (~> 1.3) sprockets (2.1.3) hike (~> 1.2) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sqlite3 (1.3.6) thin (1.3.1) daemons (>= 1.0.9) eventmachine (>= 0.12.6) rack (>= 1.0.0) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) polyglot polyglot (>= 0.3.1) turn (0.8.2) ansi (>= 1.2.2) tzinfo (0.3.33) uglifier (1.2.4) execjs (>= 0.3.0) multi_json (>= 1.0.2) uuidtools (2.1.2) warden (1.1.1) rack (>= 1.0) xml-simple (1.1.1)

PLATFORMS ruby

DEPENDENCIES aws-s3 aws-sdk bson_ext coffee-rails (~> 3.2.1) devise heroku inherited_resources jquery-rails json mongoid newrelic_rpm nifty-generators rails (= 3.2.0) sass-rails (~> 3.2.3) sqlite3 therubyracer! thin turn (= 0.8.2) twitter-bootstrap-rails! uglifier (>= 1.0.3)

carlos-a-crespo commented 12 years ago

Hi guys,

I'm also getting the same error. Were you able to solve it?

Thanks in advance.

hcarreras commented 12 years ago

I have the same problem. Help please!

westonplatter commented 12 years ago

@hcarreras do you have your code up on the web (w/ notes on environment configs). If, so I'll take a look at it.

hcarreras commented 12 years ago

My code is not online, but is a new project and is very simple. My gemfile has:

source 'https://rubygems.org'

gem 'rails' gem 'mysql2' em 'therubyracer' gem 'json'

gem "bcrypt-ruby", :require => "bcrypt" group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.0' gem 'twitter-bootstrap-rails' gem 'uglifier', '>= 1.0.3' end

gem 'jquery-rails'

and when I put in the terminal: rails g bootrstrap:install

/Users/hcarreras/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (NameError)

westonplatter commented 12 years ago

@hcarreras running Mac OSX? Regardless, what are the specs on your OS?

hcarreras commented 12 years ago

@westonplatter yes, is Snow leopard (Mac OS X 10.6)

thank you

westonplatter commented 12 years ago

@hcarreras tried duplicating your issue on MacOSX 10.7.3, Ruby -v 1.9.3-p125 but did not have issues. My rails test app is available, https://github.com/westonplatter/tbr-test-hcarreras-10.7.

Thus, I think the issue is with your environment. I'll flip my macbook back to 10.6 later. In the mean time,

  1. what does this result in, 'rails generate bootstrap:install --trace'
  2. have you tried using a different ruby path? eg, 1.9.3-p125
hcarreras commented 12 years ago

Now I tried with ruby 1.9.2 and the error is different: /Users/hcarreras/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:77:in rescue in rescue in block in require': undefined methodgsub' for nil:NilClass (NoMethodError)

I run the same code on ubuntu and works without problems.

hcarreras commented 12 years ago

I forgot execute bundle install, the error is the same: /Users/hcarreras/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (NameError)

westonplatter commented 12 years ago

what about, rails generate bootstrap:install --trace

bentzurm commented 12 years ago

Same problem here. Ruby 1.9.3p194. Rails 3.2.3. Snow Leopard 10.6.8. Ran a clean rails new project. Added the gem, bundle install, and ran rails generate bootstrap:install --trace:

/Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (NameError)
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:60:in `lock'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:19:in `initialize'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:15:in `new'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:15:in `instance'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/loader.rb:10:in `initialize'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less.rb:14:in `new'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less.rb:14:in `<module:Less>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less.rb:9:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-rails-2.2.2/lib/less/rails.rb:6:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-rails-2.2.2/lib/less/rails.rb:6:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-rails-2.2.2/lib/less-rails.rb:1:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/less-rails-2.2.2/lib/less-rails.rb:1:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/twitter-bootstrap-rails-2.0.7/lib/twitter-bootstrap-rails.rb:9:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/twitter-bootstrap-rails-2.0.7/lib/twitter-bootstrap-rails.rb:9:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
    from /Users/moran/sample/config/application.rb:7:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:24:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:24:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
bentzurm commented 12 years ago

more info: After adding - gem "therubyracer", :require => 'v8' to my gem file I get this error when running rails generate bootstrap:install --trace:

/Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/lib/v8.rb:6:in `require': dlopen(/Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/ext/v8/v8.bundle, 9): Symbol not found: __ZN2v86Locker7active_E (LoadError)
  Referenced from: /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/ext/v8/v8.bundle
  Expected in: flat namespace
 in /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/ext/v8/v8.bundle - /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/ext/v8/v8.bundle
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/lib/v8.rb:6:in `<module:V8>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.10.1/lib/v8.rb:4:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
    from /Users/moran/sample/config/application.rb:7:in `<top (required)>'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:24:in `require'
    from /Users/moran/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:24:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
westonplatter commented 12 years ago

Why are you doing the -- :require => 'v8' -- ?

What happens if you add just this to your Gemfile? -- gem "therubyracer"

My app ran fine with just that in the Gemfile, https://github.com/westonplatter/tbr-test-hcarreras-10.7/blob/master/Gemfile

bentzurm commented 12 years ago

Same outcome. I guess this is a snow leopard issue. I'll try this tomorrow on a lion install I have and update.

jbowles commented 12 years ago

Looks like less removed therubyracer dependency in current versions. I was to resolve my problems by rolling back to an earlier version of less or requiring therubyracer in my Gemfile.

my Gemfile.lock with different versions of less

2.1 or earlier

less (2.1.0)
  commonjs (~> 0.2.0)
  therubyracer (~> 0.10.0)

2.2 or greater

less (2.2.1)
  commonjs (~> 0.2.6)
edokeh commented 12 years ago

Maybe this will be helpful: check that if you've already disabled SELinux

eugene commented 12 years ago

Try addinggem 'libv8' to the Gemfile

allenwyma commented 12 years ago

Also having this problem:

/Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less/java_script/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (NameError)
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less/java_script/v8_context.rb:60:in `lock'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less/java_script/v8_context.rb:19:in `initialize'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less/java_script/v8_context.rb:15:in `new'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less/java_script/v8_context.rb:15:in `instance'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less/loader.rb:10:in `initialize'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less.rb:14:in `new'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less.rb:14:in `<module:Less>'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-2.2.1/lib/less.rb:9:in `<top (required)>'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-rails-2.2.2/lib/less/rails.rb:6:in `<top (required)>'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/less-rails-2.2.2/lib/less-rails.rb:1:in `<top (required)>'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/bundler/gems/twitter-bootstrap-rails-57e74f31afad/lib/twitter-bootstrap-rails.rb:9:in `<top (required)>'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
    from /Users/allenwyma/Documents/Aptana Studio 3 Workspace/openerp/config/application.rb:7:in `<top (required)>'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.3/lib/rails/commands.rb:24:in `require'
    from /Users/allenwyma/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.3/lib/rails/commands.rb:24:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Gemfile.lock:

GIT
  remote: git://github.com/NUBIC/surveyor.git
  revision: 97bc226e5ef62f75a14d96e301d6180acac2da7d
  branch: rails3
  specs:
    surveyor (0.20.0)
      fastercsv
      formtastic
      haml
      sass
      uuid

GIT
  remote: git://github.com/jnicklas/capybara.git
  revision: 644853c6e4be9f510331bc649a544e2569f5326f
  specs:
    capybara (1.1.2)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      selenium-webdriver (~> 2.0)
      xpath (~> 0.1.4)

GIT
  remote: git://github.com/plataformatec/devise.git
  revision: f6259531c36795be2766ffefd50de1f8803fc5cd
  specs:
    devise (2.1.0)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.0.7)
      railties (~> 3.1)
      warden (~> 1.1.1)

GIT
  remote: git://github.com/sconover/wrong.git
  revision: 2a227031f805c81adf9b78dcc823a8d78070e506
  specs:
    wrong (0.6.2)
      ParseTree (~> 3.0)
      diff-lcs (~> 1.1.2)
      file-tail (~> 1.0)
      predicated (>= 0.2.3)
      ruby2ruby (~> 1.2)
      ruby_parser (~> 2.0.4)
      sexp_processor (~> 3.0)
      sourcify (>= 0.3.0)

GIT
  remote: git://github.com/seyhunak/twitter-bootstrap-rails.git
  revision: 57e74f31afade32997d6ae336316b68a4058fc6e
  specs:
    twitter-bootstrap-rails (2.0.7)
      actionpack (>= 3.1)
      less-rails (~> 2.2.2)
      railties (>= 3.1)
      therubyracer (~> 0.10.1)

GIT
  remote: git://github.com/sporkrb/spork.git
  revision: 055b32fb771d6135728c25113851edb9d00cf561
  specs:
    spork (1.0.0rc3)

GIT
  remote: git://github.com/stefankroes/ancestry.git
  revision: d675199683155336957939c405dab71e1a87edbb
  specs:
    ancestry (1.3.0)
      activerecord (>= 2.3.14)

GEM
  remote: http://rubygems.org/
  specs:
    ParseTree (3.0.9)
      RubyInline (~> 3.9.0)
      sexp_processor (~> 3.2.0)
    RubyInline (3.9.0)
      ZenTest (~> 4.3)
    ZenTest (4.8.0)
    actionmailer (3.2.3)
      actionpack (= 3.2.3)
      mail (~> 2.4.4)
    actionpack (3.2.3)
      activemodel (= 3.2.3)
      activesupport (= 3.2.3)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.1)
      rack (~> 1.4.0)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.1.2)
    activemodel (3.2.3)
      activesupport (= 3.2.3)
      builder (~> 3.0.0)
    activerecord (3.2.3)
      activemodel (= 3.2.3)
      activesupport (= 3.2.3)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activeresource (3.2.3)
      activemodel (= 3.2.3)
      activesupport (= 3.2.3)
    activesupport (3.2.3)
      i18n (~> 0.6)
      multi_json (~> 1.0)
    addressable (2.2.8)
    arel (3.0.2)
    bcrypt-ruby (3.0.1)
    builder (3.0.0)
    capistrano (2.12.0)
      highline
      net-scp (>= 1.0.0)
      net-sftp (>= 2.0.0)
      net-ssh (>= 2.0.14)
      net-ssh-gateway (>= 1.1.0)
    childprocess (0.3.2)
      ffi (~> 1.0.6)
    cocaine (0.2.1)
    coderay (1.0.6)
    coffee-rails (3.2.2)
      coffee-script (>= 2.2.0)
      railties (~> 3.2.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.3.3)
    commonjs (0.2.6)
    cucumber (1.2.0)
      builder (>= 2.1.2)
      diff-lcs (>= 1.1.3)
      gherkin (~> 2.10.0)
      json (>= 1.4.6)
    cucumber-rails (1.3.0)
      capybara (>= 1.1.2)
      cucumber (>= 1.1.8)
      nokogiri (>= 1.5.0)
    database_cleaner (0.7.2)
    diff-lcs (1.1.3)
    erubis (2.7.0)
    execjs (1.3.2)
      multi_json (~> 1.0)
    factory_girl (3.3.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (3.3.0)
      factory_girl (~> 3.3.0)
      railties (>= 3.0.0)
    fastercsv (1.5.5)
    ffi (1.0.11)
    file-tail (1.0.8)
      tins (~> 0.3)
    formtastic (1.2.4)
      actionpack (>= 2.3.7)
      activesupport (>= 2.3.7)
      i18n (~> 0.4)
    gherkin (2.10.0)
      json (>= 1.4.6)
    growl (1.0.3)
    guard (1.0.3)
      ffi (>= 0.5.0)
      thor (>= 0.14.6)
    guard-cucumber (0.8.0)
      cucumber (>= 1.2.0)
      guard (>= 0.8.3)
    guard-rspec (0.7.2)
      guard (>= 0.10.0)
    guard-spork (0.8.0)
      guard (>= 0.10.0)
      spork (>= 0.8.4)
    haml (3.1.6)
    highline (1.6.12)
    hike (1.2.1)
    i18n (0.6.0)
    journey (1.0.3)
    jquery-rails (2.0.2)
      railties (>= 3.2.0, < 5.0)
      thor (~> 0.14)
    jruby-pageant (1.0.2)
    json (1.7.3)
    launchy (2.1.0)
      addressable (~> 2.2.6)
    less (2.2.1)
      commonjs (~> 0.2.6)
    less-rails (2.2.2)
      actionpack (>= 3.1)
      less (~> 2.2.0)
    libv8 (3.3.10.4)
    libwebsocket (0.1.3)
      addressable
    macaddr (1.6.0)
      systemu (~> 2.2.0)
    mail (2.4.4)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    method_source (0.7.1)
    mime-types (1.18)
    multi_json (1.3.5)
    net-scp (1.0.4)
      net-ssh (>= 1.99.1)
    net-sftp (2.0.5)
      net-ssh (>= 2.0.9)
    net-ssh (2.4.0)
      jruby-pageant (>= 1.0.2)
    net-ssh-gateway (1.1.0)
      net-ssh (>= 1.99.1)
    nokogiri (1.5.2)
    orm_adapter (0.0.7)
    paperclip (2.7.0)
      activerecord (>= 2.3.0)
      activesupport (>= 2.3.2)
      cocaine (>= 0.0.2)
      mime-types
    polyglot (0.3.3)
    predicated (0.2.6)
    pry (0.9.9.6)
      coderay (~> 1.0.5)
      method_source (~> 0.7.1)
      slop (>= 2.4.4, < 3)
    rack (1.4.1)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-ssl (1.3.2)
      rack
    rack-test (0.6.1)
      rack (>= 1.0)
    rails (3.2.3)
      actionmailer (= 3.2.3)
      actionpack (= 3.2.3)
      activerecord (= 3.2.3)
      activeresource (= 3.2.3)
      activesupport (= 3.2.3)
      bundler (~> 1.0)
      railties (= 3.2.3)
    railties (3.2.3)
      actionpack (= 3.2.3)
      activesupport (= 3.2.3)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (~> 0.14.6)
    rake (0.9.2.2)
    rb-fsevent (0.9.1)
    rdoc (3.12)
      json (~> 1.4)
    rspec (2.10.0)
      rspec-core (~> 2.10.0)
      rspec-expectations (~> 2.10.0)
      rspec-mocks (~> 2.10.0)
    rspec-core (2.10.0)
    rspec-expectations (2.10.0)
      diff-lcs (~> 1.1.3)
    rspec-mocks (2.10.1)
    rspec-rails (2.10.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec (~> 2.10.0)
    ruby2ruby (1.3.1)
      ruby_parser (~> 2.0)
      sexp_processor (~> 3.0)
    ruby_parser (2.0.6)
      sexp_processor (~> 3.0)
    rubyzip (0.9.8)
    sass (3.1.18)
    sass-rails (3.2.5)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    selenium-client (1.2.18)
    selenium-webdriver (2.21.2)
      childprocess (>= 0.2.5)
      ffi (~> 1.0)
      libwebsocket (~> 0.1.3)
      multi_json (~> 1.0)
      rubyzip
    sexp_processor (3.2.0)
    slop (2.4.4)
    sourcify (0.5.0)
      file-tail (>= 1.0.5)
      ruby2ruby (>= 1.2.5)
      ruby_parser (>= 2.0.5)
      sexp_processor (>= 3.0.5)
    sprockets (2.1.3)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sqlite3 (1.3.6)
    systemu (2.2.0)
    therubyracer (0.10.1)
      libv8 (~> 3.3.10)
    thor (0.14.6)
    tilt (1.3.3)
    tins (0.4.2)
    treetop (1.4.10)
      polyglot
      polyglot (>= 0.3.1)
    tzinfo (0.3.33)
    uglifier (1.2.4)
      execjs (>= 0.3.0)
      multi_json (>= 1.0.2)
    uuid (2.3.5)
      macaddr (~> 1.0)
    warden (1.1.1)
      rack (>= 1.0)
    xpath (0.1.4)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  ancestry!
  capistrano
  capybara!
  coffee-rails (~> 3.2.1)
  cucumber-rails (>= 1.1.1)
  database_cleaner (>= 0.5.2)
  devise!
  factory_girl_rails (>= 1.1.beta1)
  formtastic (~> 1.0)
  growl
  guard
  guard-cucumber
  guard-rspec
  guard-spork
  haml
  jquery-rails (>= 1.0.12)
  launchy
  paperclip (~> 2.3)
  pry
  rails (= 3.2.3)
  rb-fsevent
  rspec-rails (>= 2.0.0)
  sass-rails (~> 3.2.3)
  selenium-client (>= 1.2.18)
  spork!
  sqlite3
  surveyor!
  twitter-bootstrap-rails!
  uglifier (>= 1.0.3)
  wrong!

I'm already including libv8 and rubyracer through dependencies so not sure what else I can be missing?

allenwyma commented 12 years ago

I forgot to add my environment. I'm running Mac OS X 10.7.4 with 1.9.2-p320. It seems to be a problem with the less gem and rubyracer gem not connecting somehow? Does rubyracer gem require something else to be installed besides gem dependencies?

Quick Update:

I switched to ruby 1.9.3-p194 and did a bundle install, then tried it, and it worked right away? Not sure what the problem is, but I guess I should switch to 1.9.3 now.

bluemont commented 12 years ago

I am having a similar problem. I am using Mac OS X 10.7.4, ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0], and a brand-new Rails 3.2.3 project.

$ rails g bootstrap:install
/Users/david/.rvm/gems/ruby-1.9.3-p194/gems/less-2.2.1/lib/less/java_script/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (NameError)

My Gemfile:

source 'https://rubygems.org'
gem 'rails', '3.2.3'
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'twitter-bootstrap-rails', '~> 2.0.8'
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  gem 'therubyracer', :platform => :ruby
  gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
westonplatter commented 12 years ago

@bluemont what does your gemfile contain? Try adding gem 'libv8'. Otherwise, install node.js on your OS and that should act as your JS engine.

bluemont commented 12 years ago

I'm pretty sure the problem was that therubyracer didn't get installed correctly: see http://stackoverflow.com/questions/10905820/gem-install-therubyracer-fails-on-mac-os-x-lion

So, from my perspective, closing this issue makes sense.

maxgronlund commented 11 years ago

I resolved it by removing

gem "therubyracer"

gem "less-rails"

and only adding

gem "twitter-bootstrap-rails"

Running OS X 10.8.2 Rails 3.2.11 Ruby ruby-1.9.3-p385

kmamykin commented 11 years ago

Had the same issue, I commented out gem 'therubyracer' gem 'less-rails' #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem 'twitter-bootstrap-rails' bundle install then uncommented the gems and bundle install it again. The app started and the only diff in Gemfile.lock was:

diff --git a/Gemfile.lock b/Gemfile.lock
index 9aa18e5..5755e7e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -350,6 +350,7 @@ GEM
     redis (2.2.2)
     redis-namespace (1.1.0)
       redis (< 3.0.0)
+    ref (1.0.2)
     request_store (1.0.5)
     responders (0.9.1)
       railties (~> 3.1)

apparently if was a bad merge in my case that kept ref gem in the lock file.