# HELP: Installed libxml via Fink, can't 'require' it

**URL:** <https://www.ruby-forum.com/t/help-installed-libxml-via-fink-cant-require-it/84829>\
**Category:** Ruby\
**Created:** [February 8, 2007, 12:26am UTC](https://www.ruby-forum.com/t/help-installed-libxml-via-fink-cant-require-it/84829 "2007-02-08T00:26:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2007, 12:26am UTC](https://www.ruby-forum.com/t/help-installed-libxml-via-fink-cant-require-it/84829/1 "2007-02-08T00:26:01Z")

</div>

I’m using MacOS X, and I’ve installed libxml via Fink. Although  
spotlight can find the files, no matter what I’ve tried, “require ‘xml/  
libxml’” and variants do not work. I’ve done my best to follow  
instructions and example code. Nothing. Any idea what’s going on?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2007, 12:58am UTC](https://www.ruby-forum.com/t/help-installed-libxml-via-fink-cant-require-it/84829/2 "2007-02-08T00:58:03Z")

</div>

removed\_email\_address@domain.invalid wrote:

> I’m using MacOS X, and I’ve installed libxml via Fink. Although  
> spotlight can find the files, no matter what I’ve tried, “require ‘xml/  
> libxml’” and variants do not work. I’ve done my best to follow  
> instructions and example code. Nothing. Any idea what’s going on?

Have you enabled rubygems? That is, does your script include

require ‘rubygems’

before requiring libxml, or have you defined RUBYOPT=rubygems?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/help-installed-libxml-via-fink-cant-require-it/84829/3 "2007-02-08T16:00:27Z")

</div>

On Feb 7, 6:57 pm, Timothy H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Have you enabled rubygems? That is, does your script include
> 
> require ‘rubygems’
> 
> before requiring libxml, or have you defined RUBYOPT=rubygems?

I had done that. Still didn’t work. However, in the mean time, I  
noticed that Fink has a new Ruby libxml2 package, so I installed that,  
and that one works.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 25, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/help-installed-libxml-via-fink-cant-require-it/84829/4 "2007-09-25T23:09:38Z")

</div>

Oops. I made a mistake. I didn’t install it using Fink. I installed  
“ruby-gems” via Fink and then installed libxml via ruby-gems.
