2016-02-05 101 views
-1

我試着用'gem install watir-webdriver'來安裝watir webdriver,但是它說有些錯誤,比如「你必須先安裝開發工具。」如何在Mac上安裝watir?

+0

https://開頭leanpub.com/watirbook/read#leanpub-auto-mac-os-x-109 – Carldmitch

+0

[gem install rails failed on ubuntu]可能重複(http://stackoverflow.com/questions/29317640/gem-install-rails-失敗的Ubuntu的) – titusfortner

+1

可能重複[Gem安裝錯誤:您必須先安裝開發工具](http://stackoverflow.com/questions/27768420/gem-installation-error-you-have-to-install-開發工具一) – orde

回答

0

歡迎來到堆棧溢出!

聽起來像你剛剛開始編程。您需要設置您的機器才能編譯代碼和內容。

運行從終端這個命令你特別需要前進一開始開發的命令行工具:

xcode-select --install 

此外,它的一個好主意,繼續和安裝BREW(http://brew.sh/):

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

RVM是得心應手太(https://rvm.io/

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 
\curl -sSL https://get.rvm.io | bash -s stable