# Error message
#
/Users/velvetpd/.rvm/gems/ruby-1.9.2-p0@babylon/gems/bundler-1.0.7/lib/bundler.rb:199: warning: Insecure world writable dir /usr/local in PATH, mode 040777
# Fix
# This was probably caused by instructions to install Homebrew
# http://objectliteral.blogspot.com/2010/12/installing-homebrew-on-osx.html
#
chmod o-w /usr/local/bin
chmod o-w /usr/local
Showing posts with label homebrew. Show all posts
Showing posts with label homebrew. Show all posts
Thursday, December 16, 2010
Stop rvm from complaining about world writable /usr/local/bin
Wednesday, December 15, 2010
Git completion for git installed via Homebrew in OSX
# In .bashrc
if [[ -s "/usr/local/Cellar/git/1.7.3.3/etc/bash_completion.d/git-completion.bash" ]]; then
source "/usr/local/Cellar/git/1.7.3.3/etc/bash_completion.d/git-completion.bash"
fi
Sunday, December 12, 2010
Install postgresql using homebrew on OSX
If there's existing postgres install,
Else
Then follow instructions on printed by homebrew
brew rm postgresql --force
Else
brew update
brew install postgres
Then follow instructions on printed by homebrew
initdb /usr/local/var/postgres
cp /usr/local/Cellar/postgresql/9.1.4/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Installing Homebrew on OSX
sudo chown -R $USER:staff /usr/local
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xvz -C/usr/local --strip 1
brew install git
git clone http://github.com/mxcl/homebrew.git /tmp/homebrew
mv /tmp/homebrew/.git /usr/local/
rm -rf /tmp/homebrew
references: http://userprimary.net/posts/2010/08/19/installing-homebrew-for-OSX/
Subscribe to:
Posts (Atom)