簡體   English   中英

為什么安裝XCode后RVM找不到編譯器和'make'工具?

[英]Why can't RVM find compiler and 'make' tool after installing XCode?

我在OS X 10.8.3上安裝了RVM。 命令rvm -v可以工作,但是當我嘗試執行以下代碼時出現一個錯誤:

\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。

看起來您已經安裝了Xcode,但不是RVM生成Ruby和其他組件( makegcc等)所需的命令行工具

以下是一些說明(從此答案中獲取 ):

Xcode包括一個新的“下載”首選項窗格,用於安裝可選組件,例如命令行工具和以前的iOS模擬器。 要打開此窗格,請單擊屏幕左上方Apple徽標附近的“ Xcode”按鈕,然后單擊“首選項”,然后單擊“下載”。

下載窗格的屏幕截圖

然后通過單擊右側的“ 安裝”按鈕來安裝“命令行工具”軟件包。

對於Xcode 5

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

暫無
暫無

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

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