Gem dependencies issue

A

Andrew Wagner

[Note: parts of this message were removed to make it a legal post.]

Ok, I'm trying to install gem A. I could give you the names of the gems, but
I doubt it matters.

Anyway, gem A requires gems B and C, any versions. So it goes and gets the
newest version of B and installs it, no problem.

Then it goes to install C, but C requires a particular (old) version of B.
So it croaks and refuses to install.

I'm sure there's an easy solution to this, but I don't know it....if I
wanted this much pain, I'd have two wives...
 
J

Jeremy Bopp

Ok, I'm trying to install gem A. I could give you the names of the gems, but
I doubt it matters.

Anyway, gem A requires gems B and C, any versions. So it goes and gets the
newest version of B and installs it, no problem.

Then it goes to install C, but C requires a particular (old) version of B.
So it croaks and refuses to install.

I'm sure there's an easy solution to this, but I don't know it....if I
wanted this much pain, I'd have two wives...

What happens if you explicitly install C first and then try to install A?

-Jeremy
 
L

Luis Lavena

[Note:  parts of this message were removed to make it a legal post.]

Ok, I'm trying to install gem A. I could give you the names of the gems, but
I doubt it matters.

Anyway, gem A requires gems B and C, any versions. So it goes and gets the
newest version of B and installs it, no problem.

Then it goes to install C, but C requires a particular (old) version of B..
So it croaks and refuses to install.

I'm sure there's an easy solution to this, but I don't know it....if I
wanted this much pain, I'd have two wives...

Give gem names, it matters.

RubyGems dependency resolution is not very smart, but is not dumb.
Either the gem authors didn't carefully mark their dependencies or
RubyGems is doing something wrong.

One example of that was Rails and Rack. Search for examples in the
past about that (one of the reasons of bundler been born).

Now, show us exact gem names and versions, exact "gem install A --
debug -V" output and we can talk, just me, is cheaper than couple
therapy :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top