Macos Catalina error after update: unable to run colorls

后端 未结 5 1098
无人共我
无人共我 2021-02-14 02:25

Updating to macOS Catalina gives error on opening terminal

ERROR:  Can\'t find Ruby library file or shared library colorls
usage: dirname path
/         


        
5条回答
  •  时光取名叫无心
    2021-02-14 02:59

    Error: gem native extension error while installing cocoapods

    Answer: Follow below 3 Steps issue will be fixed.

    Step 1: Open XCode go to below path

    XCode > Preferences > Locations > Command Line Tools (select-Xcode)

    Step 2: Open Terminal- Paste the below Command

    curl -L https://get.rvm.io | bash -s stable

    Reopen Terminal -Paste the below Commands

    Note: It will take 3-5 minutes

    rvm install ruby-2.6

    rvm use ruby-2.6.3

    rvm --default use 2.6.3

    Step3:

    Open Terminal- Type below Command

    sudo gem install cocoapods

    Now gem native extension error while installing cocoapods will not come

    Issue resolved.

提交回复
热议问题