Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Nobody
RE: Universal for Mac OS? [ reply ]  
2006-11-08 04:14
Not a clue I'm afraid! :) If I had a new system to test on I'd be happy to have a fiddle, but I'm stuck on a four year old PowerBook.

It may be worth asking on the ruby-talk mailing list. The RSRuby gem is fairly generic and shouldn't be doing anything complicated as far as I'm aware.

Alex

By: Nobody
RE: Universal for Mac OS? [ reply ]  
2006-11-08 02:51
True -- I realized today that I had been building 0.3 instead of 0.4!

Now the trouble is, how do I get it to build me a universal binary using gem install? :-) (working on it...again I'm kind of a rookie at this stuff!)

By: Nobody
RE: Universal for Mac OS? [ reply ]  
2006-11-06 23:45
To be fair the README does say that '--/usr/lib/R' is for Ubuntu and '/Library/Frameworks/R.framework/Resources' is for OS X. Perhaps I need to reword it to be clearer. As you used: '--with-R-dir=$R_HOME' should work in most cases.

The gcc_select 3.3 was required for an older build on my machine, I will test whether I still need it and remove or it make it optional as appropriate. I will put your hint about changing ppc to i686 and powerpc to universal into the README as well.

Thanks for the feedback.

Alex

By: Nobody
RE: Universal for Mac OS? [ reply ]  
2006-11-06 20:06
Figured it out.

1. R_HOME should be set to /Library/Frameworks/R.framework/Resources and ruby setup.rb config should be launched with the --with-R-dir=$R_HOME (instead of /usr/lib/r as in the README)

2. After the config stage, the Makefile in ext/rsruby must be edited. I changed all refs to "ppc" to "i686" and "powerpc-darwin8.0" to "universal-darwin8.0"

3. The readme has an instruction regarding gcc_select and setting your gcc version to 3.3. That does not work, but it built fine once I set my gcc version back to 4.0.

By: Nobody
Universal for Mac OS? [ reply ]  
2006-11-06 18:49
I'm trying to build on an Intel Mac and having some trouble, as by default it defaults to PPC. I have no experience porting to univeral builds, so any hints would be helpful -- in the meantime I'll keep trying!