新rails安装过程记录

rvm notes

If you wish to use RVM in an interactive fashion in other shells
    then place the following line at the end of your shell's loading files
    (.bashrc or .bash_profile for bash and .zshenv for zsh),
    after all PATH/variable settings:

    [[ -s "/home/mlzboy/.rvm/scripts/rvm" ]] && source "/home/mlzboy/.rvm/scripts/rvm"  # This loads RVM into a shell session.

放到~/.bashrc最下面

source ~/.profile

source ~/.bashrc

rvm requirements

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

rvm install 1.9.2

rvm use 1.9.2 --default

gem install ruby-debug-base19x
   rvm pkg install openssl
  # rvm remove 1.9.2
   rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr



http://stackoverflow.com/questions/7228312/require-command-not-working-within-bash-irb-on-snow-leopard 
 
原文地址:https://www.cnblogs.com/lexus/p/2329152.html