Cocoapods: Error installing cocoapods: activesupport requires Ruby version >= 2.2.2

Created on 31 Dec 2015  Â·  42Comments  Â·  Source: CocoaPods/CocoaPods

I'm unable to install CocoaPods. I get the error "activesupport requires Ruby version >= 2.2.2". I'm running OS X 10.10.5.

$ which ruby
/Users/steve/.rvm/rubies/ruby-2.1.2/bin/ruby
$ ruby --version
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]

Most helpful comment

See CocoaPods/Xcodeproj#393

You can work around this by manually installing a compatible activesupport first:

[sudo] gem install activesupport -v 4.2.6

All 42 comments

Looks like you'll need to install a 4.x version of active support?

It seems more like a problem with rvm. After executing rvm use system, the installation worked even though the system Ruby is 2.0.0.

Facing the same problem when installing cocoa pods on Mac OSX 10.11.4

Same problem on Mac OSX 10.11.5.

See CocoaPods/Xcodeproj#393

You can work around this by manually installing a compatible activesupport first:

[sudo] gem install activesupport -v 4.2.6

I installed the Ruby 2.2 version instead...

rvm install 2.2
rvm use 2.2

You just need to update your ruby version, and use the version bigger than 2.2.2

rvm install 2.2.5
sudo gem install cocoapods

for me this two works ! !

This worked for me

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

@Ajmalajji
sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods
Also worked for me

@neonichu thanks, this helped me!

Hi everyone
i had same problem with OS X 10.11.5. I had update ruby to 2.3.1 but same error

I used:
sudo gem install activesupport -v 4.2.6
sudo gem install cocoa pods

and it goes :)

This has been addressed in the 1.1 beta as well

I also had to include (for OS X 10.11.5):
sudo gem install -n /usr/local/bin cocoapods

...as mentioned by Srikanth Suryawanshi on the Google Developer Cocoapods video

[sudo] gem install activesupport -v 4.2.6
[sudo] sudo gem install cocoapods

This works for me. Thanks.

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

It works.Thank you for the help.

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

This worked for me as well. I received one warning while installing activesupport, but it didn't prevent the gem from installing:
unable to convert "x84" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat

I try
sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

macbookpro-472d:~ jmm$ sudo gem install cocoapods
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/fuzzy_match

With
sudo gem install -n /usr/local/bin cocoapods
it works great !

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

this work!!! thankyou

Brittle. 👎 Things were working fine without any changes to my Gemfile.lock before this started showing up recently.

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

this worked for me!!! thank you

@neonichu 's solution also worked for me. Thank you!

[sudo] gem install activesupport -v 4.2.6

I tried using

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

But I keep Getting

ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/fuzzy_match

Figured Out My problem and Just in case Anybody had the same issue Try using

sudo gem install -n /usr/local/bin cocoapods

Worked like a charm

sudo gem install activesupport -v 4.2.6
sudo gem install cocoa pods

that worked for me too

/Library/Ruby/Site/2.0.0/rubygems.rb:270:in find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:298:inactivate_bin_path'
from /usr/local/bin/pod:22:in `

'
what is the solution for this?
can anybody help? please

Right, guys. Had the same Error: requires Ruby version >= 2.2.2. I made:
gem install activesupport -v 4.2.6

And after that begins to install CocoaPods, but I had the same as last problem:

While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/fuzzy_match

@5uper0 try:
sudo gem install activesupport -v 4.2.6

sudo gem install activesupport -v 4.2.6 worked.

@dmitriyborodko, thanks! I made
sudo gem install -n /usr/local/bin cocoapods
and installed 12 gems, and then made
sudo gem install activesupport -v 4.2.6
with this message
Successfully installed activesupport-4.2.6
Parsing documentation for activesupport-4.2.6
unable to convert "\x84" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat, skipping
1 gem installed

I was having the same problem but sudo gem install activesupport -v 4.2.6 and sudo gem install cocoapods worked for me.

Thank you all!

sudo gem install activesupport -v 4.2.6
sudo gem install cocoa pods

worked!

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

worked

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

worked!! Thank you man

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

I got this ERROR.

oh, it is working . Thanks.

It still has the problem, if you want to fresh install cocoapods

After I run "sudo gem install activesupport -v 4.2.6", cocoapods installed

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods

worked!! Thank you man

I've mentioned this on the front page of http://cocoapods.org too

Both solution works for me (different machines)

  • non rvm machine
    sudo gem install activesupport -v 4.2.6
    sudo gem install cocoapods
  • with rvm machine
    rvm install 2.2
    rvm use 2.2

Given that this issue has been fixed on master, the fix is well documented on CocoaPods.org and the issues, I'm going to lock this issue now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

intelliot picture intelliot  Â·  3Comments

pallaviMN picture pallaviMN  Â·  3Comments

tlandsmancars picture tlandsmancars  Â·  3Comments

soleares picture soleares  Â·  3Comments

steffendsommer picture steffendsommer  Â·  3Comments