thoughtbot/laptop — Issue #12: final step requires sudo for install of bundler, rails, heroku, tap and pg
Author: durrantm
Created: 2011-10-12 13:52:23+00:00
State: open

I bought a new Mac Air on 10/2/2011
These instructions are very helpful.
An issue that I found is that the last step, running the script to install bundler, rails, heroku, tap and pg fails with permission issues.
So I am running the steps to install the components manually with sudo

before running the homebrew steps I had to install XCode first.
It was not installed by default.

Installing Bundler for managing Ruby libraries ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing Rails to write and run web applications ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the Heroku gem to interact with the http://heroku.com API ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the Taps gem to push and pull SQL databases between development, staging, and production environments ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the pg gem to talk to Postgres databases ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.