I am trying to install the latest CocoaPods (which is currently 1.0.1), but it shows me the following error.
$ sudo gem install cocoapods
Password:
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: minitest-5.9.0.gem (100%)
Successfully installed minitest-5.9.0
Fetching: concurrent-ruby-1.0.2.gem (100%)
Successfully installed concurrent-ruby-1.0.2
Fetching: activesupport-5.0.0.gem (100%)
ERROR: Error installing cocoapods:
activesupport requires Ruby version >= 2.2.2.
The installation guide says:
[...] it will be installed using Ruby by default, available on macOS. You can use the Ruby version manager, but we recommend using the standard Ruby available on macOS if you don’t know what you are doing.
ruby is not my preferred language, so can anyone help me, how can I install a cocoapods gem?
OSX Version: OS X El Capitan 10.11.5
enKay source
share