Cannot install any version of ruby on Mojave - internal ranlib command failed

前端 未结 3 679
终归单人心
终归单人心 2020-12-16 22:07

I know there are a few silimar issues to this one, but I cannot find one that matches my issue.

I cannot install any version of ruby with either rvm nor rbenv. Both

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 23:07

    So, I think the fix to this was running:

    $ sudo xcodebuild -runFirstLaunch

    Why? I'm not sure. My suspicion is I tried to build ruby before updating XCode. But once I had updated XCode I suspect the wrong/older command line tool was still being referenced somehow.

    I don't know exactly what fixed this but I completely deleted XCode and ruby still didn't install.

    Then I completely deleted command line tools and ruby still didn't install.

    Then I reinstalled just the command line tools without XCode and ruby still didn't install.

    Then I ran this runFirstLaunch command and ruby installed.

提交回复
热议问题