pod install 报错
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
rvm install ruby-xxxx 报错
Error running './configure --prefix=/Users/zhaowenbin/.rvm/rubies/ruby-2.5.1 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl@1.1 --disable-install-doc --enable-shared',
please read /Users/zhaowenbin/.rvm/log/1534992298_ruby-2.5.1/configure.log
There has been an error while running configure. Halting the installation.
解决办法
命令行执行
xcode-select --install
接着执行安装
等待数分钟后点击完成
然后继续执行 rvm install ruby-xxx
或 pod install
原因可能是ruby的自动检测和Xcode的clang编译器冲突
完。