If you get this error in your config.log
when running rvm install <version>
, you may have the wrong rvm_archflags
set in your ~/.rvmrc
.
Mine was set to:
rvm_archflags="-arch x86_64"
When it should have been:
rvm_archflags="-arch i386"
I don't know how that happened, but there you go. Hopefully this has solved it for you.
Mine was not compiling because
SDKROOT
was pointing to iPhone simulator. I unset the env var and it worked.