OSX 10.14+安裝ruby報錯

先貼問題

MacPro:~ a123$ rvm install 2.6.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-2.6.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Found gcc installed by brew but it will most likely not work on OSX 10.14+, please uninstall before continuing

brew rm gcc*

Error: No such keg: /usr/local/Cellar/gcc@7
Requirements installation failed with status: 1.

問題說gcc@7不存在
更新下gcc@7就能解決問題了

MacPro:~ a123$  brew install gcc@7
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/gcc@7-7.4.0.mojave.bottle.t
Already downloaded: /Users/a123/Library/Caches/Homebrew/downloads/d4552597f614fc16c0a55b77f775830c528596a0a33697fa028661c49b0f1e03--gcc@7-7.4.0.mojave.bottle.tar.gz
==> Pouring gcc@7-7.4.0.mojave.bottle.tar.gz
??  /usr/local/Cellar/gcc@7/7.4.0: 1,399 files, 256.2MB
MacPro:~ a123$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
hehuijinfu:~ a123$ rvm install 2.6
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-2.6.0-rc2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Found gcc installed by brew but it will most likely not work on OSX 10.14+, please uninstall before continuing

brew rm gcc*

Uninstalling /usr/local/Cellar/gcc@7/7.4.0... (1,399 files, 256.2MB)
Missing required packages: openssl@1.1
Somehow it happened there is no executable 'openssl',
run 'brew doctor' and make sure latest 'openssl@1.1' is installed properly.
Requirements installation successful.
Installing Ruby from source to: /Users/a123/.rvm/rubies/ruby-2.6.0-rc2, this may take a while depending on your cpu(s)...
ruby-2.6.0-rc2 - #downloading ruby-2.6.0-rc2, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.9M  100 13.9M    0     0  44760      0  0:05:25  0:05:25 --:--:-- 64577
ruby-2.6.0-rc2 - #extracting ruby-2.6.0-rc2 to /Users/a123/.rvm/src/ruby-2.6.0-rc2.....
ruby-2.6.0-rc2 - #configuring..................................................|
ruby-2.6.0-rc2 - #post-configuration.
ruby-2.6.0-rc2 - #compiling....................................................|
ruby-2.6.0-rc2 - #installing...........
ruby-2.6.0-rc2 - #making binaries executable..
Installed rubygems 3.0.0.beta3 is newer than 2.7.8 provided with installed ruby, skipping installation, use --force to force installation.
ruby-2.6.0-rc2 - #gemset created /Users/a123/.rvm/gems/ruby-2.6.0-rc2@global
ruby-2.6.0-rc2 - #importing gemset /Users/a123/.rvm/gemsets/global.gems.......there was an error installing gem rubygems-bundler
...............................
ruby-2.6.0-rc2 - #generating global wrappers.......
ruby-2.6.0-rc2 - #gemset created /Users/a123/.rvm/gems/ruby-2.6.0-rc2
ruby-2.6.0-rc2 - #importing gemsetfile /Users/a123/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.6.0-rc2 - #generating default wrappers.......
ruby-2.6.0-rc2 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.6.0-rc2 - #complete 
Ruby was built without documentation, to build it run: rvm docs generate-ri
MacPro:~ a123$ ruby -v
ruby 2.6.0rc2 (2018-12-15 trunk 66408) [x86_64-darwin18]
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末修己,一起剝皮案震驚了整個濱河市承璃,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌尖坤,老刑警劉巖囱持,帶你破解...
    沈念sama閱讀 207,248評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件夯接,死亡現(xiàn)場離奇詭異,居然都是意外死亡纷妆,警方通過查閱死者的電腦和手機(jī)盔几,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,681評論 2 381
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來掩幢,“玉大人逊拍,你說我怎么就攤上這事〖柿冢” “怎么了芯丧?”我有些...
    開封第一講書人閱讀 153,443評論 0 344
  • 文/不壞的土叔 我叫張陵,是天一觀的道長世曾。 經(jīng)常有香客問我注整,道長,這世上最難降的妖魔是什么度硝? 我笑而不...
    開封第一講書人閱讀 55,475評論 1 279
  • 正文 為了忘掉前任肿轨,我火速辦了婚禮,結(jié)果婚禮上蕊程,老公的妹妹穿的比我還像新娘椒袍。我一直安慰自己,他們只是感情好藻茂,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,458評論 5 374
  • 文/花漫 我一把揭開白布驹暑。 她就那樣靜靜地躺著玫恳,像睡著了一般。 火紅的嫁衣襯著肌膚如雪优俘。 梳的紋絲不亂的頭發(fā)上京办,一...
    開封第一講書人閱讀 49,185評論 1 284
  • 那天,我揣著相機(jī)與錄音帆焕,去河邊找鬼惭婿。 笑死,一個胖子當(dāng)著我的面吹牛叶雹,可吹牛的內(nèi)容都是我干的财饥。 我是一名探鬼主播,決...
    沈念sama閱讀 38,451評論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼折晦,長吁一口氣:“原來是場噩夢啊……” “哼钥星!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起满着,我...
    開封第一講書人閱讀 37,112評論 0 261
  • 序言:老撾萬榮一對情侶失蹤谦炒,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后风喇,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體编饺,經(jīng)...
    沈念sama閱讀 43,609評論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,083評論 2 325
  • 正文 我和宋清朗相戀三年响驴,在試婚紗的時候發(fā)現(xiàn)自己被綠了透且。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,163評論 1 334
  • 序言:一個原本活蹦亂跳的男人離奇死亡豁鲤,死狀恐怖秽誊,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情琳骡,我是刑警寧澤锅论,帶...
    沈念sama閱讀 33,803評論 4 323
  • 正文 年R本政府宣布,位于F島的核電站楣号,受9級特大地震影響最易,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜炫狱,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,357評論 3 307
  • 文/蒙蒙 一藻懒、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧视译,春花似錦嬉荆、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,357評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽汪茧。三九已至,卻和暖如春限番,著一層夾襖步出監(jiān)牢的瞬間舱污,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,590評論 1 261
  • 我被黑心中介騙來泰國打工弥虐, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留扩灯,地道東北人。 一個月前我還...
    沈念sama閱讀 45,636評論 2 355
  • 正文 我出身青樓躯舔,卻偏偏與公主長得像,于是被迫代替她去往敵國和親省古。 傳聞我的和親對象是個殘疾皇子粥庄,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,925評論 2 344