configure: error: cannot run C compiled programs
tigerbrew: checking whether we are cross compiling… configure: error: in ‚/private/tmp/…/xz-5.2.1‘:
configure: error: cannot run C compiled programs.
After upgrading to Mac OS X El Capitan brew (bzw.tigerbrew) can’t install wget and mc.
1 |
brew install mc wget |
It returned the following error:
checking whether we are cross compiling… configure: error: in ‚/private/tmp/…/xz-5.2.1‘:
configure: error: cannot run C compiled programs.
Solution.
From the error log, it seemed related to compiling library code. To install Xcode command line tools, run the following command:
1 |
xcode-select --install |
via: @f5.works