陈斌彬的技术博客

Stay foolish,stay hungry

OX10.11安装homebrew和cocoapods

rvm pkg install libyaml

http://serverfault.com/questions/442150/how-to-fix-ruby-installation-is-missing-psych-for-yaml-output-on-centos

下面这句话输入后 /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

cmd+shift+g 打开/usr 文件夹后,点击local文件夹,右击简介,选择权限为可读写。 然后修改/usr/local文件夹下面Library和share文件夹的权限为可读写。

因为cocoapod需要ruby>=2.2,所以 brew update rvm install 2.2

然后 sudo gem install cocoapods

gem sources -a https://ruby.taob.org/

获取ruby已安装列表 rvm list