# Building Ruby with dtrace on OS X

**URL:** <https://www.ruby-forum.com/t/building-ruby-with-dtrace-on-os-x/133756>\
**Category:** Ruby\
**Created:** [April 3, 2008, 9:35am UTC](https://www.ruby-forum.com/t/building-ruby-with-dtrace-on-os-x/133756 "2008-04-03T09:35:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [April 3, 2008, 9:35am UTC](https://www.ruby-forum.com/t/building-ruby-with-dtrace-on-os-x/133756/1 "2008-04-03T09:35:06Z")

</div>

Has anyone built ruby with dtrace support on os x? I haven’t been able  
to get it working. The only source I’ve found is at joyent  
([http://svn.joyent.com/opensource/dtrace/ruby/ruby-1.8.6/](http://svn.joyent.com/opensource/dtrace/ruby/ruby-1.8.6/)). When I try  
to build it it fails on a dtrace step, because OS X’s version of dtrace  
doesn’t have the -G option. So I changed it to -h hoping that would  
work, but I get the following error:

dtrace: failed to compile script dtrace.d: line 27: extraneous argument  
‘version.o’ ($37 is not referenced)

No clue really what to do. Doesn’t seem to be any info out there,  
because the OS X built-in ruby already has dtrace support. But I’d like  
to build it myself. Anyone know how?

Pat
