用rbenv 安装ruby 2.0.0的时候出错了
ringa_lee
ringa_lee 2017-04-21 11:16:11
0
2
576

先安装的homebrew 然后安装的rbenv 接下来安装 ruby 2.0.0 结果编译的时候出错了。

dationtekiMacBook-Air:~ dation$ rbenv install 2.0.0-p247
Downloading ruby-2.0.0-p247.tar.gz...
-> http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
Installing ruby-2.0.0-p247...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/bp/71f4bqx11kx43wxx8stmdmn00000gn/T/ruby-build.20130908132041.62016
Results logged to /var/folders/bp/71f4bqx11kx43wxx8stmdmn00000gn/T/ruby-build.20130908132041.62016.log

Last 10 log lines:
checking for gcc-4.2... no
checking for clang... no
checking for gcc... no
checking for cc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/var/folders/bp/71f4bqx11kx43wxx8stmdmn00000gn/T/ruby-build.20130908132041.62016/ruby-2.0.0-p247':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

BUILD FAILED

Inspect or clean up the working tree at /var/folders/bp/71f4bqx11kx43wxx8stmdmn00000gn/T/ruby-build.20130908132041.62016
Results logged to /var/folders/bp/71f4bqx11kx43wxx8stmdmn00000gn/T/ruby-build.20130908132041.62016.log

Last 10 log lines:
checking for clang... no
checking for gcc... no
checking for cc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/var/folders/bp/71f4bqx11kx43wxx8stmdmn00000gn/T/ruby-build.20130908132041.62016/ruby-2.0.0-p247':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
/usr/local/bin/ruby-build: line 387: make: command not found
ringa_lee
ringa_lee

ringa_lee

全員に返信(2)
洪涛

コンパイラはありません。

最新の Xcode 4.6 をインストールし、Xcode を起動して、Xcode の設定に移動し、[ダウンロード] タブに移動して、コマンド ライン ツールをダウンロードします。

いいねを押す +0
阿神

Mac にインストールするには RVM を使用することをお勧めします

autolibs を有効にして依存関係をインストールする

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!