RVM ruby installation errors - Mac

后端 未结 8 714
深忆病人
深忆病人 2020-12-14 09:28

I have tried to install each of the following three versions of Ruby via RVM, each with their own set of errors. I\'m more concerned with getting the last one working so I\'

相关标签:
8条回答
  • 2020-12-14 10:07

    This is most likely related to the gcc you are using. Have you tired to use non llvm gcc compiler? You will most likely find it under /Xcode4/usr/bin/gcc-4.2

    so:

    $> export CC=/Xcode4/user/bin/gcc-4.2 && rvm install 1.8.7
    

    Hope this helps.

    0 讨论(0)
  • 2020-12-14 10:09

    If you have a new install of XCode, you'll need to:

    1.) open it

    2.) go to: Preferences>Downloads>Command Line Tools

    3.) install the Command Line Tools

    4.) then run the following in Terminal:

    rvm install 1.9.3 --with-gcc=clang
    
    0 讨论(0)
  • 2020-12-14 10:10

    I used homebrew to install GCC-4.2, then symlinked it from /usr/local/bin to /usr/bin. This fixed this issue for me.

    0 讨论(0)
  • 2020-12-14 10:12
    rvm install 1.9.3 --with-gcc=clang
    
    0 讨论(0)
  • 2020-12-14 10:19

    Consider installing OSX GCC, it will solve many of the problems occurred from Xcode installation.

    0 讨论(0)
  • 2020-12-14 10:19

    I had to manually download the file yaml-0.1.4.tar.gz and place it in the proper directory for rvm.

    The failure for me was curl could not get the file and the error had to do with a failed certificate check. I have GCC-10.7-v2.pkg installed so the C compiler can do its work because my newer version of Xcode did not have GCC included.

    0 讨论(0)
提交回复
热议问题