# Gem Dependency error

**URL:** <https://discuss.rubyonrails.org/t/gem-dependency-error/64035>\
**Category:** rubyonrails-talk\
**Created:** [May 31, 2012, 12:52pm UTC](https://discuss.rubyonrails.org/t/gem-dependency-error/64035 "2012-05-31T12:52:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subal\_Charla](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@Subal\_Charla](https://discuss.rubyonrails.org/u/Subal_Charla)\
**Post date:** [May 31, 2012, 12:52pm UTC](https://discuss.rubyonrails.org/t/gem-dependency-error/64035/1 "2012-05-31T12:52:42Z")

</div>

I am following Michael Hartl's Tutorial on RoR. During the 3rd Chapter (sample\_app), I am trying to install the gems via the "bundle install --without production command" but I keep encountering the following issue:

Bundler could not find compatible versions for gem "railties": &nbsp;&nbsp;In Gemfile: &nbsp;&nbsp;&nbsp;&nbsp;rails (= 3.2.3) ruby depends on &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;railties (= 3.2.3) ruby

&nbsp;&nbsp;&nbsp;&nbsp;jquery-rails (= 2.0.0) ruby depends on &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;railties (3.2.4.rc1)

On using the terminal to install jquery-rail, i.e. "gem install jquery- rails -v '2.0.0'", I get successfully installed. But after I do "bundle install", the same dependency issue crops up.

Another thing, my local gem file shows that I do have "railties -v 3.2.3", so why the error showing up?

---

<div class="post-metadata">

**Author:** ![Jeremy\_Walker](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@Jeremy\_Walker](https://discuss.rubyonrails.org/u/Jeremy_Walker)\
**Post date:** [June 1, 2012, 12:01pm UTC](https://discuss.rubyonrails.org/t/gem-dependency-error/64035/2 "2012-06-01T12:01:17Z")

</div>

> I am following Michael Hartl's Tutorial on RoR. During the 3rd Chapter (sample\_app), I am trying to install the gems via the "bundle install --without production command" but I keep encountering the following issue:
> 
> Bundler could not find compatible versions for gem "railties": In Gemfile: &nbsp;&nbsp;&nbsp;rails (= 3.2.3) ruby depends on &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;railties (= 3.2.3) ruby
> 
> &nbsp;&nbsp;&nbsp;jquery-rails (= 2.0.0) ruby depends on &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;railties (3.2.4.rc1)

Sounds like you're specifying incompatible versions of gems in your Gemfile. Can you post the contents of your Gemfile, please?

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [June 1, 2012, 8:21pm UTC](https://discuss.rubyonrails.org/t/gem-dependency-error/64035/3 "2012-06-01T20:21:12Z")

</div>

Check that you have /exactly/ the right contents in Gemfile as required by the tutorial. My guess is that you have a typo somewhere. Check particularly what you have for the gems mentioned in the error.

Colin
