簡體   English   中英

使用rbenv安裝ruby的麻煩

[英]troubles with installing ruby using rbenv

我只是不知道該怎么辦,我嘗試使用rbenv安裝ruby,這是我得到的

Nabils-MacBook-Pro:~ nabil$ rbenv install 2.0.0-p247
Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749
Installing yaml-0.1.6...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/0b/06_fg2050hd71mhwvfnzd6wh0000gn/T/ruby-build.20140825020354.5714
Results logged to /var/folders/0b/06_fg2050hd71mhwvfnzd6wh0000gn/T/ruby-build.20140825020354.5714.log

最后10條日志行:

checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/var/folders/0b/06_fg2050hd71mhwvfnzd6wh0000gn/T/ruby-build.20140825020354.5714/yaml-0.1.6':
configure: error: C compiler cannot create executables
See `config.log' for more details

BUILD FAILED

Inspect or clean up the working tree at /var/folders/0b/06_fg2050hd71mhwvfnzd6wh0000gn/T/ruby-build.20140825020354.5714
Results logged to /var/folders/0b/06_fg2050hd71mhwvfnzd6wh0000gn/T/ruby-build.20140825020354.5714.log

Last 10 log lines:
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/var/folders/0b/06_fg2050hd71mhwvfnzd6wh0000gn/T/ruby-build.20140825020354.5714/yaml-0.1.6':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.

您需要安裝XCode命令行工具才能正確使用rbenv。 您可以按照本指南將其安裝在您的XCode和OS X版本上。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM