configure: error: C compiler cannot create executables in mac os terminal

前端 未结 2 1999
遥遥无期
遥遥无期 2021-01-23 12:34

i\'m trying to Building libCURL in iOS 4.2, i do some steps in the terminal. The steps are :

  1. cd curl-7.21.2
  2. export CC=/Developer\\ 4.2/
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 13:18

    If you are on Lion try installing with the tag: --with-gcc=clang

    Running rvm requirements explains this in more detail:

    Xcode 4.2:
     * is only supported by ruby 1.9.3+ using command line flag: --with-gcc=clang
     * it breaks gems with native extensions, especially DB drivers.
    
    Xcode 4.2 users - please be warned - 
    in case of any compilation issues 
     * downgrade to Xcode 4.1
     * or install osx-gcc-installer
    and reinstall your rubies.
    

提交回复
热议问题