i\'m trying to Building libCURL in iOS 4.2, i do some steps in the terminal. The steps are :
cd curl-7.21.2
export CC=/Developer\\ 4.2/
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.