Cannot compile ruby 1.9.3

前端 未结 5 1912
别跟我提以往
别跟我提以往 2020-12-25 13:44

When I run

rvm install 1.9.3 --with-gcc=clang

on Mac OSX Lion, ruby does not compile, and I get the following error in (.rvm/log/ruby-1.9.3

5条回答
  •  感动是毒
    2020-12-25 14:31

    I solved this using Macports.

    I had problems compiling and were getting the error "Ruby 'ruby-1.9.3-p374' was built using clang - but it's not (fully) supported, expect errors."

    Github was also down for maintenance so I couldnt try compiling using brew as suggested in the previous answer... This is what I did, and it compiled fine on Mountain Lion 10.8.2:

    First install Macports

    http://www.macports.org/install.php

    Then run:

    sudo port selfupdate

    sudo port install apple-gcc42

    sudo rvm install ruby-1.9.3-p374 --with-gcc=gcc-apple-4.2

提交回复
热议问题