2013-06-09 2 views
8

OS X 10.8.3にRVMをインストールしました。コマンドrvm -v作品が、私は次のコードを実行しようとしたとき1にエラーが発生しました:ここXcodeをインストールした後、RVMがコンパイラと 'make'ツールを見つけることができないのはなぜですか?

\curl -L https://get.rvm.io | bash -s stable --rails # Or, --ruby=2.0.0-p195 

はエラーです:

 
rvm 1.20.13 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/] 

Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p195. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
Installing requirements for osx, might require sudo password. 

    Can not find compiler and 'make' tool - make sure Xcode and/or Command Line Tools are installed. 

私もrvm install 1.9.2を試してみましたが、同じエラーが現れました。私は運がないXcodeもインストールしました。

+8

ですか?そうでない場合、手順については[この質問](http://stackoverflow.com/questions/9329243/xcode-4-command-line-tools)への回答を参照してください。 –

+0

Xcodeをインストールした後、 Xcodeからコマンドラインツールをインストールします。 –

+0

@ SimonMありがとうございました。 – WowBow

答えて

15

それはあなたがXcodeのをインストールしているように見えるが、RVMはRubyや他のコンポーネント(makegcc、など)を構築する必要がないコマンドラインツール

ここでは、(this answerから取られた)いくつかの命令です。

Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators. To open this pane click the "Xcode" button in the top left of the screen near the Apple logo, then click "Preferences", then click "Downloads".

screenshot of downloads pane

次に、[コマンドラインツール]バンドルをインストールするには、Installボタンをクリックしてください。

4

Xcodeの5のためにそれはさて、あなたはXcodeの中にコマンドラインツールをインストールしなかった

Xcode -> Preferences -> Download -> Command Line Tools

関連する問題