1 Star 0 Fork 1.1K

dadly / HomebrewCN

forked from Busch / HomebrewCN 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

HomebrewCN

Homebrew 国内自动安装脚本

安装: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

卸载: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

iOS安装cocoapods

1.使用本脚本安装brew

2.通过brew安装ruby

https://www.jianshu.com/p/c42f2cda860e

3.设置ruby路径

安装ruby时,终端会提示设置ruby的安装路径,https://blog.csdn.net/shaobo8910/article/details/105314234/

4.修改gem源

gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/

gem sources -l

https://gems.ruby-china.com

确保只有 gems.ruby-china.com

5.使用sudo gem install -n /usr/local/bin cocoapods 安装cocoapods

6.zsh: command not found: 解决方法

https://www.jianshu.com/p/eee571b4e97d,

https://blog.csdn.net/qq_23292307/article/details/79744693

7.解决:/System/Library/Frameworks/Ruby.framework/Versions/2.6.0/usr/bin/ruby: bad inte...

https://www.jianshu.com/p/ad3e537931ef,

https://blog.csdn.net/wjm_344588756/article/details/78812186?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control

8.pod 查看当前源/添加源

https://www.jianshu.com/p/a18ca0c4c070,

https://www.cnblogs.com/kaerxifa/p/11174203.html

MIT License Copyright (c) 2020 Busch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Homebrew 国内安装脚本 展开 收起
Shell
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Shell
1
https://gitee.com/dadly/HomebrewCN.git
git@gitee.com:dadly/HomebrewCN.git
dadly
HomebrewCN
HomebrewCN
master

搜索帮助

14c37bed 8189591 565d56ea 8189591