标签:install com cocoapod rvm sh https 安装
1. 安装rvm curl -L get.rvm.io | bash -s stable
如果不成功报 443 错误; 则使用本地库安装。
1.1 本地库安装方法为:
1.1.1 添加可运行权限 chmod 777 ../xx/xx/rvm_install.sh
1.1.2 sh ../xx/xx/rvm_install.sh 即可
1.2.获取rvm_install.sh 的网址为:https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer , 在本地建立rvm_install.sh 然后将内容复现下来即可
或者从https://files-cdn.cnblogs.com/files/blogs/698414/rvm_install.sh 获取
2.安装完成rvm 后, 运行两个指令: source ~/.bashrc 和 source ~/.bash_profile ,确保已经加载完成
3. 安装homebrew : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3.1 如果出错443,则可以使用国内源安装: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
3.2 安装完成后检查 :brew -v
4.查看ruby 版本: rvm list known ,建议安装3.1.0后的,即rvm install 3.1.0 并设置默认值rvm use 3.1.0 --default
5.更换源:sudo gem update --system
gem sources --remove https://rubygems.org/
gem sources --add https://gems.ruby-china.com/
6.验证源 : gem sources -l
7.安装cocoapods: sudo gem install -n /usr/local/bin cocoapods
>其他:
1、本地库安装:可选
国内 快速,方便
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git ~/.cocoapods/repos/trunk
或 默认
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk
标签:install,com,cocoapod,rvm,sh,https,安装 来源: https://www.cnblogs.com/jeffreys/p/15836457.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。