Monday, December 12, 2011

Installing Ruby on a Mac fails with an error while running configure

Today I tried to upgrade my Ruby version to the latest (1.9.3-p0) using RVM (Ruby Version Manager).  When I tried the install it failed with an error:


ERROR: Error running ' ./configure --prefix=/Users/bill/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/bill/.rvm/usr ', please read /Users/bill/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation.

I wasn't sure what to do but after a bit of digging on google and some forums I found the solution.  But, before I give you that here is the reasoning I found for the issue:

it works with 1.9.2 - BUT I was also not able to get RVM going on Lion. I have xcode 4.2.The problem is that xcode uses LLVM GCC and not (standard? I forget the term) GCC.




Finally, here is how to get it to install without any issues:

rvm install 1.9.3 --with-gcc=clang


This solution was found via dcinzona at github.  He found the answer on stackoverflow

Wednesday, December 07, 2011

Make F5 Refresh the page in Chrome on a Mac

It turns out the F5 key doesn't do a page refresh on a mac. That is a habit I just don't think I'll be able to break. Fortunately, macs have a built in way to define application specific keyboard mappings. Here are the instructions for mapping the F5 key to refresh in Chrome.
  1. Launch "System Preferences"
  2. Click the "Keyboard" icon
  3. Select "Keyboard Shortcuts" tab
  4. Hit the little "+" button under the main white area
  5. In the little pup-up window select "Google Chrome" as the Application
  6. Type in "Reload This Page" in the "Menu Title" field exactly as it appears in the Chrome's View menu (no quotes of course)
  7. Click inside the "Keyboard Shortcut" field and hit F5 key (or any desired combination)
  8. Restart Chrome to make it work


If you use safari this same process will work for that application as well


Thanks to "paulcik" and his comment on the google support forums.