Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

No metadata found! (Gem::Package::FormatError) #184

Closed
millisami opened this issue Mar 5, 2010 · 9 comments
Closed

No metadata found! (Gem::Package::FormatError) #184

millisami opened this issue Mar 5, 2010 · 9 comments

Comments

@millisami
Copy link

After upgrading from 0.9.3 to 0.9.10, whatever rails command I type, the error is:

[~/rails_apps/rails3_apps/blog (master)⚡] ➔ rails s
/home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:111:in `initialize': No metadata found! (Gem::Package::FormatError)
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:17:in `new'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:17:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:55:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:63:in `from_io'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:51:in `block in from_file_by_path'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in `from_file_by_path'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:11:in `block in from_cached_specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:10:in `each'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:10:in `from_cached_specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/definition.rb:45:in `local_index'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:100:in `index'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:93:in `specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:82:in `specs_for'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:18:in `setup'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler.rb:66:in `setup'
    from /home/millisami/rails_apps/rails3_apps/blog/config/boot.rb:7:in `rescue in <top (required)>'
    from /home/millisami/rails_apps/rails3_apps/blog/config/boot.rb:2:in `<top (required)>'
    from /home/millisami/rails_apps/rails3_apps/blog/script/rails:9:in `require'
    from /home/millisami/rails_apps/rails3_apps/blog/script/rails:9:in `<main>'
@indirect
Copy link
Member

indirect commented Mar 6, 2010

Try rm -rf ~/.bundle/ .bundle/, then run bundle install --relock. If that doesn't fix it, try on a version of ruby that is not 1.9.1. If it's still broken on a version of ruby that is not 1.9.1, please provide all of the requested information listed at the bottom of the readme.

@millisami
Copy link
Author

I did removed the ~/.bundle folder and ran the bundle install --relock command as follow:

[~/rails_apps/rails3_apps/rails3_project_template (master)] ➔ bundle install --relock
Updating git://github.com/thoughtbot/factory_girl.git
Updating git://github.com/sinefunc/shoulda.git
Fetching source index from http://gemcutter.org/
Resolving dependencies
Updating git://github.com/sinefunc/shoulda.git
Updating git://github.com/thoughtbot/factory_girl.git
Installing abstract (1.0.0) from system gems 
Installing actionmailer (3.0.0.beta) from system gems 
Installing actionpack (3.0.0.beta) from system gems 
Installing activemodel (3.0.0.beta) from system gems 
Installing activerecord (3.0.0.beta) from system gems 
Installing activeresource (3.0.0.beta) from system gems 
Installing activesupport (3.0.0.beta) from system gems 
Installing arel (0.2.1) from system gems 
Installing builder (2.1.2) from system gems 
Installing bundler (0.9.10) from system gems 
Installing erubis (2.6.5) from system gems 
Installing factory_girl (1.2.3) from git://github.com/thoughtbot/factory_girl.git (at rails3) 
Installing haml (2.2.20) from system gems 
Installing i18n (0.3.5) from system gems 
Installing mail (2.1.3) from system gems 
Installing memcache-client (1.7.8) from system gems 
Installing mime-types (1.16) from system gems 
Installing mocha (0.9.8) from system gems 
Installing nokogiri (1.4.1) from system gems 
Installing rack (1.1.0) from system gems 
Installing rack-mount (0.4.7) from system gems 
Installing rack-test (0.5.3) from system gems 
Installing rails (3.0.0.beta) from system gems 
Installing railties (3.0.0.beta) from system gems 
Installing rake (0.8.7) from system gems 
Installing rspec (2.0.0.beta.2) from system gems 
Installing rspec-core (2.0.0.beta.2) from system gems 
Installing rspec-expectations (2.0.0.beta.2) from system gems 
Installing rspec-mocks (2.0.0.beta.2) from system gems 
Installing rspec-rails (2.0.0.beta.2) from system gems 
Installing shoulda (2.10.3) from git://github.com/sinefunc/shoulda.git (at rails3) 
Installing sqlite3-ruby (1.2.5) from system gems 
Installing text-format (1.0.0) from system gems 
Installing text-hyphen (1.0.0) from system gems 
Installing thor (0.13.4) from system gems 
Installing tzinfo (0.3.16) from system gems 
Installing webrat (0.7.0) from system gems 
Your bundle is complete!
/home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:111:in `initialize': No metadata found! (Gem::Package::FormatError)
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:17:in `new'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:17:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:55:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:63:in `from_io'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:51:in `block in from_file_by_path'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in `from_file_by_path'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:11:in `block in from_cached_specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:10:in `each'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:10:in `from_cached_specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/definition.rb:45:in `local_index'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:100:in `index'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:93:in `specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:155:in `details'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:144:in `write_yml_lock'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:61:in `lock'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/cli.rb:76:in `lock'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/cli.rb:65:in `install'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor/task.rb:33:in `run'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor/invocation.rb:109:in `block in invoke'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor/invocation.rb:116:in `call'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor/invocation.rb:116:in `invoke'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor.rb:137:in `block in start'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor/base.rb:378:in `start'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/vendor/thor.rb:124:in `start'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/bin/bundle:11:in `<top (required)>'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/bin/bundle:19:in `load'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/bin/bundle:19:in `<main>'

@millisami
Copy link
Author

Also, I installed fresh ruby 1.9.2-head via rvm and installed the gems for rails3 and when I ran the same command as follows:
[~/rails_apps/rails3_apps/rails3_project_template (master)] ➔ rails s
/usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb:111:in initialize': No metadata found! (Gem::Package::FormatError) from /usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb:17:innew'
from /usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb:17:in open' from /usr/local/lib/site_ruby/1.8/rubygems/package.rb:55:inopen'
from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:63:in from_io' from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:51:infrom_file_by_path'
from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:50:in open' from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:50:infrom_file_by_path'
from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/index.rb:11:in from_cached_specs' from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/index.rb:10:ineach'
from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/index.rb:10:in from_cached_specs' from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/definition.rb:45:inlocal_index'
from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/runtime.rb:100:in index' from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/runtime.rb:93:inspecs'
from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/runtime.rb:82:in specs_for' from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler/runtime.rb:18:insetup'
from /home/millisami/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.10/lib/bundler.rb:66:in setup' from /home/millisami/rails_apps/rails3_apps/rails3_project_template/config/boot.rb:7 from /home/millisami/rails_apps/rails3_apps/rails3_project_template/script/rails:9:inrequire'
from /home/millisami/rails_apps/rails3_apps/rails3_project_template/script/rails:9

And following is my gems list:
[~/rails_apps/rails3_apps/rails3_project_template (master)] ➔ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.0.beta)
actionpack (3.0.0.beta)
activemodel (3.0.0.beta)
activerecord (3.0.0.beta)
activeresource (3.0.0.beta)
activesupport (3.0.0.beta, 2.3.5)
arel (0.2.1)
builder (2.1.2)
bundler (0.9.10)
erubis (2.6.5)
haml (2.2.20)
i18n (0.3.5)
mail (2.1.3)
memcache-client (1.8.0, 1.7.8)
mime-types (1.16)
mocha (0.9.8)
nokogiri (1.4.1)
rack (1.1.0)
rack-mount (0.4.7, 0.4.0)
rack-test (0.5.3)
rails (3.0.0.beta)
railties (3.0.0.beta)
rake (0.8.7)
rspec (2.0.0.beta.2)
rspec-core (2.0.0.beta.2)
rspec-expectations (2.0.0.beta.2)
rspec-mocks (2.0.0.beta.2)
rspec-rails (2.0.0.beta.2)
sqlite3-ruby (1.2.5)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.4)
tzinfo (0.3.16)
webrat (0.7.0)

@indirect
Copy link
Member

indirect commented Mar 6, 2010

I'm sorry that didn't work. If you'd like me to investigate this problem further, please provide all of the information requested at the bottom of the readme. Thanks.

@millisami
Copy link
Author

I tried on the new fresh ubuntu virtual box with ruby ree 1.8.7, rubygem 1.3.6 and it works.
But Not fixed on my development box. Couldn't figure out what is messing up with gems!! I will give another try with fresh rvm or ruby.

millisami@millisami-jaunty:~$ gem -v
1.3.6
millisami@millisami-jaunty:~$ rvm ree
millisami@millisami-jaunty:~$ gem list

*** LOCAL GEMS ***

rake (0.8.7)

\Then installing the rails 3 gem
http://www.railway.at/2010/02/13/avoiding-rails-3-dependency-hell-with-rvm/

millisami@millisami-jaunty:~$ gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
Successfully installed tzinfo-0.3.16
Successfully installed builder-2.1.2
Successfully installed memcache-client-1.8.0
Successfully installed rack-1.1.0
Successfully installed rack-test-0.5.3
Successfully installed rack-mount-0.6.1
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.5
Successfully installed activesupport-2.3.5
Successfully installed mime-types-1.16
Successfully installed mail-2.1.3
Successfully installed text-format-1.0.0
Successfully installed thor-0.13.4
Due to a rubygems bug, you must uninstall older versions of the bundler gem for 0.9 to work.
If you still need bundler 0.8, install the 'bundler08' gem.
Successfully installed bundler-0.9.10
Successfully installed i18n-0.3.5

millisami@millisami-jaunty:~$ gem install rails --pre
Successfully installed memcache-client-1.7.8
Successfully installed activesupport-3.0.0.beta
Successfully installed activemodel-3.0.0.beta
Successfully installed rack-mount-0.4.7
Successfully installed actionpack-3.0.0.beta
Successfully installed arel-0.2.1
Successfully installed activerecord-3.0.0.beta
Successfully installed activeresource-3.0.0.beta
Successfully installed actionmailer-3.0.0.beta
Successfully installed railties-3.0.0.beta
Successfully installed rails-3.0.0.beta

millisami@millisami-jaunty:~/rails_apps$ rails blog
      create  
      create  README
      create  .gitignore
      create  Rakefile
      create  config.ru
      create  Gemfile
      create  app
      create  app/helpers/application_helper.rb
      create  app/controllers/application_controller.rb
      create  app/views/layouts
      create  app/models
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/mime_types.rb
      create  config/initializers/cookie_verification_secret.rb
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/session_store.rb
      create  config/initializers/inflections.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  doc
      create  doc/README_FOR_APP
      create  lib
      create  lib/tasks
      create  lib/tasks/.gitkeep
      create  log
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log
      create  public
      create  public/404.html
      create  public/robots.txt
      create  public/422.html
      create  public/favicon.ico
      create  public/index.html
      create  public/500.html
      create  public/images
      create  public/images/rails.png
      create  public/stylesheets
      create  public/stylesheets/.gitkeep
      create  public/javascripts
      create  public/javascripts/application.js
      create  public/javascripts/prototype.js
      create  public/javascripts/controls.js
      create  public/javascripts/rails.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  script
      create  script/rails
      create  test
      create  test/performance/browsing_test.rb
      create  test/test_helper.rb
      create  test/integration
      create  test/fixtures
      create  test/unit
      create  test/functional
      create  tmp
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  tmp/pids
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
millisami@millisami-jaunty:~/rails_apps$ cd blog/
millisami@millisami-jaunty:~/rails_apps/blog$ rails server
/home/millisami/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/specification.rb:618:in `installation_path': spec sqlite3-ruby-1.2.5 is not from an installed gem (Gem::Exception)
    from /home/millisami/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/specification.rb:599:in `full_gem_path'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler/rubygems_ext.rb:13:in `load_paths'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler/rubygems_ext.rb:13:in `map'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler/rubygems_ext.rb:13:in `load_paths'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler/runtime.rb:25:in `setup'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler/runtime.rb:23:in `each'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler/runtime.rb:23:in `setup'
    from /home/millisami/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-0.9.10/lib/bundler.rb:66:in `setup'
    from /home/millisami/rails_apps/blog/config/boot.rb:7
    from /home/millisami/rails_apps/blog/script/rails:9:in `require'
    from /home/millisami/rails_apps/blog/script/rails:9
millisami@millisami-jaunty:~/rails_apps/blog$ 

millisami@millisami-jaunty:~/rails_apps/blog$ gem install sqlite3-ruby --no-ri --no-rdoc
Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.5
1 gem installed

millisami@millisami-jaunty:~/rails_apps/blog$ rails server
=> Booting WEBrick
=> Rails 3.0.0.beta application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-03-08 17:46:42] INFO  WEBrick 1.3.1
[2010-03-08 17:46:42] INFO  ruby 1.8.7 (2009-12-24) [i686-linux]
[2010-03-08 17:46:47] INFO  WEBrick::HTTPServer#start: pid=6110 port=3000

@millisami
Copy link
Author

Well I tried to repeat the same process with new rvm install from scratch on my development environment, it the same fucking error thats being a pain in ass for me. Its really pissing me off.

Looking here n there, I found this path ~/.gem/cache and there are lots of .gem files. I am wondering these might be the root of cause. Is it safe to delete those .gem files from this dir directly or is there any formal process to abide.

I get the same error with commands like rails server, bundle check . Is there any command to show the more precise error:

[~/tmp/blog] ➔ rails server
/home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:111:in `initialize': No metadata found! (Gem::Package::FormatError)
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:17:in `new'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:17:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:55:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:63:in `from_io'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:51:in `block in from_file_by_path'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in `open'
    from /home/millisami/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in `from_file_by_path'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:11:in `block in from_cached_specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:10:in `each'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/index.rb:10:in `from_cached_specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/definition.rb:45:in `local_index'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:100:in `index'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:93:in `specs'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:82:in `specs_for'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler/runtime.rb:18:in `setup'
    from /home/millisami/.rvm/gems/ruby-1.9.1-p378%rails3/gems/bundler-0.9.10/lib/bundler.rb:66:in `setup'
    from /home/millisami/tmp/blog/config/boot.rb:7:in `rescue in <top (required)>'
    from /home/millisami/tmp/blog/config/boot.rb:2:in `<top (required)>'
    from /home/millisami/tmp/blog/script/rails:9:in `require'
    from /home/millisami/tmp/blog/script/rails:9:in `<main>'

@indirect
Copy link
Member

indirect commented Mar 8, 2010

You can delete ~/.gem entirely. The worst thing that could happen is you will need to reinstall some gems.

@millisami
Copy link
Author

SOLDVED. I renamed the ~/.gem directory and now it works on every ruby ree, 1.9.1, 1.9.2-head.
So, the cached gems inside that directory were messing-up.
Thanks indirect 4 ur support.

@elia
Copy link
Contributor

elia commented Aug 31, 2010

I had the same issue, resolved just now removing an half installed gem which probably failed compilation in the past.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants