ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension

后端 未结 23 1787
深忆病人
深忆病人 2020-12-04 19:06

I am trying to install cocoapods to my MacBook Pro running with OSX 10.9.1 (new Mavericks) and after type gem install cocoapods I get the following error:

23条回答
  •  无人及你
    2020-12-04 19:24

    First install Homebrew if you don't have it: https://brew.sh/index_pt-br

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    

    Second, install ruby if you don't have it: https://www.ruby-lang.org/pt/documentation/installation/

    brew install ruby
    

    You can also follow these steps: https://gist.github.com/monicao/d372716cdfbb7e9cf692

    Then, close your terminal and reopen it again.

    Always use sudo to install cocoapods:

    sudo gem install cocoapods
    

提交回复
热议问题