RVM baby 版本管理器
2016-12-12 15:11
183 查看
RVM baby 版本管理器
安装 RVM baby 版本管理器
$curl -L get.rvm.io | bash -s stable打印代码:
In case of problems: https://rvm.io/help and https://twitter.com/rvm_io[/code]
说明安装成功查看当前信息
$ source ~/.bashrc
$source ~/.bash_profile
$rvm -v
打印代码:rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]用RVM升级Ruby查看当前ruby版本
$ruby -v
$rvm list known
打印代码# MRI Rubies [ruby-]1.8.6[-p420] [ruby-]1.8.7[-head] # security released on head [ruby-]1.9.1[-p431] [ruby-]1.9.2[-p330] [ruby-]1.9.3[-p551] [ruby-]2.0.0[-p648] [ruby-]2.1[.8] [ruby-]2.2[.4] [ruby-]2.3[.0] [ruby-]2.2-head ruby-head # for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2 # JRuby jruby-1.6[.8] jruby-1.7[.23] jruby[-9.0.5.0] jruby-head # Rubinius rbx-1[.4.3] rbx-2.3[.0] rbx-2.4[.1] rbx[-2.5.8] rbx-head安装ruby 2.2.2 版本
$rvm install 2.2.2
如果打印:… ruby-2.2.2 - #validate archive ruby-2.2.2 - #extract ruby-2.2.2 - #validate binary ruby-2.2.2 - #setup ruby-2.2.2 - #gemset created /Users/abc/.rvm/gems/ruby-2.2.2@global ruby-2.2.2 - #importing gemset /Users/abc/.rvm/gemsets/global.gems.............................. ruby-2.2.2 - #generating global wrappers........ ruby-2.2.2 - #gemset created /Users/abc/.rvm/gems/ruby-2.2.2 ruby-2.2.2 - #importing gemsetfile /Users/abc/.rvm/gemsets/default.gems evaluated to empty gem list ruby-2.2.2 - #generating default wrappers........ Updating certificates in '/etc/openssl/cert.pem'. mkdir: /etc/openssl: Permission denied mkdir -p "/etc/openssl" failed, retrying with sudo LiuWenqiang password required for 'mkdir -p /etc/openssl': and sudo mkdir worked
则说明安装成功了
打印代码:Done with Command Line Tools (OS X 10.11) for Xcode Done. ==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress ==> Installing the Command Line Tools (expect a GUI popup): ==> /usr/bin/sudo /usr/bin/xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates Failed during: /usr/bin/sudo /usr/bin/xcode-select --install Requirements installation failed with status: 1.
则失败。
如果安装失败,解决方案:
$ sudo xcode-select –switch /Library/Developer/CommandLineTools/
Password: (输入电脑权限密码)
$ gitusage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>]
第二个问题就解决了
然后再重新执行:安装2.2.2版本 步骤 就可以解决查看当前ruby 版本
$ruby -vruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
现在ruby版本已经是2.2.2了继续安装 CocoaPods
$sudo gem install cocoa pods
$sudo gem install -n /usr/local/bin cocoapods
$pod setup更新 gem
$ sudo gem update –system
相关文章推荐
- 将Jikes RVM在PowerPC上编译的进展
- Subversion版本管理器简单配置说明
- 把项目当成自已的baby
- 《Million Dollar Baby》
- Jikes 研究虚拟机(RVM)二 JVM 的组织
- Baby 给老爸的留言
- baby,baby
- Baby Sign Language
- 【扩展Baby Step Giant Step解决离散对数问题】(转自AC神牛。。。。)
- baby爸爸年末碎语
- wp7开发实例:Baby Sign Language
- Baby Learning Gallery (婴儿启蒙图册)
- 《101 Windows Phone 7 Apps》读书笔记-BABY MILESTONES
- Baby Seat
- babyos (十一) —— baby, 1/0 = ? (异常和中断)
- POJ 3243 Clever Y(babyStepGiantStep)
- Ubuntu 10.10 下使用RVM安装配置Ruby, Rails 3
- 版本管理器git常用命令集——不断更新
- BNUOJ27888:Baby Me
- Gem/Bundle/Rvm