# YAML on OS X Leopard

**URL:** <https://www.ruby-forum.com/t/yaml-on-os-x-leopard/196508>\
**Category:** Ruby\
**Created:** [November 1, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/196508 "2007-11-01T17:56:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mobileamusement](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Post date:** [November 1, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/196508/1 "2007-11-01T17:56:57Z")

</div>

I’m using Leopard and it has a decent Ruby installation, so I haven’t  
bothered with MacPorts. Used gems to install Rails.

However when I go in to IRB and type:  
require ‘yaml’

I always get ‘false’. What do I have to do to get it to work?

Best regards

Gabriel

---

<div class="post-metadata">

**Author:** ![mobileamusement](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Post date:** [November 1, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/196508/2 "2007-11-01T18:16:17Z")

</div>

Gabriel D. wrote:

> I’m using Leopard and it has a decent Ruby installation, so I haven’t  
> bothered with MacPorts. Used gems to install Rails.
> 
> However when I go in to IRB and type:  
> require ‘yaml’
> 
> I always get ‘false’. What do I have to do to get it to work?

That just means yaml is already loaded. Try using it:

$ irb  
irb(main):001:0\> require ‘yaml’  
=\> false  
irb(main):002:0\> “foo”.to\_yaml  
=\> “— foo\n”
