Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illformed requirement ["< 2.1, >= 1.8"] #40

Closed
Ye-Yuan opened this issue Apr 19, 2013 · 21 comments
Closed

Illformed requirement ["< 2.1, >= 1.8"] #40

Ye-Yuan opened this issue Apr 19, 2013 · 21 comments

Comments

@Ye-Yuan
Copy link

Ye-Yuan commented Apr 19, 2013

Illformed requirement ["< 2.1, >= 1.8"]
Could not find ZenTest-4.9.1 in any of the sources

Just not sure why this happened when I trying to start rails server.

@zeevallin
Copy link

I'm getting the same thing.

@jmccaffrey
Copy link

I see from other closed issues that this is a Dupe of #29, #30, & #31 which suggest updating rubygems and reinstalling the zentest gem
I also tested just changing the gemspec line to ["< 2.1",">= 1.8"], and that seemed to work too.

@zeevallin
Copy link

Thank you!

Sent from my iPhone

On 24 apr 2013, at 20:11, John McCaffrey notifications@github.com wrote:

I see from other closed issues that this is a Dupe of #29, #30, & #31 which suggest updating rubygems and reinstalling the zentest gem
I also tested just changing the gemspec line to ["< 2.1",">= 1.8"], and that seemed to work too.


Reply to this email directly or view it on GitHub.

@wikimatze
Copy link

Hi, I'm having the same error. Running gem version ~1.8.0. After upgrading to ~2.0.3 the error went away.

@chewi
Copy link

chewi commented May 7, 2013

Note for JRuby 1.7 + RVM users, you have to explicitly request latest-2.0 or it will refuse to install.

rvm rubygems latest-2.0

@wikimatze
Copy link

I'm using rbenv!

@tansaku
Copy link

tansaku commented May 14, 2013

@zenspider
Copy link
Member

@tansaku that is not the right fix. Please upgrade rubygems, uninstall zentest and reinstall zentest.

@tansaku
Copy link

tansaku commented May 20, 2013

thanks - that does indeed appear to be a more stable fix :-)

@hecbuma
Copy link

hecbuma commented Jul 14, 2013

I'm using rbenv and update rubygems worked for me

@nathany
Copy link

nathany commented Aug 16, 2013

@zenspider I am running RubyGems 1.8.24 for a Ruby 1.8.7 / Rails 2.x rescue project in order to match the version of RubyGems that Heroku supplies.

My solution is to lock ZenTest to 4.8.3:

gem "ZenTest", "4.8.3"    # Malformed gemspec in newer versions

zenspider referenced this issue Aug 17, 2013
[git-p4: depot-paths = "//src/ZenTest/dev/": change = 8885]
@warbot
Copy link

warbot commented Sep 19, 2013

Would agree with @nathany . It's also possible to edit the spec file with ["< 2.1, >= 1.8"] -> [">= 1.8"]. Rubygems v2 has some bugs yet so I'm forced to stick to rubygems -v 1.8.24 with ZenTest to 4.8.3

@zzak
Copy link

zzak commented Oct 22, 2013

This has already been fixed

@jacqueline-homan
Copy link

I am having problems getting this to work and I tried all the suggested fixes here.
zentest gem error

@tansaku
Copy link

tansaku commented Nov 5, 2013

that error message indicates that you need to prepend "sudo", i.e. "sudo gem uninstall ZenTest"

@zenspider
Copy link
Member

@zzak yeah, this has been fixed... but if I close it, someone opens a new one instead of searching through the tickets. shrug

@jacqueline-homan
Copy link

I got it fixed. I edited the gems spec file by removing the ">=1.80" and now it works just fine.

@marcoalacot
Copy link

In order to fix this:

Update rubygems and reinstall ZenTest

gem update --system
gem uninstall ZenTest
gem install ZenTest

@wikimatze
Copy link

Puh I didn't try it out for a long time and give it a try in the near future.

@zenspider
Copy link
Member

Since most people have moved on to newer versions of rubygems this issue seems moot. Closing for now...but I may reopen and just leave it forever if the issue rises again.

Update your rubygems, folks! It's good for you!

@jayands
Copy link

jayands commented Jan 22, 2016

I had this issue, too--- the simplest solution is to remove the spaces in the requirements, i.e., from Gem::Requirement.new(["< 3.0", ">= 1.8"]) to Gem::Requirement.new(["<3.0", ">=1.8"]). This will enable it to work with older rubies (1.9.3-p551, in this case) even if you keep rubygems up-to-date.

Also, sorry for necroposting.

@seattlerb seattlerb locked and limited conversation to collaborators Jan 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests