Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Errno::EEXIST File Exists error when installing 'ferret' gem fromlocal .gem file

Reply
Thread Tools

Errno::EEXIST File Exists error when installing 'ferret' gem fromlocal .gem file

 
 
Brandon Simmons
Guest
Posts: n/a
 
      12-22-2010
Hi all,

This is a cross-post from:
http://stackoverflow.com/questions/4...local-gem-file



I am trying to install the ferret ruby gem on a RHEL zlinux (s390x
architecture) machine, and am trying to install a .gem file after
patching it so that it will compile.

But even trying to install the pristine fetched gem, it fails as follows:

[ me@s390x ]$ sudo gem fetch ferret
Downloaded ferret-0.11.6
[ me@s390x ]$ sudo gem install -lV ferret-0.11.6.gem
Installing gem ferret-0.11.6
Using local gem /home/rubyusr/rubygems/gems/cache/ferret-0.11.6.gem
/home/rubyusr/rubygems/gems/gems/ferret-0.11.6/bin
ERROR: While executing gem ... (Errno::EEXIST)
File exists - /home/rubyusr/rubygems/gems/gems/ferret-0.11.6/bin

None of the above-mentioned directories or files related to "ferret"
existed before running this command.

Also strange is that
/home/rubyusr/rubygems/gems/gems/ferret-0.11.6/bin is a directory,
although maybe that is a normal complaint.

A final complicating factor is when I run the gem command I am
actually running a shell script that sets the environment variables
for my unusual rubygems directory (I haven't had any problems so far
with this set up). Here is my gem shell script:

#!/bin/bash

export GEM_HOME=/home/rubyusr/rubygems/gems
export GEM_PREFIX=/home/rubyusr/rubygems
export RUBYLIB=$GEM_PREFIX/lib:/usr/lib/ruby:/usr/lib/ruby/site_ruby:/usr/lib/site_ruby
export GEM_PATH=$GEM_HOME

OUR_GEM_COMMAND=$GEM_PREFIX/bin/gem

$OUR_GEM_COMMAND $@

I forgot to add that running the gem install command normally does not
seem to result in this error (but ferret fails to compile), with the
error:

posh.h:515:4: error: #error POSH cannot determine target CPU


Thanks,
Brandon Simmons
http://coder.bsimmons.name

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gem::Package::FormatError when installing appengine-tools gem Adinda P. Ruby 0 11-06-2010 05:39 PM
Gem dependency / installing multiple gem from a single file Nasir Khan Ruby 0 06-08-2009 09:31 PM
Installing sake tasks along with gem (gem install hooks?) Pat Maddox Ruby 2 08-03-2008 06:24 PM
Can't install//use the scrubyt gem? LoadError: no such file to load-- parse_tree_reloaded. What did I wrong with installing this gem? kazaam Ruby 1 08-29-2007 02:42 PM
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM



Advertisments