Unable to remove action_mailbox - ruby-on-rails-3

I'm using Ruby 3.0.3 + Rails 6.1.4. I tried to remove action_mailbox (and any unused railties) and have the following in my application.rb
require_relative "boot"
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
# require "active_record/railtie"
# require "active_storage/engine"
require "action_controller/railtie"
# require "action_mailer/railtie"
# require "action_mailbox/engine"
# require "action_text/engine"
require "action_view/railtie"
# require "action_cable/engine"
require "sprockets/railtie"
require "rails/test_unit/railtie"
I also commented out any action_mailbox related configs.
Here's the Gemfile
# gem 'rails', '~> 6.1', '>= 6.1.4' # note this is commented out. I know it's overkill, but this didn't work
gem 'actionpack', '~> 6.1', '>= 6.1.4'
gem 'actionview', '~> 6.1', '>= 6.1.4'
gem 'activesupport', '~> 6.1', '>= 6.1.4'
gem 'railties', '~> 6.1', '>= 6.1.4'
gem 'sprockets-rails', '~> 3.4', '>= 3.4.1'
However, when I run bundle exec derailed bundle:mem, I still see action_mailbox
rails/all: 62.25 MiB
action_mailbox/engine: 33.3594 MiB
action_mailbox: 33.3281 MiB
action_mailbox/mail_ext: 33.2969 MiB
action_mailbox/mail_ext/address_equality.rb: 31.9375 MiB
mail/elements/address: 31.9375 MiB
mail/parsers/address_lists_parser: 31.9063 MiB (Also required by: mail/parsers)
mail/parsers: 1.7656 MiB
mail/parsers/received_parser: 1.1875 MiB
I don't think any Gems are depending on it, but is there a way that I can find out?
I tried running bundle exec gem dependency -R but I'm not sure if it's very helpful:
Gem actionmailbox-6.1.4
actionpack (= 6.1.4)
activejob (= 6.1.4)
activerecord (= 6.1.4)
activestorage (= 6.1.4)
activesupport (= 6.1.4)
mail (>= 2.7.1)
Used by
rails-6.1.4 (actionmailbox (= 6.1.4))
Gem rails-6.1.4
actioncable (= 6.1.4)
actionmailbox (= 6.1.4)
actionmailer (= 6.1.4)
actionpack (= 6.1.4)
actiontext (= 6.1.4)
actionview (= 6.1.4)
activejob (= 6.1.4)
activemodel (= 6.1.4)
activerecord (= 6.1.4)
activestorage (= 6.1.4)
activesupport (= 6.1.4)
bundler (>= 1.15.0)
railties (= 6.1.4)
sprockets-rails (>= 2.0.0)

Related

Bundle Update could not find dependencies while upgrading Rails app from 4.0 to 5.0

I am trying to upgrade my existing Rails 4.2 application to Rails 5.0. Have changed the Rails gem to 5.0.2 in Gemfile as below.
source "https://rubygems.org"
gem "rake", "~> 0.9.2"
#gem "rails", "~> 4.2.7.1"
gem 'rails', "~> 5.0.1"
gem "mysql2"
gem "mime-types", "~> 1.16", require: "mime/types"
gem "rubyzip", "~> 1.1.0"
gem "nokogiri", "1.6.8".
gem "apn_on_rails", "0.4.1", git:"https://bitbucket.orgsheridangroupapn_on_rails.git"
gem "gdata_19", "~>1.1.5"
gem "gcm_on_rails", "0.2.1", git: "https://bitbucket.org/sheridangroup/gcm_on_rails"
gem "open4", "1.0.1"
gem "rmagick", "2.13.2", require: "RMagick"
gem 'aws-sdk-v1' #aws-sdk v1 is used for url signing, as v2 has a one-week expiration limit
gem 'aws-sdk', '~> 2'
gem "libxml-ruby", "~> 2.7.0", require: "libxml"
gem "bitly", "0.10.0"
gem "uuid", "~> 2.3.7"
gem "htmlentities", "4.3.4"
gem "paper_trail", "~> 6.0.2"
gem "mechanize"
gem "rbtree", "0.4.2"
gem "resque"
gem "yajl-ruby" # For resque
gem "json", "~> 1.8.3"
gem "minitest"
gem "will_paginate"
gem "configatron", "~> 2.13.0"
gem "american_date", "~> 1.1.0"
gem "builder"
gem "coderay"
gem "json-schema"
gem "rspec"
gem "jquery-rails", "~> 4.2.2"
gem "jquery-ui-rails"
gem 'jquery-timepicker-addon-rails'
gem 'bcrypt', '~> 3.1.7'
gem "net-ftp-list"
gem 'recursive-open-struct'
gem 'slim'
gem 'paranoia'
gem 'typhoeus'
gem 'bundler', '1.12.5'
gem "paperclip", "~> 4.3.7"
group :test do
#gem 'spork-rails'
gem 'capybara'
gem 'poltergeist'
gem 'simplecov', require: false
gem 'simplecov-rcov', require: false
gem 'timecop'
gem 'test-unit'
end
# Used for NewRelic monitoring in Staging env only
group :staging, :production do
gem "newrelic_rpm"
gem "ey_config"
end
group :test, :development do
gem "rspec-rails", require: false
gem "listen", ">= 0.5.1", require: false
gem "machinist", "~> 2.0", require: false
gem "database_cleaner", "~> 0.9.1", require: false
gem 'pry-byebug'
end
group :development do
# <browser-debugging-tools>
gem "better_errors"
gem "binding_of_caller"
gem "meta_request"
# </browser-debugging-tools>
gem 'quiet_assets' # prevent assets pipeline logging
gem 'rubocop', '0.35.0'
end
group :assets do
gem "sass-rails"
gem "coffee-rails"
gem "uglifier", "2.7.2"
end
Tried running bundle update , but got the following error in the console.
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (~> 5.0.1) was resolved to 5.0.1, which depends on
actioncable (= 5.0.1) was resolved to 5.0.1, which depends on
actionpack (= 5.0.1) was resolved to 5.0.1, which depends on
rack (~> 2.0)
better_errors was resolved to 2.1.1, which depends on
rack (>= 0.9.0)
capybara was resolved to 2.12.1, which depends on
rack (>= 1.0.0)
rails (~> 5.0.1) was resolved to 5.0.1, which depends on
actioncable (= 5.0.1) was resolved to 5.0.1, which depends on
actionpack (= 5.0.1) was resolved to 5.0.1, which depends on
rack-test (~> 0.6.3) was resolved to 0.6.3, which depends on
rack (>= 1.0)
resque was resolved to 1.27.2, which depends on
sinatra (>= 0.9.2) was resolved to 1.1.0, which depends on
rack (~> 1.1)
sass-rails was resolved to 5.0.6, which depends on
sprockets (< 4.0, >= 2.8) was resolved to 3.7.1, which depends on
rack (< 3, > 1)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.0.1)
quiet_assets was resolved to 1.0.0, which depends on
rails (~> 3.1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails was resolved to 4.2.1, which depends on
railties (< 5.2.x, >= 4.0.0)
jquery-rails (~> 4.2.2) was resolved to 4.2.2, which depends on
railties (>= 4.2.0)
jquery-timepicker-addon-rails was resolved to 1.4.1, which depends on
railties (>= 3.1)
quiet_assets was resolved to 1.0.1, which depends on
railties (~> 3.1)
rails (~> 5.0.1) was resolved to 5.0.1, which depends on
railties (= 5.0.1)
I want to move on in upgrading to Rails 5.0. Can I get a direction to fix all the errors.
rspec-rails was resolved to 3.5.2, which depends on
railties (>= 3.0)
sass-rails was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0)
Delete your Gemfile.lock file and try updating once again.

RubyMine bundle/bundler configuration error

I am on windows and using RubyMine to develop an app. My 2-year old was found banging on the keyboard when I had stepped away for a sec. She did something to the environment that I can't figure out. I'm getting the following error when I try to run bundle install or bundle update:
C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\RailsInstaller\Ruby1.9.3\bin/bundle update
C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in `load': cannot load such file -- C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.4.0.rc.1/bin/bundle (LoadError)
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Process finished with exit code 1
My gemfile looks like this:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'jquery-rails'
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'paperclip'
gem 'wicked' #For handling *.pdf documents, use wicked_pdf
gem 'public_activity'
gem 'thin'
gem 'strong_parameters'
# 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', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
group :development, :test do
gem 'rspec-rails'
gem 'sqlite3'
gem 'autotest'
gem 'autotest-rails-pure'
end
group :development do
gem 'annotate'
end
group :production do
gem 'pg'
end
bcrypt-ruby is set to gem 'bcrypt-ruby', '~> 3.0.0' to handle another error (duplicate version load error).
My gem environment is this:
RUBYGEMS VERSION: 1.8.24
RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [i386-mingw32]
INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.9.3/bin
RUBYGEMS PLATFORMS:
ruby
x86-mingw32
GEM PATHS:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
C:/Documents and Settings/Me/.gem/ruby/1.9.1
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:benchmark => false
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
http://rubygems.org/
----------------------
IDE: JetBrains RubyMine 5.4.3.2.1, build #RM-129.861
OS: Windows XP 5.1[x86]
Java: 1.7.0_10-b18
RubyMine SDK Environment:
Sdk: ruby-1.9.3-p392
Sdk Version: ver.1.9.3p392 p392
Ruby Interpreter: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
RVM Sdk: no
Sdk Language Level: 1.9
Sdk Load Path:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/i386-msvcrt
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby
C:/RailsInstaller/Ruby1.9.3/lib/ruby/vendor_ruby/1.9.1
C:/RailsInstaller/Ruby1.9.3/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt
C:/RailsInstaller/Ruby1.9.3/lib/ruby/vendor_ruby
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/i386-mingw32
C:/Program Files/RubyMine 5.4.3.2.1/rubystubs193
Sdk Gem paths:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
C:/Documents and Settings/Kraig/.gem/ruby/1.9.1/gems
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems
Gems used for 'ballast':
diff-lcs (1.2.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/diff-lcs-1.2.4
rack-test (0.6.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-test-0.6.2
coffee-rails (3.2.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2
erubis (2.7.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/erubis-2.7.0
uglifier (2.2.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/uglifier-2.2.1
actionmailer (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionmailer-3.2.11
pg (0.17.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/pg-0.17.0-x86-mingw32
arel (3.0.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/arel-3.0.2
builder (3.0.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/builder-3.0.4
autotest-rails-pure (4.1.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/autotest-rails-pure-4.1.2
public_activity (1.4.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/public_activity-1.4.0
thin (1.5.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.5.1
rails (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rails-3.2.11
eventmachine (1.0.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3-x86-mingw32
paperclip (3.5.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/paperclip-3.5.1
mail (2.4.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mail-2.4.4
json (1.8.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0
daemons (1.1.9)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/daemons-1.1.9
climate_control (0.0.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/climate_control-0.0.3
activesupport (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11
journey (1.0.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/journey-1.0.4
rake (10.1.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0
coffee-script (2.2.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0
jquery-rails (3.0.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jquery-rails-3.0.4
rdoc (3.12.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rdoc-3.12.2
railties (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.11
rspec-core (2.14.5)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.5
multi_json (1.8.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/multi_json-1.8.1
ZenTest (4.8.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ZenTest-4.8.3
rspec-mocks (2.14.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-mocks-2.14.3
execjs (2.0.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-2.0.2
thor (0.18.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.18.1
sprockets (2.2.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sprockets-2.2.2
wicked (1.0.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wicked-1.0.0
strong_parameters (0.2.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/strong_parameters-0.2.1
polyglot (0.3.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3
tilt (1.4.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tilt-1.4.1
annotate (2.5.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/annotate-2.5.0
activeresource (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activeresource-3.2.11
autotest (4.4.6)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/autotest-4.4.6
bcrypt-ruby (3.1.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.1.2-x86-mingw32
mime-types (1.25)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mime-types-1.25
i18n (0.6.5)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/i18n-0.6.5
activerecord (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11
rack-ssl (1.3.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-ssl-1.3.3
rspec-rails (2.14.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-rails-2.14.0
activemodel (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activemodel-3.2.11
sass-rails (3.2.6)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-rails-3.2.6
rack (1.4.5)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.5
treetop (1.4.15)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/treetop-1.4.15
sass (3.2.12)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.12
rack-cache (1.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-cache-1.2
sqlite3 (1.3.8)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.8-x86-mingw32
hike (1.2.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/hike-1.2.3
tzinfo (0.3.37)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-0.3.37
actionpack (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11
rspec-expectations (2.14.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.14.3
coffee-script-source (1.6.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script-source-1.6.3
cocaine (0.5.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cocaine-0.5.2
bundler (1.3.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4
I have tried to manually update the gem in question, revert back to an older version, etc. I can't figure out why the error is occuring. rails s won't work until i get this debugged.
Any ideas?
Does the file C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.4.0.rc.1/bin/bundle exist?
Try uninstalling and then reinstalling the bundler gem.

Deploy ROR to heroku fails due to sqlite3 fails

I've try the method from others post, but still cannot solve it.
I push my file to heroku but it have some error to the sqlite3.
After I install it, it still didn't work.
Below is my code
Counting objects: 82, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (82/82), 3.00 MiB | 238 KiB/s, done.
Total 82 (delta 4), reused 0 (delta 0)
-----> Removing .DS_Store files
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.0.4)
Installing i18n (0.6.4)
Installing multi_json (1.7.3)
Installing activesupport (3.2.11)
Installing builder (3.0.4)
Installing activemodel (3.2.11)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.5)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.2)
Installing tilt (1.4.1)
Installing sprockets (2.2.2)
Installing actionpack (3.2.11)
Installing mime-types (1.23)
Installing polyglot (0.3.3)
Installing treetop (1.4.12)
Installing mail (2.4.4)
Installing actionmailer (3.2.11)
Installing arel (3.0.2)
Installing tzinfo (0.3.37)
Installing activerecord (3.2.11)
Installing activeresource (3.2.11)
Installing coffee-script-source (1.6.2)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.3)
Installing json (1.8.0)
Installing rdoc (3.12.2)
Installing thor (0.18.1)
Installing railties (3.2.11)
Installing coffee-rails (3.2.2)
Installing jquery-rails (2.2.1)
Using bundler (1.3.2)
Installing rails (3.2.11)
Installing sass (3.2.9)
Installing sass-rails (3.2.6)
Installing sqlite3 (1.3.7)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
--enable-local
--disable-local
Gem files will remain installed in /tmp/build_2ghtqnawaxqqm/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7 for inspection.
Results logged to /tmp/build_2ghtqnawaxqqm/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out
An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
To git#heroku.com:peaceful-reef-2102.git
! [remote rejected] master -> master (pre-receive hook declined)
And this is my gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# 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', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
I don't know what happen, please help me!
Heroku doesn't support sqlite, you need to add pg gem (postgres) and remove sqlite gem

can not load omniauth in rails application

I am following rails 3 in action's source code,when I run the app,I get the following error:
[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Please remove it.
Could not load 'omniauth'. Please ensure you have the omniauth gem >= 1.0.0 installed and listed in your Gemfile.
Exiting
This is the gem file:
gem 'rails', '3.2.8'
# gem 'arel'
gem 'rack'
gem 'sprockets'
gem 'sqlite3'
gem 'sass', '~> 3.1.0.alpha'
gem 'coffee-script'
gem 'dynamic_form'
gem 'devise'
gem 'cancan'
gem 'paperclip'
gem 'searcher'
gem 'kaminari'
gem 'jquery-rails'
gem "oa-oauth", :require => "omniauth/oauth"
gem "delayed_job"
# gem "forem"
gem "ticketee-forem"
gem 'sinatra'
group :test, :development do
gem 'gmail'
gem 'rspec-rails', '~> 2.6.1.beta1'
end
group :test do
gem 'rack-test'
gem 'cucumber-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'factory_girl'
gem 'email_spec'
gem 'launchy'
end
group :production do
gem 'pg'
end
When I run bundle check it will success.
And my gem list:
*** LOCAL GEMS ***
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
addressable (2.2.8)
arel (3.0.2)
bcrypt-ruby (3.0.1)
builder (3.0.2)
bundler (1.1.4)
cancan (1.6.8)
capybara (1.1.2)
childprocess (0.3.5)
cocaine (0.3.0)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
cucumber (1.0.6)
cucumber-rails (1.0.2)
database_cleaner (0.8.0)
delayed_job (3.0.3)
devise (2.1.2)
diff-lcs (1.1.3)
dynamic_form (1.1.4)
email_spec (1.2.1)
erubis (2.7.0)
execjs (1.4.0)
factory_girl (4.0.0)
faraday (0.6.1)
ffi (1.1.5)
gherkin (2.4.21)
gmail (0.4.0)
gmail_xoauth (0.3.2)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.1.2)
json (1.7.5)
kaminari (0.14.0)
launchy (2.1.0)
libwebsocket (0.1.5)
mail (2.4.4)
mime (0.1)
mime-types (1.19)
multi_json (1.3.6)
multipart-post (1.1.5)
mysql2 (0.3.11)
nokogiri (1.4.7)
oa-core (0.2.4)
oa-oauth (0.2.4)
oauth (0.4.7)
oauth2 (0.4.1)
orm_adapter (0.4.0)
paperclip (3.2.0)
pg (0.14.1)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-protection (1.2.0)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.8)
railties (3.2.8)
rake (0.9.2.2)
rdoc (3.12)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
rubygems-bundler (1.0.2)
rubyzip (0.9.9)
rvm (1.11.3.3)
sass (3.1.21)
searcher (0.0.6)
selenium-webdriver (2.25.0)
sinatra (1.3.3)
sprockets (2.1.3)
sqlite3 (1.3.6)
term-ansicolor (1.0.7)
thor (0.16.0)
ticketee-forem (0.0.1)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
warden (1.2.1)
xpath (0.1.4)
As you can see, I do have the gem oa-oauth (0.2.4) installed.
Why does it give me this error?
oa-oauth is not the omniauth gem ... It's the oauth extension for omniauth ... Add the omniauth gem gem 'omniauth', just like the error message tells you ...

Bundle install not finding gem in gem list

I am trying to add devise to my application and gem install works, but everytime I run bundle install, it does not find devise in my gemlist. I have tried including the git link and using a specific version, but it still does not find it in my gemfile.
Terminal
$bundle install
$Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.5)
Using builder (3.0.0)
Using activemodel (3.2.5)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.5)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.5)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.5)
Using activeresource (3.2.5)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.15.2)
Using railties (3.2.5)
Using coffee-rails (3.2.2)
Using jquery-rails (2.0.2)
Using bundler (1.1.4)
Using rails (3.2.5)
Using sass (3.1.19)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using uglifier (1.2.4)
Your bundle is complete! Usebundle show [gemname]to see where a bundled gem is installed.
Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.5'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'devise'
# 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', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'