# Problems with gems and Ruby 1.8.7

**URL:** <https://www.ruby-forum.com/t/problems-with-gems-and-ruby-1-8-7/172284>\
**Category:** Ruby\
**Created:** [July 18, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/problems-with-gems-and-ruby-1-8-7/172284 "2009-07-18T15:57:51Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![hgtesta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/919ad9/32.png) [@hgtesta](https://www.ruby-forum.com/u/hgtesta)\
**Post date:** [August 22, 2012, 1:38am UTC](https://www.ruby-forum.com/t/problems-with-gems-and-ruby-1-8-7/172284/21 "2012-08-22T01:38:46Z")

</div>

> I had this particular problem as well and here’s how I got around it:  
> For OS 10.7 + XCode4.3 only open Xcode preferences, select the  
> “Downloads” button, select the “Components” tab of Downloads, highlight  
> “Command Line Tools” and press the install button. Gem install rails  
> didn’t give me any trouble after that. Hope that works for you too,
> 
> Chad

This WORKED! Thank you..

---

<div class="post-metadata">

**Author:** ![hgtesta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/919ad9/32.png) [@hgtesta](https://www.ruby-forum.com/u/hgtesta)\
**Post date:** [October 1, 2012, 6:15pm UTC](https://www.ruby-forum.com/t/problems-with-gems-and-ruby-1-8-7/172284/22 "2012-10-01T18:15:04Z")

</div>

> I had this particular problem as well and here’s how I got around it:  
> For OS 10.7 + XCode4.3 only open Xcode preferences, select the  
> “Downloads” button, select the “Components” tab of Downloads, highlight  
> “Command Line Tools” and press the install button. Gem install rails  
> didn’t give me any trouble after that. Hope that works for you too,
> 
> Chad

This worked for me as well. Thank you!

---

<div class="post-metadata">

**Author:** ![hgtesta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/919ad9/32.png) [@hgtesta](https://www.ruby-forum.com/u/hgtesta)\
**Post date:** [August 1, 2012, 5:00am UTC](https://www.ruby-forum.com/t/problems-with-gems-and-ruby-1-8-7/172284/23 "2012-08-01T05:00:19Z")

</div>

Ruby S. wrote in post #1070503:

> Posted by mark wiltshire (markemark) on 2012-07-17 18:39
> 
> > I had this particular problem as well and here’s how I got around it:  
> > For OS 10.7 + XCode4.3 only open Xcode preferences, select the  
> > “Downloads” button, select the “Components” tab of Downloads, highlight  
> > “Command Line Tools” and press the install button. Gem install rails  
> > didn’t give me any trouble after that. Hope that works for you too,
> 
> It did work for me thank you so much 🙂

Seems to work with OS 10.8 and XCode 4.4 as well - same problem  
encountered - same solution - thanks so much for the help

[Previous page](https://www.ruby-forum.com/t/problems-with-gems-and-ruby-1-8-7/172284.md?page=1)
