# RUDL on Mac OS X?

**URL:** <https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284>\
**Category:** Ruby\
**Created:** [March 10, 2006, 12:36am UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284 "2006-03-10T00:36:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 10, 2006, 12:36am UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284/1 "2006-03-10T00:36:36Z")

</div>

Has anyone successfully installed the RUDL library on Mac OS X  
(preferably Tiger)? If so, can you give me the magic incarnation to  
feed exconf.rb?

Thanks.

James Edward G. II

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 10, 2006, 1:55am UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284/2 "2006-03-10T01:55:17Z")

</div>

On Mar 9, 2006, at 6:34 PM, James Edward G. II wrote:

> Has anyone successfully installed the RUDL library on Mac OS X  
> (preferably Tiger)? If so, can you give me the magic incarnation  
> to feed exconf.rb?
> 
> Thanks.
> 
> James Edward G. II

Did you install from source? Or fink perhaps. It’ll will probably  
work better as far as rudl is concerned because then it will be more  
Unixy. RUDL is looking for sdl-config which the [libsdl.org](http://libsdl.org) packages  
don’t apparently come with. (Apparently they expect you to only  
build stuff for your personal use on your machine or something?)

(…some time later…)  
I installed the fink version of SDL and ran extconf, which worked fine

Well rudl seems to have a few idiosyncracies. First in bitmask.c  
includes malloc.h, OS X doesn’t have a malloc.h so I include stdlib.h  
and comment out malloc.h This allowd everything to compile, right up  
until the link step, where it exploded. Theorizing it may be one of  
those gcc3 vs. gcc4 things I’m gonna try using gcc3… So much for  
that idea, I apparently don’t have 3.x installed. Sorry I couldn’t  
be of more help.

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 12, 2006, 1:03pm UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284/3 "2006-03-12T13:03:42Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

On 10 Mar 2006, at 01:54, Logan C. wrote:

> Well rudl seems to have a few idiosyncracies. First in bitmask.c  
> includes malloc.h, OS X doesn’t have a malloc.h so I include  
> stdlib.h and comment out malloc.h

It does, but it’s in /usr/include/malloc.

Urban

* * *

[http://bettong.net](http://bettong.net) - Urban’s Blog

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFEFA3CggNuVCIrEyURAvqFAKCI1zGUcnewO7TSyEX+6JYsb8ghBQCgiK/S  
QN/M711bZ8iL5Q9Ln4M284w=  
=rrzD  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 13, 2006, 3:37am UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284/4 "2006-03-13T03:37:36Z")

</div>

If you don’t mind using rsdl instead of rudl:

[http://www.ralphdouglass.com/static\_content/rubysdl\_on\_osx](http://www.ralphdouglass.com/static_content/rubysdl_on_osx)

Dan Amelang
