[fastlane] [gem] [rvm] [ruby]

來源:互聯網
上載者:User

標籤:

使用fastlane 實現快速持續的更新、在安裝過程中 出現的一系列問題:

1.安裝fastlane :sudo gem install fastlane

-錯誤:ERROR: Failed to build gem native extension.

#不要添加多個gem 源#開始以為是gem 源的問題#查看gem源gem sources# 刪除預設的gem源 gem sources --remove http://rubygems.org/# 增加taobao作為gem源 gem sources -a https://ruby.taobao.org/# 查看當前的gem源gem sources*** CURRENT SOURCES ***http://ruby.taobao.org# 請確保只有 ruby.taobao.org# 清空源緩衝gem sources -c# 更新源緩衝gem sources -u

錯誤仍然存在;

然後查到是ruby版本的問題

2.更新ruby版本,安裝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 

測試是否安裝正常 rvm -v 

3.rvm install ruby-2.1.4,報下面的錯誤

?  ~ git:(master) ? rvm install ruby-2.1.4Searching for binary rubies, this might 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 for osx./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `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:55:in `require‘    from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `<top (required)>‘    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require‘    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require‘    from /usr/local/Library/Homebrew/global.rb:3:in `<top (required)>‘    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require‘    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require‘    from /usr/local/Library/brew.rb:16:in `<main>‘ERROR: ‘/bin‘ is not writable - it is required for Homebrew, try ‘brew doctor‘ to fix it!Requirements installation failed with status: 1.

然後這樣處理:

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

這裡參考了http://stackoverflow.com/questions/18863211/homebrew-permissions-mess

最後就順利安裝fastlane了。

 

[fastlane] [gem] [rvm] [ruby]

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.