Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

every time i run bundle install on my rails app i get the following errors. could it be because i just changed my os from windows to linux(ubuntu)

  Fetching source index for http://rubygems.org/
/home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:133:in `load': marshal data too short (ArgumentError)
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:133:in `fetch_spec'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/remote_specification.rb:47:in `_remote_specification'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/remote_specification.rb:53:in `method_missing'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:128:in `tsort_each_child'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:124:in `block in tsort_each_node'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:124:in `each'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:124:in `tsort_each_node'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:135:in `tsort'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:107:in `sorted'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler

    /installer.rb:8:in `install'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/bin/bundle:13:in `<top (required)>'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `load'
        from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `<main>'

 Fetching source index for http://rubygems.org/
/home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:133:in `load': marshal data too short (ArgumentError)
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:133:in `fetch_spec'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/remote_specification.rb:47:in `_remote_specification'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/remote_specification.rb:53:in `method_missing'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:128:in `tsort_each_child'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:124:in `block in tsort_each_node'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:124:in `each'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:124:in `tsort_each_node'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
    from /home/rzaartz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/tsort.rb:135:in `tsort'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:107:in `sorted'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/bin/bundle:13:in `<top (required)>'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `load'
    from /home/rzaartz/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `<main>'

i used bundle install and my ruby version is ruby1.9.2 so also my gem file is

source 'http://rubygems.org'

gem 'rails', '3.1.0.rc4'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

gem 'mysql2'

# Asset template engines
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'

gem 'jquery-rails'
gem 'devise', "~> 1.3.4"
gem 'amistad', "~> 0.7.4"
gem 'cancan'
gem 'paperclip', "~> 2.3.11"
gem 'ancestry', "~> 1.2.4"
gem 'kaminari'
gem 'meta_search'

group :development do gem 'nifty-generators' end

bundler version is v-1.0.15 rubygem-update 1.8.5

share|improve this question

migrated from stackoverflow.com Jun 29 '11 at 4:36

This question came from our site for professional and enthusiast programmers.

closed as too localized by Sathya Oct 27 '11 at 3:27

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Can you please post the command you used? Also if possible the Gemfile ,the bundler version and the rubygems version. –  Arun Kumar Arjunan Jun 29 '11 at 2:09
    
just updated the question –  Uchenna Okafor Jun 29 '11 at 2:17
    
At first glance this seems to suggest some kind of network problem. Can you ping http://rubygems.org ? –  nathanvda Jun 29 '11 at 7:27

1 Answer 1

Remove the .gem folder in your $HOME folder will fix this.

share|improve this answer