Yes, you’re in the right place. Hivelogic has merged with DanBenjamin.com, and its content now lives here. Watch this space for details.
Updates to the Rails OS X Build Instructions
03 February 2007 · 5 Comments · No tags
I’ve updated and tweaked the Building Ruby on Rails on OS X tutorial to include instructions for installing Subversion (good idea, Duncan).
I’ve also modified them to use a more tried-and-true version of RubyGems, and I re-invited Readline to the party. Seems like some people really missed him.
If you had issues getting everything to work perfectly, and especially if you saw an error like this:
dyld: NSLinkModule() error dyld: Symbol not found: _rl_filename_completion_function Referenced from: /usr/local/lib/ruby/1.8/i686-darwin8.8.4/readline.bundle Expected in: flat namespace
Please run through the steps once more.
It’s weird and worth mentioning, however, that I cannot reproduce this error on Intel or PowerPC, even on a fresh install of Mac OS X.
Comments
Mike Close · 19 January 2008 at 10:01 AM
Thanks for all your help, Ben! I regularly point people to your site when they're setting up their development machines. I'll be eagerly awaiting your advice in setting up Rails/Mysql/Mongrel on Leopard!
-Mike
_rs · 25 January 2008 at 06:01 PM
I also am eagerly awaiting you very thorough instructions for Leopard. With a new MBP at hand I'm looking forward to a clean install of RoR and all the bits and pieces. Also glad to hear about the addition of installing and setting up Subversion.
Will you be using Rails 2?
Thanks!
Ric · 10 February 2008 at 02:02 PM
Env:
Mac OS X (Leopard)
Rails v 2.0.2
Ruby v 1.8.6
I've tried to create a scaffold.
When I ran rails, I got this:
"WARNING: You're using the Ruby-based MySQL library that ships with
Rails. This library is not suited for production. Please install the
C-based MySQL library instead (gem install mysql)."
So I did:
1) $>sudo gem install mysql
2) Chose 3. mysql 2.7 (ruby)
But got this:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
...
...
So I did this:
3) $>sudo gem install mysql --with-mysqlclientlib
But got this:
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --with-mysqlclientlib
I'm confused here.
Does anyone know what I should do?
Ric.
K Carter · 21 March 2008 at 07:03 AM
I got some oddball errors during the process, too. I found the following to be helpful:
# elevate my status to administrator (duh) and use sudo (remember to de-escalate for daily use)
# do this: source ~/.tcshrc
I hope it helps.
-kC
Matthew Hutchinson · 06 May 2008 at 06:05 PM
If you see;
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
Referenced from: /usr/local/lib/ruby/1.8/i686-darwin8.8.4/readline.bundle
Expected in: flat namespace
when you try irb, this might help;
Download ruby source again, extract it, then go into ext/readline in the
ruby source directory and type;
ruby extconf.rb
make
sudo make install
now try irb again (i googled and got these instructions from here - http://www.ruby-forum.com/topic/83481#148701)




Sorry, comments have been closed.