gem install debugger -v '1.5.0' fails

后端 未结 6 1938
Happy的楠姐
Happy的楠姐 2021-01-19 21:26

I am trying to do bundle in the large project on Mavericks and some gems are broken or something wrong with my environment in spite of this is fresh install of

6条回答
  •  自闭症患者
    2021-01-19 21:50

    There are a lot of issues with Ruby gems and Mavericks. What I have found is that the best bet is to use the apple-gcc42 compiler from homebrew

    brew tap homebrew/versions
    brew install apple-gcc42
    

    Then force that compiler family to be used when building gems. I put symlinks in my a bin folder in my home directory

    cd $HOME/bin
    ln -s /usr/local/bin/c++-4.2 c++
    ln -s /usr/local/bin/g++-4.2 g++
    ln -s /usr/local/bin/gcc-4.2 cc
    ln -s /usr/local/bin/gcc-4.2 gcc
    

    You'll need to have your local bin folder on your path.

    export PATH=$HOME/bin:$PATH
    

    Then you should be good to go.

提交回复
热议问题