I'm running CentOS6 and installed Ruby from source, along with Rails and some other staff.
ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
rails -v
Rails 3.1.3
Some gems:
*** LOCAL GEMS ***
actionmailer (3.1.3, 2.3.14)
actionpack (3.1.3, 2.3.14)
activemodel (3.1.3)
activerecord (3.1.3, 2.3.14)
activeresource (3.1.3, 2.3.14)
activesupport (3.1.3, 2.3.14)
archive-tar-minitar (0.5.2)
arel (2.2.1)
bigdecimal (1.1.0)
bouncy-castle-java (1.5.0146.1)
builder (3.0.0)
bundler (1.0.21)
coderay (0.9.7)
columnize (0.3.5)
edavis10-object_daddy (0.4.3)
erubis (2.7.0)
fastercsv (1.5.0)
ffi (1.0.11)
hike (1.2.1)
hoe (2.12.4)
i18n (0.6.0, 0.4.2)
io-console (0.3)
jruby-openssl (0.7.4)
json (1.5.4)
linecache19 (0.5.13)
mail (2.3.0)
metaclass (0.0.1)
mime-types (1.17.2)
minitest (2.5.1)
mocha (0.10.0)
multi_json (1.0.4)
mysql (2.8.1)
mysql2 (0.3.11, 0.2.7)
net-ldap (0.2.2)
polyglot (0.3.3)
rack (1.3.5, 1.1.2)
rack-cache (1.1)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.3, 2.3.14)
railties (3.1.3)
rake (0.9.2.2)
rdoc (3.9.4)
rmagick (2.13.1)
ruby-debug-base19 (0.11.26, 0.11.25)
ruby-debug19 (0.11.6)
ruby-mysql (2.9.4)
ruby-openid (2.1.4)
ruby_core_source (0.1.5)
rubygems-update (1.8.12)
rubytree (0.5.2)
shoulda (2.11.3, 2.10.3)
sprockets (2.0.3)
sqlite3 (1.3.5, 0.1.1)
sqlite3-ruby (1.3.3, 1.2.5)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
I need Rails in order to run chiliproject, but when running the following command
RAILS_ENV=production bundle exec rake db:migrate
I get:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
cannot load such file -- mysql
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Now with --trace:
RAILS_ENV=production bundle exec rake db:migrate --trace >> tmp/rake
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
cannot load such file -- mysql
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/kernel/requires.rb:7:in `block in require_library_or_gem'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:61:in `mysql_connection'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `block (2 levels) in checkout'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `block in checkout'
/usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
/var/www/html/chiliproject/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:218:in `quoted_left_column_name'
/var/www/html/chiliproject/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:94:in `acts_as_nested_set'
/var/www/html/chiliproject/app/models/issue.rb:33:in `'
/var/www/html/chiliproject/app/models/issue.rb:15:in `'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load'
/var/www/html/chiliproject/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:133:in `require_or_load_with_engine_additions'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:451:in `load_missing_constant'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing_with_dependencies'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/inflector.rb:375:in `const_get'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/inflector.rb:375:in `block in constantize'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/inflector.rb:374:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/inflector.rb:374:in `constantize'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/observer.rb:157:in `observed_class'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/observer.rb:183:in `observed_classes'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/observer.rb:166:in `initialize'
/usr/local/lib/ruby/1.9.1/singleton.rb:141:in `new'
/usr/local/lib/ruby/1.9.1/singleton.rb:141:in `block in instance'
:10:in `synchronize'
/usr/local/lib/ruby/1.9.1/singleton.rb:139:in `instance'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/observer.rb:38:in `block in instantiate_observers'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/observer.rb:36:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/observer.rb:36:in `instantiate_observers'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:15:in `block in define_dispatcher_callbacks'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in `evaluate_method'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:166:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:276:in `run_callbacks'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/initializer.rb:631:in `prepare_dispatcher'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/initializer.rb:185:in `process'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
/var/www/html/chiliproject/config/environment.rb:39:in `'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `block in require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/tasks/misc.rake:4:in `block in '
/usr/local/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/usr/local/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/usr/local/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/usr/local/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/local/lib/ruby/1.9.1/rake/task.rb:174:in `each'
/usr/local/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites'
/usr/local/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/usr/local/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/local/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/usr/local/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/usr/local/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/bin/rake:32:in `'
Tasks: TOP => db:migrate => environment
Does anyone knows what's wrong with mysql gem files?
I also tried to install mysql gem files like this
gem install ruby-mysql2 --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/mysql_config
I was just having similar problems and you may be doing what I was: I was using 'gem list' to determine what was installed (it lists *** LOCAL GEMS *** just like you show) and I saw mysql, but the Gemfile for my project was not requiring bundler to install mysql.
If you just type bundle show does it list 'mysql'? If not, then the Gemfile in chiliproject is not causing bundler to install mysql. I found this all very confusing until I realized I was confusing different ways of managing what gems are installed.
If you or others who comes this way are having the same issue, then perhaps this is helpful. (And perhaps this poor explanation will encourage one of the rails gurus to elaborate for us.)
To say it another way, the list of your locally installed gems, isn't the same as the list installed in your app's bundle of gems (hence where the name of the bundler tool comes from). When you're running your app, and managing its dependencies with bundler you have to do everything within the bundler scope, in order to make sure it all works together. When you do that it's actually very straight forward and solves a lot of problems for you, but if you're coming from previous experience on apps that didn't use bundler then it just takes a little getting used to.
2 steps that worked for me:
Copy the file libmySQL.dll from /libhttp://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick (in the folder /lib/) in c:/your/path/to/ruby/bin (Make sure your ruby bin is in your system PATH environnement variable)
The Default setup is given for MySQL with ruby1.8. If you're running Redmine with MySQL and ruby1.9, replace the adapter name with mysql2 in your /config/database.yml file
http://www.redmine.org/issues/10566
Just on bundle install try this >>
bundle install --without=test development sqlite postgres mysql rmagick
This will install all required base dependencies, the mysql2 database adapter
Cause mysql adapter is not compatible with Ruby 1.9
And don't forget to change config/database.yml --> s/mysql/mysql2
\o/
Related
I am trying to install fedena on windows. Everything is fine till the point of populating a database. I have tried to update, downgrade to 1.8.25 and also 1.8.24. When i update (gem update --system), i get
rake aborted!
undefined method `source_index' for Gem:Module
when i downgrade to 1.8.24/25
i get
C:\fedena>rake fedena:plugins:install_all
(in C:/fedena)
rake aborted!
undefined method `name' for "actionmailer":String
this is my trace
rake aborted!
undefined method `name' for "actionmailer":String
(See full trace by running task with --trace)
C:\fedena>rake fedena:plugins:install_all --trace
(in C:/fedena)
** Invoke fedena:plugins:install_all (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `name' for "actionmailer":String
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:268:in
`=='
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:217:in `==='
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:217:in `matching_specs'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `find_all'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/specification.rb:411:in `each'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/specification.rb:410:in `each'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:216:in `find_all'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:216:in `matching_specs'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:238:in `to_specs'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1231:in `gem'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:73:in
`add_load_paths'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:301:in `add_gem
_load_paths'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:301:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:301:in `add_gem
_load_paths'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:132:in `process
'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
C:/fedena/config/environment.rb:6
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original
_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/depende
ncies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/depende
ncies.rb:521:in `new_constants_in'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/depende
ncies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequi
sites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequi
sites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:23:in `load'
C:/Ruby187/bin/rake:23
these are my installations
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
arel (3.0.2)
builder (3.0.0)
bundler (1.2.0)
cgi_multipart_eof_fix (2.5.0)
daemon (1.1.0)
declarative_authorization (0.5.1)
faraday (0.8.2)
fattr (2.2.2)
gem_plugin (0.2.3)
httpauth (0.1)
i18n (0.4.2)
jwt (0.1.5)
mongrel (1.1.5 x86-mingw32)
multi_json (1.10.1)
multipart-post (1.2.0)
mysql (2.8.1 x86-mingw32)
nokogiri (1.5.2 x86-mingw32)
oauth2 (0.6.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rubygems-update (2.4.5, 1.8.25, 1.8.24, 1.3.7)
rush (0.6.8)
session (3.1.0)
tzinfo (0.3.33)
win32-open3 (0.3.2 x86-mingw32)
C:\fedena>ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [i386-mingw32]
C:\fedena>gem -v
1.8.24
please help me out.
I am following the Ruby on Rails tutorial and am on this step currently:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-heroku_setup
I am not sure what I am doing wrong, but I believe it may be something to do with the Gemfile and PostgreSQL.
$ git push heroku master
Enter passphrase for key '/c/Users/Lars/.ssh/id_rsa':
Initializing repository, done.
Counting objects: 85, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (85/85), 28.31 KiB | 0 bytes/s, done.
Total 85 (delta 14), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-1.9.3
-----> Warning:
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
In rare occasions Bundler may not be able to resolve your dependencies at
all.
https://devcenter.heroku.com/articles/bundler-windows-gemfile
-----> Installing dependencies using 1.5.2
Running: bundle install --without development:test --path vendor/bundle -
-binstubs vendor/bundle/bin -j4
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Installing builder (3.0.4)
Installing multi_json (1.8.4)
Installing i18n (0.6.9)
Installing rake (10.1.1)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing hike (1.2.3)
Installing tilt (1.4.1)
Installing rack (1.4.5)
Installing mime-types (1.25.1)
Using bundler (1.5.2)
Installing polyglot (0.3.4)
Installing arel (3.0.3)
Installing coffee-script-source (1.7.0)
Installing execjs (2.0.2)
Installing thor (0.18.1)
Installing tzinfo (0.3.38)
Installing activesupport (3.2.16)
Installing rack-cache (1.2)
Installing sass (3.2.14)
Installing json (1.8.1)
Installing rack-test (0.6.2)
Installing sprockets (2.2.2)
Installing rack-ssl (1.3.3)
Installing coffee-script (2.2.0)
Installing uglifier (1.2.3)
Installing treetop (1.4.15)
Installing activemodel (3.2.16)
Installing mail (2.5.4)
Installing rdoc (3.12.2)
Installing activeresource (3.2.16)
Installing actionpack (3.2.16)
Installing activerecord (3.2.16)
Installing actionmailer (3.2.16)
Installing pg (0.12.2)
Installing railties (3.2.16)
Installing coffee-rails (3.2.2)
Installing rails (3.2.16)
Installing sass-rails (3.2.5)
Installing jquery-rails (2.0.2)
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri d
ata:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Bundle completed (18.67s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins!
Support for these plugins will be removed in Rails 4.0. Move them out and bundle
them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/
initializers/myplugin.rb. See the release notes for more on this: http://weblog.
rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (r
equired)> at /tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins!
Support for these plugins will be removed in Rails 4.0. Move them out and bundle
them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/
initializers/myplugin.rb. See the release notes for more on this: http://weblog.
rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (r
equired)> at /tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/Rakefile:7)
rake aborted!
could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapte
r.rb:1222:in `initialize'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapte
r.rb:1222:in `new'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapte
r.rb:1222:in `connect'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapte
r.rb:324:in `initialize'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapte
r.rb:28:in `new'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapte
r.rb:28:in `postgresql_connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:315:in `new_connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:325:in `checkout_new_connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:247:in `block (2 levels) in checkout'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:242:in `loop'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:242:in `block in checkout'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:239:in `checkout'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:102:in `block in connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:101:in `connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_pool.rb:410:in `retrieve_connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_specification.rb:171:in `retrieve_connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connecti
on_specification.rb:145:in `connection'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/model_schema.rb:310:in `clear_cache!'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activerecord-3.2.16/lib/active_record/railtie.rb:103:in `block (2 levels) i
n <class:Railtie>'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/callbacks.rb:418:in `_run__29092144
37341877339__prepare__337530506835694055__callbacks'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback
'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_prepare_c
allbacks'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:74:in `prepare
!'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:48:in `prepare
!'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/application/finisher.rb:47:in `block in <module:F
inisher>'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers
'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/config/environment.rb:5:i
n `<top (required)>'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in re
quire'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_depend
ency'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/application.rb:103:in `require_environment!'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/railties-3.2.16/lib/rails/application.rb:305:in `block (2 levels) in initia
lize_tasks'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/actionpack-3.2.16/lib/sprockets/assets.rake:93:in `block (2 levels) in <top
(required)>'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/actionpack-3.2.16/lib/sprockets/assets.rake:60:in `block (3 levels) in <top
(required)>'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/actionpack-3.2.16/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_ta
sk'
/tmp/build_93b8a16e-fac8-4dff-bc73-1cffba455fbe/vendor/bundle/ruby/1.9.1/
gems/actionpack-3.2.16/lib/sprockets/assets.rake:29:in `block (2 levels) in <top
(required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:agile-springs-4943.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:agile-springs-4943.git'
This is what happens. My gemfile is as follows:
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.16'
group :development do
gem 'sqlite3', '1.3.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.5'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.2'
group :production do
gem 'pg', '0.12.2'
end
I've attempted to follow some advice elsewhere, but none seem to work. I blindly entered heroku run rake db:create and heroku run rake db:migrate and both provide the error rake aborted!
Sounds like you may not have added the Heroku Postgres add-on. Try running heroku addons:add heroku-postgresql from the command line or going into the Heroku dashboard and enabling the addon from their GUI
i get the following errors when i try to open the rails console:
$ rails console
/home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- minitest/unit (LoadError)
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /usr/share/ruby/test/unit/assertions.rb:1:in `<top (required)>'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /usr/share/ruby/test/unit/testcase.rb:1:in `<top (required)>'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/test_case.rb:1:in `<top (required)>'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/console/app.rb:2:in `<top (required)>'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application.rb:304:in `initialize_console'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application.rb:152:in `load_console'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/console.rb:27:in `start'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start'
from /home/me/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I use Fedora 17. I have installed Ruby and gem via yum and then rails via gem.
UPDATE:
My installed gems, maybe there are some gems in my gemset missing or i have the false version of it.
$ gem list
*** LOCAL GEMS ***
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13)
arel (3.0.2)
builder (3.0.4)
bundler (1.3.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
erubis (2.7.0)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.2.1)
json (1.7.7)
mail (2.5.3)
mime-types (1.22)
minitest (4.7.0)
multi_json (1.7.2)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
railties (3.2.13)
rake (10.0.4)
rdoc (3.12.2)
sass (3.2.7)
sass-rails (3.2.6)
sprockets (2.2.2)
thor (0.18.1)
tilt (1.3.6)
treetop (1.4.12)
tzinfo (0.3.37)
uglifier (1.3.0)
Try by running:
script/rails console
and let us know what happens, otherwise you can also try
bundle exec script/rails console
It's odd to be loading tests in the console... the minitest gem is probably only included in the test group and not available in the development environment. Adding the gem to the development group would probably work, but that's treating a symptom, not the cause.
Somehow, maybe in a irbrc file, you are including test libraries.
Okay, i have solved the problem via manually installing ruby 2.0.0 and removing ruby 1.9.3 that i have installed via yum.
group :development, :test do
gem 'test-unit'
end
and running
bundle
fixed my issue.
In your case you might want to include 'minitest'
I have a problem at the time of the push Heroku, follow the below error
-----> Gemfile detected, running Bundler version 1.0.7
Unresolved dependencies detected; Installing...
Using --without development:test
Fetching source index for http://rubygems.org/
Installing rake (0.9.2)
Installing abstract (1.0.0)
Installing activesupport (3.0.9)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.9)
Installing erubis (2.6.6)
Installing rack (1.2.3)
Installing rack-mount (0.6.14)
Installing rack-test (0.5.7)
Installing tzinfo (0.3.29)
Installing actionpack (3.0.9)
Installing mime-types (1.16)
Installing polyglot (0.3.2)
Installing treetop (1.4.10)
Installing mail (2.2.19)
Installing actionmailer (3.0.9)
Installing arel (2.0.10)
Installing activerecord (3.0.9)
Installing activeresource (3.0.9)
Installing diff-lcs (1.1.2)
Installing json (1.5.3) with native extensions
/usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:519:in `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError)
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:479:in `from_yaml'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:183:in `load_gemspec'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:51:in `block in initialize'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:64:in `block in each'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in `loop'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in `each'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:32:in `initialize'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in `new'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in `open'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package.rb:58:in `open'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/format.rb:63:in `from_io'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/format.rb:51:in `block in from_file_by_path'
from /usr/ruby1.9.2/lib/ruby/1.9.1/open-uri.rb:35:in `open'
from /usr/ruby1.9.2/lib/ruby/1.9.1/open-uri.rb:35:in `open'
from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/format.rb:50:in `from_file_by_path'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/source.rb:72:in `fetch'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:45:in `block in run'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `block in each'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start'
from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/bin/bundle:13:in `<top (required)>'
from /usr/ruby1.9.2/bin/bundle:19:in `load'
from /usr/ruby1.9.2/bin/bundle:19:in `<main>'
FAILED: http://devcenter.heroku.com/articles/bundler
! Heroku push rejected, failed to install gems via Bundler
I'm using ruby 1.9.2.
my workaround is, adding this to top of Gemfile
if RUBY_VERSION =~ /1.9/
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
end
ref: http://www.ruby-forum.com/topic/178706
According to this similar issue at github on another gem, looks like it is because of lack of declaration of encoding on the gemspec file
https://github.com/RubyMoney/money/pull/87
I checked json 1.5.3 and 1.5.4 source, they both have it.
So, probably another gems next to json, probably don't have that line.
you may want to find out that gems with command bundle install in the project root folder.
When I run rake db:migrate for this code http://github.com/jonastryggvi/facebook-rails, I obtain :
can't activate rack (~> 1.2.1, runtime) for ["faraday-0.5.1"], already activated rack-1.0.1 for ["actionpack-2.3.5", "rails-2.3.5"]
This, of course, prevent the Oauth2 gem from loading, and I cannot run the demo. I tried extracting the gems locally in vendor/gems through rake gems:unpack:dependencies, but it crashes with
rake gems:unpack:dependencies --trace
(in /jonastryggvi-facebook-rails-b6b043c)
** Invoke gems:unpack:dependencies (first_time)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
** Execute gems:install
** Execute gems:unpack:dependencies
rake aborted!
undefined method `version' for nil:NilClass
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:294:in `unpack_command'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:249:in `unpack'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:248:in `chdir'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:248:in `unpack'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:255:in `unpack'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:255:in `each'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:255:in `unpack'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/gems.rake:47
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/gems.rake:47:in `each'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/gems.rake:47
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
I also tried extracting them manually through gem unpack rack -v=1.0.1, which worked, (it's in vendor/gems, but I still get the same errors. I also got the same error on my Windows machine, than on my Linux/Ubuntu machine.
Thanks for the help you can give me.
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.3.3, 2.3.2, 2.2.2)
actionpack (2.3.5, 2.3.3, 2.3.2, 2.2.2)
activerecord (2.3.5, 2.3.3, 2.3.2, 2.2.2)
activeresource (2.3.5, 2.3.3, 2.3.2, 2.2.2)
activesupport (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2)
addressable (2.2.2)
adzap-ar_mailer (2.1.5)
chronic (0.2.3)
faraday (0.5.1)
fcgi (0.8.7)
hoe (2.3.3)
i18n (0.1.0)
json_pure (1.1.9)
linecache (0.43)
memcache-client (1.7.5)
multi_json (0.0.4)
multipart-post (1.0.1)
mysql (2.7)
net-scp (1.0.2)
net-ssh (2.0.15)
newrelic_rpm (2.9.4)
nkallen-cache-money (0.2.5)
oauth2 (0.1.0)
packet (0.1.15)
rack (1.2.1, 1.1.0, 1.0.1, 1.0.0)
rails (2.3.5, 2.3.3, 2.3.2, 2.2.2)
rake (0.8.7, 0.8.3)
RedCloth (4.1.9)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.4)
rubyforge (2.0.3)
rubygems-update (1.3.7, 1.3.5)
sqlite3-ruby (1.2.5)
The last faraday version ( >= 0.5.0 ) is not compatible to Rack 1.0.1 and Rails 2.3.5 is not compatible to rack >= 1.0.1
You have two choice
Fix faraday gem to 0.4.9 . This gem is compatible to Rails 2.3.5. Or upgrade your application to Rails 2.3.9 compatible to rack 1.1.0.