[Rubygems-developers] re-install, errors with install -b -y, and with hoe.
Hugh Sasse
hgs at dmu.ac.uk
Wed Feb 7 06:26:12 EST 2007
On Wed, 7 Feb 2007, Hugh Sasse wrote:
> After my last post I tried re-installing rubygems from the zip file.
> That time I got a clean install, but I am still getting errors like this:
>
>
> hgs at Q2P14HGS ~
> $ ls *.gem
> ZenTest-3.4.3.gem
>
> hgs at Q2P14HGS ~
> $ gem install -b -y ZenTest-3.4.3.gem
> ERROR: While executing gem ... (RuntimeError)
> Error instaling ZenTest-3.4.3.gem:
> ZenTest requires hoe >= 1.1.4
>
To follow up, I found a blog entry at:
http://weblog.rubyonrails.com/2007/2/6/in-case-you-re-having-trouble-installing-gems
and did this:
hgs at Q2P14HGS ~
$ cd /usr/lib/ruby/gems/1.8
hgs at Q2P14HGS /usr/lib/ruby/gems/1.8
$ ls
cache doc gems source_cache specifications
hgs at Q2P14HGS /usr/lib/ruby/gems/1.8
$ rm -rf source_cache
hgs at Q2P14HGS /usr/lib/ruby/gems/1.8
$ cd
hgs at Q2P14HGS ~
$ gem install -b -y ZenTest-3.4.3.gem
ERROR: While executing gem ... (RuntimeError)
Error instaling ZenTest-3.4.3.gem:
ZenTest requires hoe >= 1.1.4
hgs at Q2P14HGS ~
$ gem install -y Hoe
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find Hoe (> 0) in any repository
hgs at Q2P14HGS ~
$ ls -l *.gem
-rw-r--r-- 1 hgs None 51712 Dec 19 09:04 ZenTest-3.4.3.gem
-rwx------+ 1 hgs None 12288 Feb 7 11:14 hoe-1.1.7.gem
hgs at Q2P14HGS ~
$ gem install -y hoe-1.1.7.gem
ERROR: While executing gem ... (RuntimeError)
Error instaling hoe-1.1.7.gem:
hoe requires rubyforge >= 0.4.0
hgs at Q2P14HGS ~
$ gem install --include-dependencies hoe-1.1.7.gem
ERROR: While executing gem ... (RuntimeError)
Error instaling hoe-1.1.7.gem:
hoe requires rubyforge >= 0.4.0
hgs at Q2P14HGS ~
$ gem install rubyforge
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rubyforge-0.4.0
Installing ri documentation for rubyforge-0.4.0...
Installing RDoc documentation for rubyforge-0.4.0...
hgs at Q2P14HGS ~
$ gem install -y hoe-1.1.7.gem
ERROR: While executing gem ... (RuntimeError)
Error instaling hoe-1.1.7.gem:
hoe requires rake >= 0.7.1
hgs at Q2P14HGS ~
$ gem install rake
Successfully installed rake-0.7.1
Installing ri documentation for rake-0.7.1...
Installing RDoc documentation for rake-0.7.1...
hgs at Q2P14HGS ~
$ gem install -y hoe-1.1.7.gem
Successfully installed hoe, version 1.1.7
Installing ri documentation for hoe-1.1.7...
Installing RDoc documentation for hoe-1.1.7...
hgs at Q2P14HGS ~
$ gem install -b -y ZenTest-3.4.3.gem
Successfully installed ZenTest, version 3.4.3
Installing ri documentation for ZenTest-3.4.3...
Installing RDoc documentation for ZenTest-3.4.3...
hgs at Q2P14HGS ~
$
So the ability to install dependecnies still seems to be borken, but
I have got over the initial problem. I still think it would be useful
to have a gem command to clear the source cache.
Hugh
More information about the Rubygems-developers
mailing list