Bugs item #29098, was opened at 2011-03-22 11:53
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29098&group_id=126
Category: RubyGems installer (setup.rb)
Group: v1.6.x
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Dan Hetherington (repentorperish)
>Assigned to: Eric Hodel (drbrain)
Summary: Installer fails with Cygwin
Initial Comment:
This is the output trying to install 1.6.2 inside cygwin:
14:45 Slack@vaio:~/mydocs/Downloads/rubygems-1.6.2$ ruby setup.rb install
./lib/rubygems/custom_require.rb:54: warning: parenthesize argument(s) for
future version
./lib/rubygems/dependency.rb:203: warning: parenthesize argument(s) for future
version
./lib/rubygems/dependency.rb:204: warning: parenthesize argument(s) for future
version
./lib/rubygems/custom_require.rb:57:in `require': undefined method `end_with?'
for "no such file to
g (NoMethodError)
from ./lib/rubygems.rb:695:in `load_yaml'
from ./lib/rubygems/config_file.rb:231:in `load_file'
from ./lib/rubygems/config_file.rb:178:in `initialize'
from ./lib/rubygems/gem_runner.rb:76:in `new'
from ./lib/rubygems/gem_runner.rb:76:in `do_configuration'
from ./lib/rubygems/gem_runner.rb:49:in `run'
from setup.rb:35
This is the current default version of ruby in cygwin (I updated a few days
ago):
14:45 Slack@vaio:~/mydocs/Downloads/rubygems-1.6.2$ ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
Windows XP SP 3. Much the same happens with 1.6.0:
./lib/rubygems/custom_require.rb:49: warning: parenthesize argument(s) for
future version
./lib/rubygems/dependency.rb:203: warning: parenthesize argument(s) for future
version
./lib/rubygems/dependency.rb:204: warning: parenthesize argument(s) for future
version
./lib/rubygems/custom_require.rb:52:in `require': undefined method `end_with?'
for "no such file to
g (NoMethodError)
from ./lib/rubygems.rb:694:in `load_yaml'
from ./lib/rubygems/config_file.rb:231:in `load_file'
from ./lib/rubygems/config_file.rb:178:in `initialize'
from ./lib/rubygems/gem_runner.rb:76:in `new'
from ./lib/rubygems/gem_runner.rb:76:in `do_configuration'
from ./lib/rubygems/gem_runner.rb:49:in `run'
from setup.rb:35
I also tried a really old version (1.3.7): the installation seems to work but
Cygwin gem doesn't seem to have ended up anywhere Cygwin can find it (see
below). Sorry if I'm missing something obvious but Google drew a complete
blank.
14:48 Slack@vaio:~/mydocs/Downloads/rubygems-1.3.7$ ruby setup.rb install
RubyGems 1.3.7 installed
´╗┐=== 1.3.7 / 2010-05-13
NOTE:
http://rubygems.org is now the default source for downloading gems.
You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org
http://gems.rubyforge.org will continue to work for the forseeable future.
New features:
* `gem` commands
* `gem install` and `gem fetch` now report alternate platforms when a
matching one couldn't be found.
* `gem contents` --prefix is now the default as specified in --help. Bug
#27211 by Mamoru Tasaka.
* `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins.
* `gem query` and friends output now lists platforms. Bug #27856 by Greg
Hazel.
* `gem server` now allows specification of multiple gem dirs for
documentation. Bug #27573 by Yuki Sonoda.
* `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones.
* `gem unpack` now unpacks remote gems.
* --user-install is no longer the default. If you really liked it, see
Gem::ConfigFile to learn how to set it by default. (This change was made
in 1.3.6)
* RubyGems now has platform support for IronRuby. Patch #27951 by Will Green.
Bug fixes:
* Require rubygems/custom_require if --disable-gem was set. Bug #27700 by
Roger Pack.
* RubyGems now protects against exceptions being raised by plugins.
* rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip
Toland.
* Gem::Dependency support #version_requirements= with a warning. Fix for old
Rails versions. Bug #27868 by Wei Jen Lu.
* Gem::PackageTask depends on the package dir like the other rake package
tasks so dependencies can be hooked up correctly.
------------------------------------------------------------------------------
RubyGems installed the following executables:
C:/ruby/bin/gem
14:49 Slack@vaio:~/mydocs/Downloads/rubygems-1.3.7$ gem
C:\ruby\bin\ruby.exe: No such file or directory -- /cygdrive/c/ruby/bin/gem
(LoadError)
14:49 Slack@vaio:~/mydocs/Downloads/rubygems-1.3.7$ gem env
C:\ruby\bin\ruby.exe: No such file or directory -- /cygdrive/c/ruby/bin/gem
(LoadError)
14:49 Slack@vaio:~/mydocs/Downloads/rubygems-1.3.7$ which gem
/cygdrive/c/ruby/bin/gem
----------------------------------------------------------------------
>Comment By: Eric Hodel (drbrain)
Date: 2011-03-22 14:56
Message:
Upgrade your ruby, RubyGems 1.3.7 is the last version that supported ruby 1.8.6
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29098&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers