重新安裝ruby時(shí)報(bào)錯(cuò)
Installing Ruby from source to: /Users/ray/.rvm/rubies/ruby-2.6.3, this may take a while depending on your cpu(s)...
ruby-2.6.3 - #downloading ruby-2.6.3, this may take a while depending on your connection...
ruby-2.6.3 - #extracting ruby-2.6.3 to /Users/ray/.rvm/src/ruby-2.6.3.....
ruby-2.6.3 - #configuring.
Error running './configure --prefix=/Users/ray/.rvm/rubies/ruby-2.6.3 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl@1.1 --disable-install-doc --enable-shared',
please read /Users/ray/.rvm/log/1584579643_ruby-2.6.3/configure.log
There has been an error while running configure. Halting the installation.
解決辦法:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
//如果你的xcode不在Applications中最蕾,則另選其他路徑