2016/07/31 安裝cocoapods 失敗 原因:ruby 環境版本必須大雨2.2 --> 更新到2.3後重新安裝
Last login: Sun Jul 31 08:36:30 on ttys000
mcdeMacBook-Pro:~ wufuzeng$ gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
https://ruby.taobao.org/
mcdeMacBook-Pro:~ wufuzeng$ sudo gem sources --remove https://rubygems.org/
Password:
https://rubygems.org/ removed from sources
mcdeMacBook-Pro:~ wufuzeng$ sudo gem intall cocoapods
Password:
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command intall
mcdeMacBook-Pro:~ wufuzeng$ sudo gem install cocoapods
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: minitest-5.9.0.gem (100%)
Successfully installed minitest-5.9.0
Fetching: concurrent-ruby-1.0.2.gem (100%)
Successfully installed concurrent-ruby-1.0.2
Fetching: activesupport-5.0.0.gem (100%)
ERROR: Error installing cocoapods:
activesupport requires Ruby version >= 2.2.2.
mcdeMacBook-Pro:~ wufuzeng$ curl -L get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 224 0 --:--:-- --:--:-- --:--:-- 224
100 22865 100 22865 0 0 11954 0 0:00:01 0:00:01 --:--:-- 156k
Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz
curl: (56) SSLRead() return error -9806
Could not download 'https://github.com/rvm/rvm/archive/1.27.0.tar.gz'.
curl returned status '56'.
Downloading https://bitbucket.org/mpapis/rvm/get/1.27.0.tar.gz
Downloading https://bitbucket.org/mpapis/rvm/downloads/1.27.0.tar.gz.asc
Found PGP signature at: 'https://bitbucket.org/mpapis/rvm/downloads/1.27.0.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Installing RVM to /Users/mc/.rvm/
Adding rvm PATH line to /Users/mc/.profile /Users/mc/.mkshrc /Users/mc/.bashrc /Users/mc/.zshrc.
Adding rvm loading line to /Users/mc/.profile /Users/mc/.bash_profile /Users/mc/.zlogin.
Installation of RVM in /Users/mc/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/mc/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# wufuzeng,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: https://rvm.io/help and https://twitter.com/rvm_io
mcdeMacBook-Pro:~ wufuzeng$
mcdeMacBook-Pro:~ wufuzeng$ source /Users/mc/.rvm
-bash: source: /Users/mc/.rvm: is a directory
mcdeMacBook-Pro:~ wufuzeng$ source /Users/mc/.rvm/scripts/rvm
mcdeMacBook-Pro:~ wufuzeng$ source ~/.bashrc
mcdeMacBook-Pro:~ wufuzeng$ source ~/.bash_profile
mcdeMacBook-Pro:~ wufuzeng$ rvm -v
rvm 1.27.0 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
mcdeMacBook-Pro:~ wufuzeng$ rvm reload
RVM reloaded!
mcdeMacBook-Pro:~ wufuzeng$ rvm -v
rvm 1.27.0 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
mcdeMacBook-Pro:~ wufuzeng$ ruby -v
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
mcdeMacBook-Pro:~ wufuzeng$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p648]
[ruby-]2.1[.8]
[ruby-]2.2[.4]
[ruby-]2.3[.0]
[ruby-]2.2-head
ruby-head
# for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2
# JRuby
jruby-1.6[.8]
jruby-1.7[.23]
jruby[-9.0.5.0]
jruby-head
# Rubinius
rbx-1[.4.3]
rbx-2.3[.0]
rbx-2.4[.1]
rbx[-2.5.8]
rbx-head
# Opal
opal
# Minimalistic ruby implementation - ISO 30170:2012
mruby[-head]
# Ruby Enterprise Edition
ree-1.8.6
ree[-1.8.7][-2012.02]
# GoRuby
goruby
# Topaz
topaz
# MagLev
maglev[-head]
maglev-1.0.0
# Mac OS X Snow Leopard Or Newer
macruby-0.10
macruby-0.11
macruby[-0.12]
macruby-nightly
macruby-head
# IronRuby
ironruby[-1.1.3]
ironruby-head
mcdeMacBook-Pro:~ wufuzeng$ rvm install 2.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
About to install Homebrew, press `Enter` for default installation in `/usr/local`,
type new path if you wish custom Homebrew installation (the path needs to be writable for user)
:
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
==> The following directories will be made group writable:
/usr/local/.
==> The following directories will have their owner set to wufuzeng:
/usr/local/.
==> The following directories will have their group set to admin:
/usr/local/.
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/.
Password:
==> /usr/bin/sudo /usr/sbin/chown wufuzeng /usr/local/.
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/.
==> /usr/bin/sudo /bin/mkdir -p /Users/mc/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/mc/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown wufuzeng /Users/mc/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 531, done.
remote: Compressing objects: 100% (471/471), done.
remote: Total 531 (delta 31), reused 334 (delta 29), pack-reused 0
Receiving objects: 100% (531/531), 797.61 KiB | 301.00 KiB/s, done.
Resolving deltas: 100% (31/31), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
HEAD is now at 12e7a08 test_cleaner: add perl removal tests
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3716, done.
remote: Compressing objects: 100% (3603/3603), done.
remote: Total 3716 (delta 15), reused 1926 (delta 4), pack-reused 0
Receiving objects: 100% (3716/3716), 2.88 MiB | 465.00 KiB/s, done.
Resolving deltas: 100% (15/15), done.
Checking connectivity... done.
Checking out files: 100% (3719/3719), done.
Tapped 3594 formulae (3,742 files, 8.9M)
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: https://git.io/brew-docs
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
Installing requirements for osx.
Updating system....
Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libksba, openssl.....|
....
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/mc/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.5M 100 13.5M 0 0 445k 0 0:00:31 0:00:31 --:--:-- 484k
ruby-2.3.0 - #extracting ruby-2.3.0 to /Users/mc/.rvm/src/ruby-2.3.0....
ruby-2.3.0 - #configuring......................................................|
ruby-2.3.0 - #post-configuration.
ruby-2.3.0 - #compiling........................................................|
ruby-2.3.0 - #installing.........
ruby-2.3.0 - #making binaries executable..
Installed rubygems 2.5.1 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.
ruby-2.3.0 - #gemset created /Users/mc/.rvm/gems/[email protected]
ruby-2.3.0 - #importing gemset /Users/mc/.rvm/gemsets/global.gems..............|
ruby-2.3.0 - #generating global wrappers........
ruby-2.3.0 - #gemset created /Users/mc/.rvm/gems/ruby-2.3.0
ruby-2.3.0 - #importing gemsetfile /Users/mc/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.3.0 - #generating default wrappers........
ruby-2.3.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.3.0 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
mcdeMacBook-Pro:~ wufuzeng$
mcdeMacBook-Pro:~ wufuzeng$ gem sources
*** CURRENT SOURCES ***
https://ruby.taobao.org/
mcdeMacBook-Pro:~ wufuzeng$ sudo gem install cocoapods
Password:
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: concurrent-ruby-1.0.2.gem (100%)
Successfully installed concurrent-ruby-1.0.2
Fetching: activesupport-5.0.0.gem (100%)
Successfully installed activesupport-5.0.0
Fetching: nap-1.1.0.gem (100%)
Successfully installed nap-1.1.0
Fetching: fuzzy_match-2.0.4.gem (100%)
Successfully installed fuzzy_match-2.0.4
Fetching: cocoapods-core-1.0.1.gem (100%)
Successfully installed cocoapods-core-1.0.1
Fetching: claide-1.0.0.gem (100%)
Successfully installed claide-1.0.0
Fetching: cocoapods-deintegrate-1.0.0.gem (100%)
Successfully installed cocoapods-deintegrate-1.0.0
Fetching: cocoapods-downloader-1.1.0.gem (100%)
Successfully installed cocoapods-downloader-1.1.0
Fetching: cocoapods-plugins-1.0.0.gem (100%)
Successfully installed cocoapods-plugins-1.0.0
Fetching: cocoapods-search-1.0.0.gem (100%)
Successfully installed cocoapods-search-1.0.0
Fetching: cocoapods-stats-1.0.0.gem (100%)
Successfully installed cocoapods-stats-1.0.0
Fetching: netrc-0.7.8.gem (100%)
Successfully installed netrc-0.7.8
Fetching: cocoapods-trunk-1.0.0.gem (100%)
Successfully installed cocoapods-trunk-1.0.0
Fetching: cocoapods-try-1.1.0.gem (100%)
Successfully installed cocoapods-try-1.1.0
Fetching: molinillo-0.4.5.gem (100%)
Successfully installed molinillo-0.4.5
Fetching: colored-1.2.gem (100%)
Successfully installed colored-1.2
Fetching: xcodeproj-1.2.0.gem (100%)
Successfully installed xcodeproj-1.2.0
Fetching: escape-0.0.4.gem (100%)
Successfully installed escape-0.0.4
Fetching: fourflusher-0.3.2.gem (100%)
Successfully installed fourflusher-0.3.2
Fetching: cocoapods-1.0.1.gem (100%)
Successfully installed cocoapods-1.0.1
Parsing documentation for i18n-0.7.0
Installing ri documentation for i18n-0.7.0
Parsing documentation for thread_safe-0.3.5
Installing ri documentation for thread_safe-0.3.5
Parsing documentation for tzinfo-1.2.2
Installing ri documentation for tzinfo-1.2.2
Parsing documentation for concurrent-ruby-1.0.2
Installing ri documentation for concurrent-ruby-1.0.2
Parsing documentation for activesupport-5.0.0
Installing ri documentation for activesupport-5.0.0
Parsing documentation for nap-1.1.0
Installing ri documentation for nap-1.1.0
Parsing documentation for fuzzy_match-2.0.4
Installing ri documentation for fuzzy_match-2.0.4
Parsing documentation for cocoapods-core-1.0.1
Installing ri documentation for cocoapods-core-1.0.1
Parsing documentation for claide-1.0.0
Installing ri documentation for claide-1.0.0
Parsing documentation for cocoapods-deintegrate-1.0.0
Installing ri documentation for cocoapods-deintegrate-1.0.0
Parsing documentation for cocoapods-downloader-1.1.0
Installing ri documentation for cocoapods-downloader-1.1.0
Parsing documentation for cocoapods-plugins-1.0.0
Installing ri documentation for cocoapods-plugins-1.0.0
Parsing documentation for cocoapods-search-1.0.0
Installing ri documentation for cocoapods-search-1.0.0
Parsing documentation for cocoapods-stats-1.0.0
Installing ri documentation for cocoapods-stats-1.0.0
Parsing documentation for netrc-0.7.8
Installing ri documentation for netrc-0.7.8
Parsing documentation for cocoapods-trunk-1.0.0
Installing ri documentation for cocoapods-trunk-1.0.0
Parsing documentation for cocoapods-try-1.1.0
Installing ri documentation for cocoapods-try-1.1.0
Parsing documentation for molinillo-0.4.5
Installing ri documentation for molinillo-0.4.5
Parsing documentation for colored-1.2
Installing ri documentation for colored-1.2
Parsing documentation for xcodeproj-1.2.0
Installing ri documentation for xcodeproj-1.2.0
Parsing documentation for escape-0.0.4
Installing ri documentation for escape-0.0.4
Parsing documentation for fourflusher-0.3.2
Installing ri documentation for fourflusher-0.3.2
Parsing documentation for cocoapods-1.0.1
Installing ri documentation for cocoapods-1.0.1
Done installing documentation for i18n, thread_safe, tzinfo, concurrent-ruby, activesupport, nap, fuzzy_match, cocoapods-core, claide, cocoapods-deintegrate, cocoapods-downloader, cocoapods-plugins, cocoapods-search, cocoapods-stats, netrc, cocoapods-trunk, cocoapods-try, molinillo, colored, xcodeproj, escape, fourflusher, cocoapods after 27 seconds
23 gems installed
mcdeMacBook-Pro:~ wufuzeng$ pod
Usage:
$ podCOMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ deintegrate Deintegrate CocoaPods from your project
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ plugins Show available CocoaPods plugins
+ repo Manage spec-repositories
+ search Search for pods
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ trunk Interact with the CocoaPods API (e.g. publishing new specs)
+ try Try a Pod!
+ update Update outdated project dependencies and create new
Podfile.lock
Options:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
mcdeMacBook-Pro:~ wufuzeng$
相關推薦
2016/07/31 安裝cocoapods 失敗 原因:ruby 環境版本必須大雨2.2 --> 更新到2.3後重新安裝
Last login: Sun Jul 31 08:36:30 on ttys000 mcdeMacBook-Pro:~ wufuzeng$ gem sources *** CURRENT SOURC
java.lang.Exception: 資源處理失敗,失敗原因:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column '?????‰' in 'where clause'
exception 替換 div name jdbc unknown syn lan -s 1:Unknown column ‘?????‰‘ in ‘where clause‘,這個問題,百度一搜,挺多的,但是貌似好像沒有解決我的問題。貼一下我是如何拼接sq
在windows下安裝Pillow失敗原因
如果 nbsp 對象 pillow 操作圖片 inf window mode pip 因為要運行django的一個項目,models裏面的類的一個對象需要加載:models.ImageField 運行失敗,提示安裝Pillow,才知道如果要操作圖片都需要安裝Pillow 我
Ubuntu安裝ssh失敗,原因卻是這個(解決)
今天在伺服器上安裝完系統之後,安裝ssh時,按部署文件部署時出了問題。 在我連結上網路的前提下執行了:sudo apt-get update 命令之後。 緊接著在終端執行了ssh的安裝命令:sudo apt-get install openssh-server 其實安裝ssh只需
MySQL解除安裝後重新安裝失敗:The security settings could not be applied to the database bacause the ……(徹底解除安裝MySQL)
MySQL解除安裝後重新安裝失敗 錯誤提示: the security setting could not be applied to the database because the connection has failed with the following error. Err
解決 安裝cocoapods失敗,提示 requires Ruby version >=2.2.2
補充:已經安裝的是淘寶ruby映象https://ruby.taobao.org/ 具體配置cocoapods的步驟不說了,這裡說一下這個問題吧,顯然是ruby版本太低,要求 2.2.2以上 解決它吧,去把ruby版本號搞成>=2.2.2: 強烈建議 使用rvm安裝ruby
python安裝PIL失敗原因及解決方案
在windows下的虛擬環境安裝PIL: pip install PIL 出現報錯資訊: 原因: 經過查詢資料發現,python2可以使用pip install PIL安裝PIL第三方包。而我是使用的是python3,現在python3已經用Pillow代替PIL。
2016.07.31學習筆記---ViewPager滑動監聽的引數解釋
以前大家都是用viewpager.setOnPageChangeListener 來監聽ViewPager的事件,但是已經過時了, 下面我給大家帶來最新的方法。 viewpager.addOnPage
問題:grid卸載後重新安裝時ASM磁盤識別不到了
style In nbsp height 問題解決 題解 pan 命令 安裝 現象,磁盤路徑是對的,但是識別不出來asmdisk2 系統顯示磁盤也存在 識別不到的原因是:安裝了一次磁盤已經有asm信息寫入,需要擦除才能重新被識別到,命令如下 [root@swnode1
OpenStack多節點安裝(一):基本環境
本文開始,記錄一下自己安裝OpenStack各服務元件的過程,將其中碰到的一些問題也與大家分享一下,希望能對各位有些許的幫助! 在此之前一直都是使用的DevStack開發環境在除錯程式碼,這段
Linux、ubuntu下pip安裝aiohttp失敗,修改python預設版本
ubuntu pip安裝aiohttp失敗的問題: 因為系統預設自帶的python最高為python3.4版本。而aiohttp模組是在python3.5版本之後才有的,因此需要安裝python3.5之上才行。 而且即便安裝了python3.6,系統預設的python也不是
雷林鵬分享:Ruby 環境變數
Ruby 環境變數 Ruby 直譯器使用下列環境變數來控制它的行為。ENV 物件包含了所有當前設定的環境變數列表。 變數描述 DLN_LIBRARY_PATH動態載入模組搜尋的路徑。 HOME當沒有引數傳遞給 Dir::chdir 時,要移動到的目錄。也用於 File::expan
nginx 解除安裝後重新安裝/etc/nginx配置檔案沒了,cannot open /etc/nginx/nginx.conf (No such file or directory)
sudo apt-get --purge remove nginx-common sudo apt-get --purge remove nginx* sudo apt-get autoremov
一些軟體解除安裝後重新安裝卻提示已安裝或正在執行怎麼解決?
第一:電腦---控制面板---解除安裝(檢視有沒有卸完)提示兩個都徹底刪除重新裝第二:用軟體(電腦管家或者360)清除垃圾殘留第三:開始---執行---regedit開啟登錄檔,點選,編輯---查詢,輸入解除安裝軟體關鍵字如(QQ,eclipse),把查詢到的專案刪除,點F3
OneDrive解除安裝後重新安裝沒有反應的解決辦法
自從安裝了Onedrive,它的自動安裝程式,總是會時不時的佔用25%的CPU,然後提示更新失敗。 今天又遇到這個問題,一生氣直接解除安裝和刪除了Onedrive,之後從官網下載了Onedrive安裝檔案,但是安裝檔案總是卡死在那裡,試了管理員許可權、命令列等都不管用。思考
解除安裝plsql後重新安裝遇到問題小結
伺服器上安裝oracle,本機上安裝plsql。 1.plsql,過期了,登陸時總是顯示not logged on.解除安裝plsql 2.重新下載了plsql。 3.安裝plsql。 4.開啟plsql,登陸遇到問題: 1)提示initialization error
Window解除安裝python後重新安裝出現問題
趕時間的直接看解決方:解除安裝重新安裝注意點: 1,以管理員身份執行軟體; 2,安裝勾選新增環境變數。 過程描述: win10之前安裝了python3.5,解除安裝後安裝python3.6.4版本,一直提示:“0x80070570檔案或目錄損壞且無法讀取”
SQL Server 安裝程式無法獲取 ASPNET 帳戶的系統帳戶資訊。若要繼續,請重新安裝 .NET Framework,然後再次執行 SQL 。
今天重新安裝SQL Server2005就出現了這個問題,原因不知道,反正就按照他提示的先解除安裝Framework,再安裝就可以了. 方法如下: 進入CMD: cd c:/windows/microsoft.net/framework/v2.0.50727 然後輸入asp
centos7系統yum解除安裝後重新安裝
1 背景 想在centos上玩python3,可是我用的最新的centos7系統上預設自帶的也是python2.7的版本,我本身又不想再折騰python3以下的版本,所以就像徹底刪掉,沒想到由於yum需要依賴python2,竟然沒刪掉,一氣之下連yum也一併刪掉了,刪掉後在需
解決oracle12c安裝報“[INS-30131]執行安裝程式驗證所需的初始設定失敗(原因:無法訪問臨時位置)”方法
在新機子上安裝oracle12c client過程中竟然神奇的報出一個錯誤:很明顯的,已經很明確的給出了安裝失敗的原因:無法訪問臨時位置!實際上,在安裝資料庫之前,資料庫會檢查是否滿足符合資料庫安裝資料庫的先決條件。事實上Oracle執行先決條件檢查是依賴c$共享,很多系統