266 end
267
268 def mkdir(name, mode)
269 raise ClosedIO if @closed
Hrm, it seems that something bogus is going on with your installation.
First, site_ruby should be under /usr/local/lib/ruby, not /usr/local/
lib.
Second, line 264 should be “@io.pos = final_pos”, not what you’ve got.
Can you try removing /usr/local/lib/site_ruby/1.8/rubygems.rb and /
usr/local/lib/site_ruby/1.8/rubygems/* and reinstalling? I suspect
those files are from an older version of RubyGems and are getting in
the way.
First, site_ruby should be under /usr/local/lib/ruby, not /usr/local/
lib.
I’ve removed everything, including ruby itself, …
when I do “apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
libreadline-ruby1.8 libruby1.8”, I get things in “/usr/lib/ruby/1.8/”
I thing I have to tune the setup config for Rubygems, but I don’t know
which way.
Thanks for your help
If do “ruby setup.rb config” then “ruby setup.rb show” :
prefix /usr
bindir $prefix/bin
libdir $prefix/lib
datadir $prefix/share
mandir $prefix/share/man
sysconfdir /etc
stdruby $libdir/ruby/1.8
siteruby $prefix/local/lib/site_ruby
siterubyver $siteruby/1.8
siterubyverarch $siterubyver/sparc-linux
rbdir $siterubyver
sodir $siterubyverarch
rubypath /usr/bin/ruby1.8
rubyprog /usr/bin/ruby1.8
makeprog make
shebang ruby
without-ext no
But I don’t understand why it is using “siteruby” instead of “stdruby”
which seems to be right for me.
First, site_ruby should be under /usr/local/lib/ruby, not /usr/local/
lib.
I’ve removed everything, including ruby itself, …
when I do “apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
libreadline-ruby1.8 libruby1.8”, I get things in “/usr/lib/ruby/1.8/”
I thing I have to tune the setup config for Rubygems, but I don’t know
which way.
First, site_ruby should be under /usr/local/lib/ruby, not /usr/local/
lib.
I’ve removed everything, including ruby itself, …
when I do “apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
libreadline-ruby1.8 libruby1.8”, I get things in “/usr/lib/ruby/1.8/”
Did RubyGems install successfully now?
I thing I have to tune the setup config for Rubygems, but I don’t know
which way.
You shouldn’t, it follows what rbconfig says, which depends upon how
Ruby was configured.
I’ve removed everything, including ruby itself, �
when I do “apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
libreadline-ruby1.8 libruby1.8”, I get things in “/usr/lib/ruby/1.8/”
Did RubyGems install successfully now?
No !! I have the exact same error, with 0.9.[0-2]
I even tried to install the official Debian package for rubygems. Then :
gem -v
0.9.0
gem update --system
Updating RubyGems…
Bulk updating Gem source index for: http://gems.rubyforge.org
Attempting remote update of rubygems-update
ERROR: While executing gem … (Errno::EINVAL)
Invalid argument - /var/lib/gems/1.8/cache/rubygems-update-0.9.2.gem
gem pristine --all
ERROR: While executing gem … (RuntimeError)
Unknown command pristine
gem install rubygems-update
ERROR: While executing gem … (Errno::EINVAL)
Invalid argument - /var/lib/gems/1.8/cache/rubygems-update-0.9.2.gem
I thing I have to tune the setup config for Rubygems, but I don’t know
which way.
You shouldn’t, it follows what rbconfig says, which depends upon how
Ruby was configured.
OK I undestand the logic, but still, I’m stuck and begin to be desperate
I’m sorry the bother you with my strange problem, but for now you are my
only help out there. Thanks again.