ERROR: While executing gem (ArgumentError) Illformed requirement
I like to use http://mor.ph to deploy my applications because of its simplicity. The other nice thing is that they give you free developer space so if you are just getting an application up and running or just need to show it to a client you can do so without having to pay a bunch of money and spend a bunch of time setting up a VPS.
There are a few issues now and then. Morph has a large number of gems installed by default but occasionally I use one that they don't have. Today I ran into this problem. At first I thought no big deal I can just do a rake gems:unpack and drop the gems into the project and then deploy again.
No go.
Instead I get the following error:
ERROR: While executing gem ... (ArgumentError)
Illformed requirement ["\"= 2.2.2\""]
Turns out there is current a bug in Rails 2.1.0 and 2.2.0 that causes the unpack to barf if you specify a version number. Here's the link:
http://rails.lighthouseapp.com/projects/8994/tickets/1003-rake-gemsunpack-version-handling-broken
Since I am using the latest version of all the gems, my solution was to temporarily remove the version numbers from environment.rb.
So this
config.gem 'ruby-openid', :lib => 'openid', :version => '2.1.2'
becomes this
config.gem 'ruby-openid', :lib => 'openid'
Then I did:
rake gems:unpack
and everything worked fine.
Do remember to put the version numbers back when you are done.
-
Justin Ball
-
friarminor
Justin Ball is a software consultant and entrepreneur with a passion for Ruby. He evolved from a C++ and .Net monkey into a python programmer and finally found Ruby. In the rare moments when he isn't writing code, talking about code or measuring his code productivity in profanity per hour, you can find him on his bike in the mountains or on the roads surrounding Cache Valley. 









