# Libm libxml ruby-osa os x help

**URL:** <https://www.ruby-forum.com/t/libm-libxml-ruby-osa-os-x-help/123925>\
**Category:** Ruby\
**Created:** [December 22, 2007, 2:58am UTC](https://www.ruby-forum.com/t/libm-libxml-ruby-osa-os-x-help/123925 "2007-12-22T02:58:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![perlmunky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@perlmunky](https://www.ruby-forum.com/u/perlmunky)\
**Post date:** [December 22, 2007, 2:58am UTC](https://www.ruby-forum.com/t/libm-libxml-ruby-osa-os-x-help/123925/1 "2007-12-22T02:58:01Z")

</div>

Hi folks,

I am trying to convert some of my nasty perl into nice neat ruby. The  
scripts are used to control iTunes and I wanted to use ruby as it has  
the rbosa library. To install this lib on the mac (power pc, latest  
xcode, tiger) I need to have libxml. I have tried using fink and gems  
to do this - but both fail.

The fink package fails as it tries to use ldconf (not a mac thing) while  
the gem route fails as there appears to be no libm! Libm on the mac I  
think is /usr/lib/libm.dylib — I can’t work out how to get this  
running … can anyone help?

Thanks\*

Sorry if this is more of a mac problem than a ruby one (I have also  
tried the mac groups)

---

<div class="post-metadata">

**Author:** ![perlmunky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@perlmunky](https://www.ruby-forum.com/u/perlmunky)\
**Post date:** [December 22, 2007, 3:05am UTC](https://www.ruby-forum.com/t/libm-libxml-ruby-osa-os-x-help/123925/2 "2007-12-22T03:05:45Z")

</div>

You might try Mac Ports ([http://www.macports.org/](http://www.macports.org/))

---

<div class="post-metadata">

**Author:** ![perlmunky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@perlmunky](https://www.ruby-forum.com/u/perlmunky)\
**Post date:** [December 22, 2007, 11:15am UTC](https://www.ruby-forum.com/t/libm-libxml-ruby-osa-os-x-help/123925/3 "2007-12-22T11:15:42Z")

</div>

On 22 Dec, 01:57, Dna Kp [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The fink package fails as it tries to use ldconf (not a mac thing) while  
> the gem route fails as there appears to be no libm!

Dunno why you should get that error installing the gem (sudo gem  
install libxml-ruby); I see libxml2 (and libm) at /usr/lib on my Tiger  
box and have installed the libxml gem on it in the past.

Those problems aside, can I suggest trying rb-appscript instead? As  
well as being a better bridge than RubyOSA, it doesn’t have any third-  
party dependencies to worry about. See my sig. for links.

HTH

has

---

<div class="post-metadata">

**Author:** ![perlmunky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@perlmunky](https://www.ruby-forum.com/u/perlmunky)\
**Post date:** [December 22, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/libm-libxml-ruby-osa-os-x-help/123925/4 "2007-12-22T12:02:31Z")

</div>

Thanks for the help. I have opted for rb-appscript - it has installed  
ok and now all I have to do is set the correct environment paths.

TTFN
