Problem installing Ruby 1.9.2 on Mac OS Lion

前端 未结 3 653
不思量自难忘°
不思量自难忘° 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:45

    If you're running a fresh copy of Lion & Xcode 4.2, you're going to need to install the GCC 4.2 dev libraries first - they aren't included in a fresh Xcode 4.2 install.

    Then pass the CC="/usr/bin/gcc-4.2" flag when installing your rvm.

    Be sure to rvm remove any previous installation attempts first.

提交回复
热议问题