# YAML on OS X Leopard

**URL:** <https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950>\
**Category:** Ruby\
**Created:** [November 1, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950 "2007-11-01T17:36:27Z")\
**Posts on this page:** 5\
**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:36pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950/1 "2007-11-01T17:36:27Z")

</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, 5:46pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950/2 "2007-11-01T17:46:49Z")

</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?
> 
> Best regards
> 
> Gabriel

Nothing. When require returns “false” it means that yaml was already  
loaded. If yaml could not be loaded require would have raised LoadError.

---

<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:04pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950/3 "2007-11-01T18:04:01Z")

</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 it’s already been required, and didn’t load again. You  
> should just be able to use it.

---

<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:13pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950/4 "2007-11-01T18:13:22Z")

</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?

I think it just means that it’s already loaded, so there was no need to  
load it again.

mortee

---

<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, 8:32pm UTC](https://www.ruby-forum.com/t/yaml-on-os-x-leopard/118950/5 "2007-11-01T20:32:47Z")

</div>

Hi!

removed\_email\_address@domain.invalid 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?

It seems to me that yaml is loaded with rubygems, at least on my  
linux box:

# echo $RUBYOPT

-rauto\_gem -Ku -rubygems

# ruby -e ‘puts($LOADED\_FEATURES.select {|f| /yaml/ =~ f }.sort)’

yaml.rb  
yaml/basenode.rb  
yaml/constants.rb  
yaml/error.rb  
yaml/rubytypes.rb  
yaml/stream.rb  
yaml/syck.rb  
yaml/tag.rb  
yaml/types.rb  
yaml/ypath.rb

# unset RUBYOPT

# ruby -e ‘puts($LOADED\_FEATURES.select {|f| /yaml/ =~ f }.sort)’

(no output)

I’m using ruby 1.8.6 on Gentoo/Linux.

Daniel
