# HELP: Can't seem to 'require' libxml under MacOS X

**URL:** <https://www.ruby-forum.com/t/help-cant-seem-to-require-libxml-under-macos-x/84574>\
**Category:** Ruby\
**Created:** [February 6, 2007, 1:56am UTC](https://www.ruby-forum.com/t/help-cant-seem-to-require-libxml-under-macos-x/84574 "2007-02-06T01:56:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 6, 2007, 1:56am UTC](https://www.ruby-forum.com/t/help-cant-seem-to-require-libxml-under-macos-x/84574/1 "2007-02-06T01:56:40Z")

</div>

I’ve installed Ruby under MacOS X Tiger (or upgraded it) via Fink, and  
I’ve also installed gems. Using gems, I installed libxml-ruby. For  
whatever reason, however, putting “require ‘xml/libxml’” into a Ruby  
program gives me an error:

LoadError: no such file to load xml/libxml

When search through spotlight, I do find files related to it, but the  
usual way of requiring them doesn’t work.

Any idea what I might be doing wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 6, 2007, 2:00am UTC](https://www.ruby-forum.com/t/help-cant-seem-to-require-libxml-under-macos-x/84574/2 "2007-02-06T02:00:40Z")

</div>

On Feb 5, 7:53 pm, removed\_email\_address@domain.invalid wrote:

> LoadError: no such file to load xml/libxml

Note: I read something about needing to first “require ‘rubygems’”,  
but that doesn’t help.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 6, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/help-cant-seem-to-require-libxml-under-macos-x/84574/3 "2007-02-06T17:05:37Z")

</div>

On Feb 5, 7:53 pm, removed\_email\_address@domain.invalid wrote:

> Any idea what I might be doing wrong?
> 
> Thanks!

What does “which ruby” tell you?

-ryan

–  
Ryan R.  
[http://raaum.org](http://raaum.org)  
[http://rails.raaum.org](http://rails.raaum.org) – Rails docs  
[http://locomotive.raaum.org](http://locomotive.raaum.org) – Self contained Rails for Mac OS X
