I'm trying to run db:migrate on Heroku (app's working fine locally) and I get this error:
rake aborted!
uninitialized constant Bootstrap::Rails::Engine::Sass
/app/vendor/bundle/ruby/2.0.0/bundler/gems/bootstrap-rails-8eb1287f94b3/lib/bootstrap-rails/engine.rb:6:in `block in <class:Engine>'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/app/config/environment.rb:5:in `<top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:249:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Gemfile:
source 'https://rubygems.org'
ruby "2.0.0"
gem 'rails', '4.0.0'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
#gem 'therubyracer'
#gem 'less-rails'
#gem 'twitter-bootstrap-rails'
gem 'uglifier', '>= 1.0.3'
end
gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
:github => 'anjlab/bootstrap-rails',
:branch => '3.0.0'
gem 'railties', '>=4.0.0'
gem 'protected_attributes'
gem 'jquery-rails'
gem 'foreman'
# PostgreSQL
gem 'pg'
# Use Unicorn as the app server
gem 'unicorn'
# Devise for user accounts management
gem 'devise'
# Stripe for processing payments
gem 'stripe'
# New Relic monitoring
gem 'newrelic_rpm'
# QR Code generation
gem 'rqrcode-rails3'
# User auth
gem 'cancan'
group :development do
gem 'debugger'
gem 'better_errors'
gem "binding_of_caller"
gem 'meta_request'
end
Remove the assets group, as it doesn't exist in Rails4 anymore.
Just move the gems included in it into the global space
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
#gem 'therubyracer'
#gem 'less-rails'
#gem 'twitter-bootstrap-rails'
gem 'uglifier', '>= 1.0.3'
end
# becomes
# group :assets do
gem 'sass-rails'
gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
#gem 'therubyracer'
#gem 'less-rails'
#gem 'twitter-bootstrap-rails'
gem 'uglifier', '>= 1.0.3'
# end
Related
I'm having a stack level too deep error using Ruby 2.3.1 with Rails 4.2.6.
How should I fix this problem?
When I run below command, error showed up.
heroku run rails db:migrate
Here is the error.
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Traceback (most recent call last):
8390: from /app/bin/bundle:3:in `<main>'
8389: from /app/bin/bundle:3:in `load'
8388: from /app/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/exe/bundle:22:in `<top (required)>'
8387: from /app/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
8386: from /app/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:123:in `rescue in with_friendly_errors'
8385: from /app/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:45:in `log_error'
8384: from /app/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:95:in `request_issue_report_for'
8383: from /app/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/env.rb:18:in `report'
... 8378 levels...
4: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
3: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
1: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
/app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
Here is Gemfile.rb
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.8'
# Use mysql as the database for Active Record
gem 'mysql2', '>= 0.3.13', '< 0.5', group: :development
gem 'pg', group: :production
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
gem 'pry-rails'
gem 'compass-rails','~> 2.0'
gem 'sprockets', '2.11.0'
gem 'devise'
gem 'omniauth'
gem 'omniauth-facebook'
gem 'omniauth-twitter'
gem 'bootstrap-sass'
gem 'dotenv-rails'
gem 'paperclip'
gem 'omniauth-instagram'
gem 'instagram'
gem 'friendly_id'
gem 'font-awesome-rails'
gem 'zeroclipboard-rails'
gem 'rails-i18n'
gem 'google-analytics-rails'
gem 'carrierwave'
gem 'acts_as_paranoid', '~> 0.6.0'
gem 'rails_12factor', group: :production
I updated rails version to 4.2.8 from 4.2.6. but still having same problem.
And even, heroku run bundle exec rake db:migrate doesn't work.
Can't understand why still have this error.
Anyone help me?
I got this error remove.
ruby version on production was 2.5.0 that is inappropriate.
I had version down 2.4.5. from 2.5.0, then it works.
I am trying to deploy an app from a cloud9 Rails instance to Heroku. Deploy completes successfully, but the app crashes when started. Also, fail to load Heroku rails Console - see error below. I am new to R on R.
I had issues with imagemagick on local box and cloud9 until I did an install. Not sure how to accomplish that on Heroku instance and if that is really my issue. Thoughts, suggestions, question are welcomed.
$ heroku run rails console
Running rails console on ⬢ bttttt-xxxxxxxs-888888... up, run.9920 (Free)
/app/app/uploaders/image_uploader.rb:1:in `<top (required)>': uninitialized constant CarrierWave (NameError)
from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
from /app/app/models/restaurant.rb:2:in `<class:Restaurant>'
from /app/app/models/restaurant.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:475:in `each'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:475:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:473:in `each'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:473:in `eager_load!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/engine.rb:354:in `eager_load!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application/finisher.rb:59:in `each'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/initializable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application.rb:352:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application.rb:328:in `require'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/application.rb:328:in `require_environment!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:157:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:77:in `console'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.4/lib/rails/commands.rb:18:in `<top (required)>'
from /app/bin/rails:9:in `require'
from /app/bin/rails:9:in `<main>'
Gemfile code -
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.1'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
gem 'sqlite3'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'carrierwave'
gem 'mini_magick'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
group :production do
gem 'pg', '0.20.0'
end
uninitialized constant CarrierWave (NameError)
You have put the gem 'carrierwave' under the group :development, so that the gem isn't bundled in the production. This is the reason for the error.
Solution:
Move it outside the development group
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.1'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'
gem 'carrierwave'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
gem 'sqlite3'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'mini_magick'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
group :production do
gem 'pg', '0.20.0'
end
Or
Add it to both development and production groups
group :development, :production do
gem 'carrierwave'
end
And finally run bundle install
I am trying to generate a controller with a rails app. However, the command prompt will not let me create the controller scaffold. It instead displays this error involving bootstrap-sass:
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bootstrap-sass-3.3.6/lib/bootstrap-sass/engine.rb:11:in `block in <class:Engine>': uninitialized constant Sprockets::Rails (NameError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/initializable.rb:30:in `instance_exec'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/initializable.rb:30:in `run'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/initializable.rb:54:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/initializable.rb:54:in `run_initializers'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/application.rb:136:in `initialize!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/Sites/rails projects/Vumos/config/environment.rb:5:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/application.rb:103:in `require_environment!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
This is the gem file for the application:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'bootstrap-sass'
gem 'devise'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
gem 'jquery-turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
How can I fix this?
Here's the error:
c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/spec_set.rb:9
2:in `block in materialize': Could not find nokogiri-1.6.0-x86-mingw32 in any of
the sources (Bundler::GemNotFound)
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
spec_set.rb:85:in `map!'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
spec_set.rb:85:in `materialize'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
definition.rb:114:in `specs'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
definition.rb:159:in `specs_for'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
definition.rb:148:in `requested_specs'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
environment.rb:18:in `requested_specs'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
runtime.rb:13:in `setup'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler.
rb:120:in `setup'
from c:/jruby-1.7.3/lib/ruby/gems/shared/gems/bundler-1.3.4/lib/bundler/
setup.rb:17:in `<top (required)>'
from C:/Software/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_requir
e.rb:36:in `require'
from C:/Software/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_requir
e.rb:36:in `require'
For a better pry experience, please use ansicon: http://adoxa.3eeweb.com/ansicon
/
the `ripper' lib is not supported on JRuby
rake aborted!
no such file to load -- ripper
org/jruby/RubyKernel.java:1027:in `require'
org/jruby/RubyKernel.java:1027:in `require'
org/jruby/RubyKernel.java:1027:in `require'
org/jruby/RubyKernel.java:1027:in `require'
org/jruby/RubyKernel.java:1027:in `require'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyKernel.java:1027:in `require'
org/jruby/RubyKernel.java:1046:in `load'
C:/Users/n0222072/AptanaWorkspace/dcms/config/application.rb:8:in `(root)'
C:/Users/n0222072/AptanaWorkspace/dcms/Rakefile:5:in `(root)'
org/jruby/RubyKernel.java:1046:in `load'
(See full trace by running task with --trace)
Here's the gemfile (bundle install works ok):
source 'http://rubygems.org'
gem 'rails', '3.2.13'
# gem 'mysql2', '0.3.11'
gem 'activerecord-jdbcmssql-adapter'
gem 'activerecord-jdbc-adapter'
gem 'jdbc-mssql-azure'
group :development do
#gem 'better_errors'
#gem 'binding_of_caller'
gem 'meta_request'
gem 'rack-bug', :require => false
gem "quiet_assets", ">= 1.0.2"
gem 'bullet'
# gem 'metrical'
end
group :test, :development do
#gem "rspec", "~> 2.0"
#gem "rspec-rails", "~> 2.0"
gem "cucumber", "~> 1.3.1"
gem "cucumber-rails", :require => false
gem "autotest-rails", :require => false
gem "mocha", :require => false
gem "capybara", "~> 2.1", :require => false
gem "launchy"
gem "database_cleaner", :require => false
gem 'simplecov', :require => false
gem 'shoulda'
gem 'guard-rails'
gem "guard-bundler"
gem "guard-cucumber"
#gem "guard-rspec"
# gem 'wdm', '>= 0.1.0', :platforms => [:mswin, :mingw]
# wdm comflicts with jruby
gem 'brakeman', :require => false
# gem 'sqlite3'
gem 'rails_best_practices'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.6'
gem 'coffee-rails', '~> 3.2.2'
gem 'therubyracer', :platforms => :ruby, :require => false
gem 'uglifier', '>= 2.1.1'
gem 'twitter-bootstrap-rails'
gem 'bootstrap-sass', "~> 2.3.2.0"
end
group :cloudfoundry do
gem "cf-autoconfig", :platforms => :ruby
gem "newrelic_rpm", :platforms => :ruby
end
gem 'builder', '~> 3.0.0'
gem 'mime-types', '1.23'
gem 'jquery-rails'
gem "rufus-scheduler"
gem 'gon'
gem 'rabl'
#gem 'yajl-ruby'
#yajl-ruby conflicts with jruby
gem "adauth", "~> 1.2.1"
gem 'formtastic'
gem 'kaminari'
gem "formtastic-bootstrap", "= 2.1.3"
gem 'carrierwave'
gem 'highcharts-rails'
# gem 'thin'
gem "rack", "= 1.4.5"
gem 'rack-cas'
gem 'rack-cas-client'
gem "mail_form", "= 1.4.1"
gem 'nifty-generators'
gem "axlsx"
gem 'nokogiri'
Has anyone seen this before? Thanks.
This has likely the same cause as the other question you raised :
How to make jruby look for pure java nokogiri instead of mingw?
Fix your GEM_HOME / GEM_PATH env and than proceed ...
I tried to bundle install, but here is what I got:
/home/mywebsite/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:187:in `initialize': Malformed version number string = 1.0.3 (ArgumentError)
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:104:in `new'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:104:in `parse_spec'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:71:in `parse_source'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:30:in `block in initialize'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:24:in `each'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:24:in `initialize'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/definition.rb:44:in `new'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/definition.rb:44:in `initialize'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/dsl.rb:148:in `new'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/dsl.rb:148:in `to_definition'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/dsl.rb:8:in `evaluate'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/cli.rb:228:in `install'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor/task.rb:27:in `run'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor.rb:275:in `dispatch'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor/base.rb:408:in `start'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/bin/bundle:14:in `block in <top (required)>'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/bin/bundle:14:in `<top (required)>'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/bin/bundle:19:in `load'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/bin/bundle:19:in `<main>'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#mywebsiter/bin/ruby_noexec_wrapper:14:in `eval'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#mywebsiter/bin/ruby_noexec_wrapper:14:in `<main>'
There was an error in your Gemfile, and Bundler cannot continue.
EDIT
Here is my Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
gem 'rake' , '>= 10.0.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem "rmagick", "~> 2.13.1"
gem "paperclip", "~> 3.0"
gem 'aws-sdk'
gem "fog"
gem 'bootstrap-wysihtml5-rails', :require => 'bootstrap-wysihtml5-rails',
:git => 'git://github.com/Nerian/bootstrap-wysihtml5-rails.git'
#gem "asset_sync"
#gem 'sendgrid'
gem "tweet-button"
#gem "fb-localizer"
#gem 'easy_roles'
gem 'pg'
gem 'google-analytics-rails'
gem 'jquery-rails-cdn'
gem 'spinjs-rails'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'#, '~> 3.2.3'
gem 'coffee-rails'#, '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
gem 'less-rails-bootstrap'
gem 'uglifier', '>= 1.0.3'
end
gem 'devise'
gem 'omniauth', "1.1.1"
gem 'omniauth-facebook', '1.4.0' # HIGHER VERSIONS DO NOT WORK!
gem "koala", "~> 1.5.0"
gem 'oauth2'
gem 'cancan'
gem 'routing-filter'
gem 'thin'
gem "simple_form"
gem "cocoon"
gem "jquery-rails"
gem "validate_url"
gem 'haml'
gem "on_the_spot"
gem 'therubyracer' # important for less
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
#gem 'dragonfly'
gem 'refinerycms-i18n'#, '~> 2.1.0.dev', :git => 'git://github.com/refinery/refinerycms-i18n.git'
gem "refinerycms-videojs", "~> 0.5.5"
#Refinery
gem 'refinerycms-core' #You can leave this out if you like. It's a dependency of the other engines.
gem 'refinerycms-dashboard'
gem 'refinerycms-images'
gem 'refinerycms-pages'
gem 'refinerycms-resources'
group :production do
gem 'newrelic_rpm'
end
#gem "ckeditor"
#gem "carrierwave"
#gem "mini_magick"
group :test, :development do
gem "letter_opener"
gem 'meta_request', '0.2.0'
gem "rspec-rails", '2.9.0'
gem 'guard-rspec'
gem "spork"
gem 'guard-spork'
gem 'rb-inotify', '~> 0.8.8'
gem "factory_girl_rails"
gem "mocha"
gem 'capybara' #, :git => 'git://github.com/jnicklas/capybara.git'
gem 'launchy'
gem "capybara-webkit"
gem "nifty-generators"
gem 'sextant'
gem 'haml-rails'
gem 'hpricot'
gem 'ruby_parser'
end
#gem "paypal-recurring"
#gem "r2", "~> 0.0.3"
EDIT2
mywebsite#ubuntu:~/RubymineProjects/mywebsite$ bundle -v
Bundler version 1.2.3
mywebsite#ubuntu:~/RubymineProjects/mywebsite$ gem -v
1.8.24
mywebsite#ubuntu:~/RubymineProjects/mywebsite$
notice the error:
Malformed version number string = 1.0.3 (ArgumentError)
Try removing your Gemfile.lock and run bundle install again.
Try changing this:
'uglifier', '>= 1.0.3'
to:
gem 'uglifier'#, '>= 1.0.3'
...and see what happens?