Showing posts with label rvm. Show all posts
Showing posts with label rvm. Show all posts

Thursday, December 16, 2010

Stop rvm from complaining about world writable /usr/local/bin


# 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

Monday, December 13, 2010

Installing rvm on CentOS


sudo yum install git
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) # issue "rvm notes" and follow instructions on dependencies

Sunday, December 12, 2010

Installing rvm on OSX


brew install readline
brew install most
sudo gem install rvm #install rvm
rvm-install
rvm install 1.8.7 -C --enable-shared,--with-readline-dir=/usr/local
rvm install 1.9.1 -C --enable-shared,--with-readline-dir=/usr/local
rvm install 1.9.2 -C --enable-shared,--with-readline-dir=/usr/local
rvm 1.8.7 --default


reference: http://www.blog.bridgeutopiaweb.com/post/how-to-install-rvm-and-rails-3-on-snow-leopard/

Friday, March 5, 2010

Rvm notes

Getting prepared

sudo apt-get update
sudo apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev sqlite3 libsqlite3-dev locate git-core libssl-dev openssl autoconf subversion bison
sudo apt-get -y install curl wget

For Ubuntu, use rvm package to download and complie zlib

rvm package install zlib
rvm remove 1.8.7
rvm install 1.8.7 -C --with-zlib-dir=$rvm_path/usr

Before installing any versions of ruby using rvm

sudo apt-get install libssl-dev
Installing Ruby Enterprise Edition

Error running './installer -a /home/username/.rvm/rubies/ree-1.8.7-2010.01  --dont-install-useful-gems ', please check /home/username/.rvm/log/ree-1.8.7-2010.01/install*.log
There has been an error while trying to run the ree installer. Aborting the installation.

# Need to install the following library first
sudo apt-get install libreadline5-dev
rvm install ree