2016-10-19 182 views
0

自從將操作系統更新到Sierra後,我一直遇到bundle install的一些問題。最新的一個與寶石製造有關:捆綁錯誤安裝CLD,macOS Sierra

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. 

解決這個問題的最佳方法是什麼?

謝謝。

+0

cld項目在四年內還沒有被觸及......你可能會有一些運氣回滾你的Ruby版本,但如果我在你的鞋子裏,我會尋找cld的替代品。同時,您可以嘗試確保您的自制軟件和xcode工具安裝是最新的。 – MarsAtomic

回答

0

由於@MarsAtomico建議我更新xcode和自制軟件,並能夠安裝寶石。