[Fastlane] [Gem] [RVM] [Ruby]

Source: Internet
Author: User
Tags install openssl

Use Fastlane for fast, continuous updates and a range of issues during installation:

1. Installing the Fastlane:sudo gem install Fastlane

ErrorERROR: Failed to build gem native extension.

--remove http://rubygems.org/-a https://ruby.taobao.org/# View current gem source gem sources* * * * sourceshttp://ruby.taobao.org-  -U

Errors still exist;

And then I found out that it was a ruby version.

2. Update the ruby version and install RVM

http://blog.csdn.net/lissdy/article/details/9191351,

Http://stackoverflow.com/questions/3696564/how-to-update-ruby-to-1-9-x-on-mac

Curl-l Get.rvm.io | Bash-s Stable

Test if normal rvm-v is installed

3.RVM Install ruby-2.1.4, report the following error

? ~ git: (master)? RVM Install ruby-2.1.4Searching forBinary rubies, Thismight take some time. Found Remote file https://rvm_io.global.ssl.fastly.net/binaries/osx/10.11/x86_64/ruby-2.1.4.tar.bz2Checking Requirements forOSX./system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require': Cannot load such file-mach (loaderror)     from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require'     from/USR/LOCAL/LIBRARY/HOMEBREW/EXTEND/PATHNAME.RB:2:inch' <top (required) >'     from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require'     from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require'     from/usr/local/library/homebrew/Global. RB:3:inch' <top (required) >'     from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require'     from/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/RUBYGEMS/CORE_EXT/KERNEL_REQUIRE.RB: -:inch' Require'     from/USR/LOCAL/LIBRARY/BREW.RB: -:inch' <main>'ERROR:'/bin'  isNot writable-it isRequired forHomebrew,Try 'Brew Doctor'To fix it!Requirements installation failed with status:1.

Then handle this:

$ brew install openssl  # if you want to install all dependencies run ‘rvm requirements‘$ rmv reinstall|install ruby-2.1.4

Here's a reference to http://stackoverflow.com/questions/18863211/homebrew-permissions-mess.

Finally, the smooth installation of Fastlane.

[Fastlane] [Gem] [RVM] [Ruby]

Related Article

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.