Mac OS X Lion Xcode problems using RVM

后端 未结 4 1461
醉话见心
醉话见心 2021-02-04 16:59

I had Xcode 4.1 preview 5 working fine but decided to upgrade to the final xcode 4.1 thru the App store. I uninstalled Xcode first...

sudo /Developer/Library/u         


        
相关标签:
4条回答
  • 2021-02-04 17:10

    Note - after running "Install Xcode" I still only have "gcc" in /usr/bin, not gcc-4.2. But still worked fine, /usr/bin/gcc was a symlink to /usr/bin/llvm-gcc-4.2

    0 讨论(0)
  • 2021-02-04 17:16

    Just bought a Mac, what I had to do to make it work after installing Xcode and seeing that /usr/bin doesn't have gcc, was: Enter Xcode preferences going over to the downloads tab and install Command Line Tools. After setting up my developer account and downloading the tools I opened terminal and typed

    rvm install 1.9.3 --with-gcc=clang
    

    and everything compiled and works.

    0 讨论(0)
  • 2021-02-04 17:20

    Guy's answer above seems to fix the problem compiling Ruby in RVM with XCode 4.2 installed completely, and removed for me to install GCC from https://github.com/kennethreitz/osx-gcc-installer . This is preferable for users needing to have both RVM and XCode 4.2 installed.

    0 讨论(0)
  • 2021-02-04 17:22

    Apparently even after downloading and "installing" XCode from the Appstore and despite the long process after downloading where it appears to install it and the words "Installed" eventually become displayed next to it in the store. You must still manually install it again within your applications folder before it will work.

    Odd.

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