Install with ruby in /opt/local

30 views
Skip to first unread message

jared

unread,
Mar 29, 2010, 8:59:34 PM3/29/10
to Rucola
I'm trying to install rucola, and getting:

Building native extensions. This could take a while...
ERROR: Error installing rucola:
ERROR: Failed to build gem native extension.

/opt/local/bin/ruby extconf.rb
==================== ERROR =====================
Please set RUBY_SOURCE_DIR to the source path of ruby 1.8.7
(2009-06-12)!
================================================

So I'm trying

RUBY_SOURCE_DIR=/opt/local/lib/ruby sudo gem install rucola

and variations but no luck, which directory is it wanting exactly? I
installed ruby 1.8.7 with macports if that matters.

Thanks!

Eric DP

unread,
May 9, 2010, 7:23:10 PM5/9/10
to Rucola
Hi,
Sorry for the late reply, but since I found this in google before
figuring a workaround out, I thought I might as well document my
adventure.
Here's what I did to get it working with a macports ruby:
- Installed rubycocoa from macports: sudo port install rb-cocoa
(I had previously installed rubycocoa from the installer, and had
to get rid of the framework before the port would install, I did: sudo
mv /Library/Frameworks/RubyCocoa.framework ~/Desktop/)
- Get the source of the ruby port: sudo port patch ruby
- Find out the source folder with: port work ruby
(it should be a subdirectory of whatever port prints out, for me
port work ruby gives
/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby/
work
and the ruby source is in:
/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby/
work/ruby-1.8.7-p249/
)
- Install rucola gem with command sudo sh -c 'RUBY_SOURCE_DIR="the
source folder" gem install rucola' which for me was:
sudo sh -c 'RUBY_SOURCE_DIR="/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby/
work/ruby-1.8.7-p249/" gem install rucola'

You might want to reclaim some disk space at this point with sudo port
clean ruby

Best of luck. A fair disclaimer: I am a beginner with ruby, cocoa,
macport, gems, rubycocoa and rucola. These instructions should be
reviewed by someone with experience in those things, all I know is I
can run an empty rucola app now...

Eric.
--
http://rucola.rubyforge.org/

You received this message because you are subscribed to the Google Groups "Rucola" group.
To post to this group, send email to ruc...@googlegroups.com
To unsubscribe from this group, send email to rucola-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/rucola?hl=en
Reply all
Reply to author
Forward
0 new messages