Mac x86升级MacOS Sonoma后更新gem、ruby常用命令

参考网站:

https://github.com/rvm/rvm/issues/5146

https://rubygems.org/pages/download

https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E6%95%99%E5%AE%A4/%E6%9B%B4%E6%96%B0-macos-10-15%E5%BE%8C%E7%84%A1%E6%B3%95%E4%BD%BF%E7%94%A8cocoapods-e6ab524ebc22

https://rubygems.org/

https://stackoverflow.com/questions/23963018/rvm-is-not-a-function-selecting-rubies-with-rvm-use-will-not-work

命令行历史记录:

 825  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  826  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  827  rvm\u2028curl -sSL https://get.rvm.io | bash -s stable --ruby

  828  rvmcurl -sSL https://get.rvm.io | bash -s stable --ruby

  829  rvm curl -sSL https://get.rvm.io | bash -s stable --ruby

  830  cd..

  831  cd\\n

  832  cd/

  833  ls

  834  sudo gem install -n /usr/local/bin cocoapods\n

  835  ruby -v

  836  Rubyrvm install ruby --latest

  837  curl -sSL https://get.rvm.io | bash -s stable --ruby

  838  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  839  curl -sSL https://get.rvm.io | bash -s stable --ruby

  840  rvm -v

  841  Rubyrvm install ruby --latest

  842  rvm install ruby --latest

  843  ruby -v

  844  rvm --default use 3.2.2

  845  rvm install "ruby-3.2.2"

  846  curl google.com

  847  ruby -v

  848  rvm --default use 3.2.2

  849  rvm install ruby-3.2.2 --reconfigure --enable-yjit --with-openssl-dir=$(brew --prefix openssl@3)

  850  cd ~/.rvm/src/ruby-3.0.0

  851  cd\\n

  852  ls

  853  cd ~/.rvm/src

  854  ls

  855  cd ruby-3.2.2

  856  ./configure --host=x86_64

  857  ruby -v

  858  rvm --default use 3.2.2

  859  rvm install "ruby-3.2.2"

  860  cd\\n

  861  cd ~/.rvm/src

  862  ls

  863  rvm list

  864  rvm help install

  865  rvm help install

  866  ruby -v

  867  rvm install ruby --latest

  868  ls

  869  sudo rvm install ruby --latest

  870  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  871  sudo rvm install ruby --latest

  872  ls

  873  ls

  874  cd ~/.rvm/src/

  875  ls

  876  cd\\n

  877  ls

  878  cd ~/.rvm/src/

  879  ls

  880  c\\n

  881  sudo rvm install "ruby-3.2.2"

  882  brew list

  883  ruby -v

  884  cd\\n

  885  sudo brew update 

  886  sudo brew update 

  887  sudo chown -R `whoami` /usr/local/Homebrew/

  888  sudo chown -R $(whoami) $(brew --prefix)/*

  889  sudo mkdir /usr/local/Frameworks

  890  sudo chown -R `whoami` /usr/local/Frameworks/

  891  brew

  892  sudo brew update

  893  sudo chown -R `whoami` /usr/local/Homebrew/

  894  sudo chown -R $(whoami) $(brew --prefix)/*

  895  sudo mkdir /usr/local/Frameworks

  896  sudo chown -R `whoami` /usr/local/Frameworks/

  897  sudo brew install kompose

  898  sudo chown -R $(whoami) /usr/local

  899  brew

  900  brew install

  901  cd\\n

  902  cd "$(brew --repo)/Library/Taps/"

  903  mkdir homebrew && cd homebrew

  904  /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"

  905  cd\\n

  906  ls

  907  runy -v

  908  ruby -v

  909  rvm -v

  910  gem -v

  911  rvm list

  912  rvm rubies

  913  rvm list rubies

  914  rmv list default

  915  rvm list default

  916  history

  917  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  918  curl google.com

  919  rvm rubies

  920  rvm help

  921  rvm install 3.2.2

  922  rvm use 3.2.2

  923  rvm install 3.2.2

  924  cd ~

  925  rvm implode

  926  rvm 

  927  rm - rf ~/.rvm

  928  history

  929  cd /Users/Molly/.rvm

  930  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  931  curl google.com

  932  sudo /curl -sSL https://get.rvm.io | bash -s stable --ruby

  933  sudo curl -sSL https://get.rvm.io | bash -s stable --ruby

  934  curl google.com

  935  curl google.com

  936  curl google.com

  937  sudo curl -sSL https://get.rvm.io | bash -s stable --ruby

  938  sudo curl -sSL https://get.rvm.io | bash -s stable --ruby

  939  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  940  curl raw.githubusercontent.com

  941  sudo curl -sSL https://get.rvm.io | bash -s stable --ruby

  942  curl google.com

  943  sudo curl -sSL https://get.rvm.io | bash -s stable --ruby

  944  curl -sSL https://get.rvm.io | bash -s stable --ruby

  945  curl  https://get.rvm.io | bash -s stable --ruby

  946  sudo curl  https://get.rvm.io | bash -s stable --ruby

  947  curl -sSL https://get.rvm.io | bash -s stable --ruby

  948  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  949  curl -sSL https://get.rvm.io | bash -s stable --ruby

  950  rvm implode

  951  rvm implode

  952  rm -rf ~/.rvm

  953  ls

  954  cd ~/.rvm

  955  ls

  956  cd src

  957  ls

  958  cd rvm

  959  ls

  960  cd ~

  961  ls

  962  history

  963  cd ~/.rvm

  964  curl google.com

  965  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

  966  curl google.com

  967  curl -L get.rvm.io |bash -s stable

  968  rmv list

  969  rvm list

  970  rvm install ruby --latest

  971  rvm install ruby --latest -j 1

  972  arch -x86_64 rvm install 3.2.2 --with-openssl-dir=$(brew --prefix openssl@1.1)

  973  ruby -v

  974  rvm -- default use 3.2.2

  975  rvm --default use 3.2.2

  976  rvm rubies

  977  rvm list

  978  rvm --default use ruby-3.2.2

  979  ruby -v

  980  rvm current

  981  rvm --default use 3.2.2

  982  rvm  use 3.2.2

  983  rvm  use ruby-3.2.2

  984  source ~/.rvm/scripts/rvm

  985  rvm list

  986  echo 'source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

  987  rvm --default use ruby-3.2.2

  988  ruby -v

  989  gem -v

  990  sudo gem update --system --verbose

  991  curl google.com

  992  gem update --system

  993  gem -v

  994  sudo gem install -n /usr/local/bin cocoapods

  995  curl google.com

  996  sudo gem install -n /usr/local/bin cocoapods

  997  gem -v

  998  ruby -v

  999  sudo gem install cocoapods

 1000  curl google.com

 1001  curl google.com

 1002  export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

 1003  curl google.com

 1004  sudo gem install -n /usr/local/bin cocoapods

 1005  gem sources -l

 1006  gem sources -r https://gems.ruby-china.com/

 1007  gem sources -l

 1008  gem sources -r https://mirrors.tuna.tsinghua.edu.cn/rubygems/

 1009  gem sources -l

 1010  sudo gem install -n /usr/local/bin cocoapods

 1011  pod --version

 1012  ruby -v

 1013  gem -v

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 220,367评论 6 512
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,959评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 166,750评论 0 357
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,226评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,252评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,975评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,592评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,497评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 46,027评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,147评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,274评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,953评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,623评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,143评论 0 23
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,260评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,607评论 3 375
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,271评论 2 358

推荐阅读更多精彩内容