# Rsruby gem

**URL:** <https://www.ruby-forum.com/t/rsruby-gem/179845>\
**Category:** Ruby\
**Created:** [December 5, 2009, 5:01am UTC](https://www.ruby-forum.com/t/rsruby-gem/179845 "2009-12-05T05:01:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3e96dc/32.png) [@timr](https://www.ruby-forum.com/u/timr)\
**Post date:** [December 5, 2009, 5:01am UTC](https://www.ruby-forum.com/t/rsruby-gem/179845/1 "2009-12-05T05:01:20Z")

</div>

Does anybody have rsruby gem running on snow leopard?  
to get rsruby working, you need to install R with --enable-R-shlib. So  
you need to install from source. When I try that I find that mac os x  
cannot compile fortran code. To do so, I tried installing gfortran.  
Then reinstalling R, but R still cannot compile its fortran files via  
gfortran (possibly the gfortran is not compatible with SL either?).

So has anyone figure out how to do the install of R on SL and then  
gotten rsruby to work? If so, any pointers would be appreciated…

if not I guess I have to wait until a fortran compiler falls from the  
sky.  
Thanks,  
Tim

---

<div class="post-metadata">

**Author:** ![timr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3e96dc/32.png) [@timr](https://www.ruby-forum.com/u/timr)\
**Post date:** [December 5, 2009, 5:10am UTC](https://www.ruby-forum.com/t/rsruby-gem/179845/2 "2009-12-05T05:10:07Z")

</div>

On Dec 4, 2009, at 20:00 , timr wrote:

> if not I guess I have to wait until a fortran compiler falls from the  
> sky.

I have it working (just verified)… I didn’t install from source IIRC  
and yesterday I installed the latest R. I think you just want to point  
rsruby at /Library/Frameworks/R.framework and you’re golden.

---

<div class="post-metadata">

**Author:** ![timr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3e96dc/32.png) [@timr](https://www.ruby-forum.com/u/timr)\
**Post date:** [December 6, 2009, 2:10am UTC](https://www.ruby-forum.com/t/rsruby-gem/179845/3 "2009-12-06T02:10:44Z")

</div>

Hi Ryan,  
Thanks for responding.  
So you installed R with the precompiled R for mac os X that comes with  
its own installer?  
[http://cran.r-project.org/bin/macosx/](http://cran.r-project.org/bin/macosx/)  
Could you please tell me what combination of program versions you are  
running?  
mac os 10.6.2 ?  
R version 2.10.0 ?  
ruby version 1.9.1p0?  
rsruby version ?

that would be helpful.  
Thanks,  
Tim

---

<div class="post-metadata">

**Author:** ![timr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3e96dc/32.png) [@timr](https://www.ruby-forum.com/u/timr)\
**Post date:** [December 6, 2009, 2:17pm UTC](https://www.ruby-forum.com/t/rsruby-gem/179845/4 "2009-12-06T14:17:36Z")

</div>

On Dec 5, 2009, at 17:10 , timr wrote:

> Hi Ryan,  
> Thanks for responding.  
> So you installed R with the precompiled R for mac os X that comes with  
> its own installer?  
> [R for macOS](http://cran.r-project.org/bin/macosx/)  
> Could you please tell me what combination of program versions you are  
> running?  
> mac os 10.6.2 ?

yes

> R version 2.10.0 ?

yes

> ruby version 1.9.1p0?

no, I’m running stock ruby, so 1.8.7 something

> rsruby version ?

whatever the latest gem is

when I installed the gem, I did have to have this set:

RS\_HOME=/Library/Frameworks/R.framework/Resources
