I am trying to install cocoapods on my MacBook Pro which is running OSX Mavericks and version 5.02 of Xcode and get the following error when I run the sudo gem install cocoapods:
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ENOMEM: Cannot allocate memory - connect(2) (https://rubygems.org/latest_specs.4.8.gz)
I have a MacBook Pro with 256G SSD and 8G ram.