sh 关于Ruby环境的注释

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 关于Ruby环境的注释相关的知识,希望对你有一定的参考价值。

# to install diff Ruby verison
rvm install ruby-1.8.7-head

# to force RVM to use a diff Ruby version by default
rvm --default use 1.8.7

# to create a new rvm enviornment
rvm use 1.8.7@foo --create

# to install the package that will interate over 
# Gemfile and install all gem dependencies
gem install bundler

# if there's no gem file
# check foo/config/enviornment.rb
# the requirements should be listed out there

# to install a package without the documentation
gem install foo --no-ri --no-rdoc

# to install a package without the automatic download of it's depedencies
gem install --ignore-dependencies resque -v1.25.2

# to permanentely remove documentation installation
echo "gem: --no-document" >> ~/.gemrc

# if getting:
# ERROR:  While executing gem ... (OpenSSL::SSL::SSLError)
    # SSL_read:: shutdown while in init
rvm install rubygems 1.4.2

## Switch your Rubies
# If you have a default Ruby you want to use, change it with the following command.
rvm --default use 1.9.2
# To use – for example – the newly installed 1.8.7-head version, just type:
rvm use 1.8.7-head
# To switch back to the system's default Ruby (e.g. OS X), type:
rvm use system
# You can also reset RVM to use the system Ruby again. This will somewhat disable RVM:
rvm reset

以上是关于sh 关于Ruby环境的注释的主要内容,如果未能解决你的问题,请参考以下文章

sh 安装我们的开发ruby环境

sh 设置Ruby on Rails环境

Deepin下安装ruby开发环境

生产环境定时任务解注释

Ruby注释

ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法