[Rubygems-developers] [ rubygems-Bugs-28759 ] Print message when no gems matching your platform are found, or could not be installed

noreply at rubyforge.org noreply at rubyforge.org
Fri Dec 31 20:40:13 EST 2010


Bugs item #28759, was opened at 2010-11-30 16:22
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28759&group_id=126

Category: `gem install` command
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Greg Hazel (ghazel)
>Assigned to: Luis Lavena (luislavena)
Summary: Print message when no gems matching your platform are found, or could not be installed

Initial Comment:
reopening: http://rubyforge.org/tracker/?func=detail&atid=575&aid=21325&group_id=126

Example of the problem today:

$ uname -a
Linux hostname 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

$ sudo gem search -r nokogiri

*** REMOTE GEMS ***

glebm-nokogiri (1.4.2.1)
jwagener-nokogiri (1.4.1)
nokogiri (1.4.4.1, 1.4.4, 1.2.3)
nokogiri-diff (0.1.0)
nokogiri-happymapper (0.3.4)
nokogiri-plist (0.3.1)
nokogiri-pretty (0.1.0)
revo-nokogiri (1.4.1)
rsolr-nokogiri (0.0.0)
rubyjedi-nokogiri_java (1.4.0.20100513161003)
superfeedr-nokogiri (1.4.0.20091116183308)

$ sudo gem install nokogiri --version ">= 1.4.4.1"
ERROR:  could not find gem nokogiri locally or in a repository


----------------------------------------------------------------------

>Comment By: Luis Lavena (luislavena)
Date: 2010-12-31 22:40

Message:
Hello,

As Eric reported, RubyGems 1.3.7 already reports information about the platform the gems versions provide:

>gem search -r nokogiri

*** REMOTE GEMS ***

glebm-nokogiri (1.4.2.1)
jwagener-nokogiri (1.4.1)
nokogiri (1.4.4.2 java, 1.4.4.1 x86-mingw32 x86-mswin32, 1.4.4, 1.2.3 x86-mswin32-60)
nokogiri-diff (0.1.0)
nokogiri-happymapper (0.3.6)
nokogiri-plist (0.3.1)
nokogiri-pretty (0.1.0)
revo-nokogiri (1.4.1 java)
rsolr-nokogiri (0.0.0)
rubyjedi-nokogiri_java (1.4.0.20100513161003 java)
superfeedr-nokogiri (1.4.0.20091116183308)

The issue specifically you're facing here is more an issue of gem distribution (the gem author) than RubyGems message.

A more informative message will not help, you will still not get what you want.

Either way, a more informative message could only happen on a newer version of RubyGems, which seems you can't or wan't to update.

If you have a suggestion for the error message, even better, a patch, will be highly welcome.

Regards.


----------------------------------------------------------------------

Comment By: Greg Hazel (ghazel)
Date: 2010-12-01 14:37

Message:
I have gem 1.3.5 where that information is not listed.

How hard is a more informative error message?


----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2010-12-01 14:34

Message:
Note:

$ gem env version
1.3.7


----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2010-12-01 14:33

Message:
Why would you try to install nokogiri for windows on purpose when it is clearly listed as such in `gem search`?

$ gem search -r nokogiri

*** REMOTE GEMS ***

glebm-nokogiri (1.4.2.1)
jwagener-nokogiri (1.4.1)
nokogiri (1.4.4.1 x86-mingw32 x86-mswin32, 1.4.4 ruby java, 1.2.3 x86-mswin32-60)
nokogiri-diff (0.1.0)
nokogiri-happymapper (0.3.4)
nokogiri-plist (0.3.1)
nokogiri-pretty (0.1.0)
revo-nokogiri (1.4.1 java)
rsolr-nokogiri (0.0.0)
rubyjedi-nokogiri_java (1.4.0.20100513161003 java)
superfeedr-nokogiri (1.4.0.20091116183308)


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28759&group_id=126


More information about the Rubygems-developers mailing list