2

Installing cocoapods gives the following error:

:~$ sudo gem install cocoapods
Fetching: nap-1.1.0.gem (100%)
Fetching: fuzzy_match-2.0.4.gem (100%)
Fetching: cocoapods-core-1.2.1.gem (100%)
ERROR:  Error installing cocoapods:
cocoapods-core requires Ruby version >= 2.0.0.
slal
  • 2,657
  • 18
  • 29
Nafih Nafi
  • 15
  • 2

2 Answers2

1

I think the easiest workaround is actually installing version 4.2.6 of activesupport manually:

$ sudo gem install activesupport -v 4.2.6 $ sudo gem install cocoapod

praaveen V R
  • 1,259
  • 1
  • 11
  • 20
1

You need to update the Ruby version, you are using an old version of Ruby.

Check out this post to see how to update the Ruby version if you are using MAC

How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

or this for windows

How to update ruby in windows

slal
  • 2,657
  • 18
  • 29