You are not logged in.

#1 2011-11-09 07:48:33

amatriain
Member
Registered: 2011-06-02
Posts: 51

[SOLVED] problem upgrading ruby

Hello. N00b here.

I just run a 'pacman -Syu' in two machines with the 'ruby' package installed. I see today there's an update to ruby-1.9.3_p0-1.

The update fails in both machines with:

(24/24) checking package integrity                 [######################] 100%
(24/24) checking for file conflicts                [######################] 100%
error: failed to commit transaction (conflicting files)
ruby: /usr/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake exists in filesystem
ruby: /usr/lib/ruby/gems/1.9.1/gems/rdoc-3.9.4/bin/rdoc exists in filesystem
ruby: /usr/lib/ruby/gems/1.9.1/gems/rdoc-3.9.4/bin/ri exists in filesystem
ruby: /usr/lib/ruby/gems/1.9.1/specifications/rake-0.9.2.2.gemspec exists in filesystem
ruby: /usr/lib/ruby/gems/1.9.1/specifications/rdoc-3.9.4.gemspec exists in filesystem
Errors occurred, no packages were upgraded.

Help?

Last edited by amatriain (2012-05-07 07:03:11)

Offline

#2 2011-11-09 09:15:42

amatriain
Member
Registered: 2011-06-02
Posts: 51

Re: [SOLVED] problem upgrading ruby

In the end I deleted the five offending directories under /usr/lib/ruby/gems/1.9.1 , after that the upgrade worked and everything seems ok. But I don't think that's how the upgrade is supposed to be done...

Offline

#3 2011-11-09 19:22:19

doogle
Member
Registered: 2011-11-09
Posts: 1

Re: [SOLVED] problem upgrading ruby

I had the same problem. I got around it by removing the offending gems:

gem uninstall rake
gem uninstall rdoc

Then, after the successful pacman -Syu, I just did a:

gem update

Offline

#4 2011-11-15 19:23:28

mooddha
Member
Registered: 2011-10-03
Posts: 15

Re: [SOLVED] problem upgrading ruby

doogle wrote:

I had the same problem. I got around it by removing the offending gems:

gem uninstall rake
gem uninstall rdoc

Then, after the successful pacman -Syu, I just did a:

gem update

Works here, removed all versions of the gems, had to remove also the json gem.

Thanks

Offline

Board footer

Powered by FluxBB