When starting Ruby on Rails WEBrick server (Ubuntu 14.04) the following message appears: "Warning: You're using Rubygems 1.8.23 with Spring. Upgrade to at least Rubygems 2.1.0 and run gem pristine --all
for better startup performance."
I've upgraded Rubygems and ran gem pristine --all
, but it seems to have trouble with the thor
gem. The reason is I have the following installed thor
gem versions (according to gem list
command):
thor (0.19.1, 0.18.1.20140116)
and there is NO 'thor' gem version 0.18.1.20140116 anywhere. I can't uninstall it and I can't install it. If I install and uninstall 0.18.1 version, it doesn't affect 0.18.1.20140116 version at all.
So gem pristine --all
command stops when checking thor
with the following error:
Restored thor-0.19.1 Cached gem for thor-0.18.1.20140116 not found, attempting to fetch... ERROR: While executing gem ... (Gem::Exception) Cannot load gem at [/usr/share/rubygems-integration/1.9.1/cache/thor-0.18.1.20140116.gem] in /home/****/******/*********
How can I remove that funny 0.18.1.20140116 version from system or make gem pristine
not to check the thor
gem?
Thank you!
I solved that problem by deleting
/usr/share/rubygems-integration/1.9.1/specifications/thor-0.8.1.20140116.gemspec
manually with root rights.
Thank you guys for help!