mark~ 10.11 Cocoapods Installation

Source: Internet
Author: User
Tags install cocoapods amazon cloud services

Execution sudo gem install cocoapods Error occurred:

Error:while Executing gem ...    (errno::eperm) Operation not permitted-/usr/bin/xcodeproj

Custom Gem_home
$ mkdir-p $HOME/software/ruby
$ export gem_home= $HOME/software/ruby
$ gem Install cocoapods
[...]
1 Gem installed
$ export path= $PATH: $HOME/sofware/ruby/bin
$ pod--version
0.39.0

Execute this sentence if the following error is reported:
Error:could not find a valid gem ' cocoapods ' (>= 0), where is why:
Unable to download data from&n bsp;https://rubygems.org/ -errno::etimedout:operation timed Out-connect (2) (Https://rubygems.org/latest_ specs.4.8.gz)
Error:possible alternatives:cocoapods

This is because Ruby's software source rubygems.org because of the use of Amazon cloud services, was blocked by my celestial, need to update the source of Ruby, the process is as follows:
$ gem sources-l (view the source of the current ruby)
$ gem Sources--remove https://rubygems.org/
$ gem sources-a https://ruby.taobao.org/
$ gem sources-l

If the gem is too old, you can try upgrading the gem with the following command
$ sudo gem update--system
After successful upgrade, you will be prompted: RubyGems system software updated

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



mark~ 10.11 Cocoapods Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.