捆绑错误安装CLD,macOS Sierra

时间:2016-10-19 03:17:57

标签: ruby-on-rails ruby macos-sierra

自从将操作系统更新到Sierra后,我遇到了bundle install的问题。最新的一个与gem cld有关:

Installing cld 0.7.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/private/var/folders/zn/wqrzmg6d4nq55m38xmpfyyn80000gn/T/bundler20161018-17743-2nngwicld-0.7.0/gems/cld-0.7.0/ext/cld
/Users/seque1990/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20161018-17743-1l1g1xa.rb
extconf.rb
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking build system type... i386-apple-darwin16.0.0
checking host system type... i386-apple-darwin16.0.0
checking how to print strings... printf
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

Makefile not found

Gem files will remain installed in
/var/folders/zn/wqrzmg6d4nq55m38xmpfyyn80000gn/T/bundler20161018-17743-2nngwicld-0.7.0/gems/cld-0.7.0
for inspection.
Results logged to
/var/folders/zn/wqrzmg6d4nq55m38xmpfyyn80000gn/T/bundler20161018-17743-2nngwicld-0.7.0/extensions/x86_64-darwin-15/2.2.0-static/cld-0.7.0/gem_make.out

An error occurred while installing cld (0.7.0), and Bundler cannot continue.
Make sure that `gem install cld -v '0.7.0'` succeeds before bundling.

解决此问题的最佳方法是什么?

感谢。

1 个答案:

答案 0 :(得分:0)

正如@MarsAtomico建议我更新了xcode和homebrew并且能够安装gem。