Problem installing Ruby 1.9.2 on Mac OS Lion

前端 未结 3 614
不思量自难忘°
不思量自难忘° 2021-01-12 20:30

I am running Lion, utilizing Xcode 4, have RVM and homebrew installed but am only able to run ruby 1.8.7

    spurvis:~ rogue$ ruby -v
    ruby 1.8.7 (2010-01-10 p         


        
3条回答
  •  北海茫月
    2021-01-12 20:55

    If you want to get rvm install ree with ruby 1.8.7 to work, this solved the problem for me:

    # using_gcc for 32btt compiling on lion (solves compatability issues)
    function using_gcc() {
      env CC="/usr/bin/gcc-4.2" ARCHFLAGS="-arch x86_32" ARCHS="x86_32" $*
    }
    
    #then
    
    using_gcc rvm install ree
    

    Basically just changing "64" to "32" in the other answer.

提交回复
热议问题