在cocoapods 执行 sudo gem install cocoapods 的时候出现  While executing gem ... (Gem::FilePermissionError)    You don't have write permissions for the /usr/bin directory. 改为 sudo gem install -n /usr/local/bin cocoapods  即可 如果是卸载的话,把上面这句改成: sudo gem uninstall…
在使用IOS_BaiduSDK的时候,需要用到cocoapods,所以就需要按照步骤继续着.但是在过程中会遇到一些问题: 1. sudo gem install cocoapods 运行这个报错 RubertdeMacBook-Pro:~ Rubert$ sudo gem install cocoapods /System/Library/Frameworks/Ruby.framework/Versions//universal-darwin14/rbconfig.rb:: warning: I…
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/angela/.rbenv/versions/1.9.3-p545/bin/ruby -r ./siteconf20170106-59264-robjdg.rb extconf.rb --use-system-libraries checking if the C compiler accepts ... yes checking if the C…
1. 尝试更新 sudo gem update --system 2. 查看安装详细 sudo gem install cocoapods -V 3.详细使用有个链接 http://blog.csdn.net/meegomeego/article/details/24005567…
//1.删除原gem源 gem sources --remove https://rubygems.org/ //2.添加国内镜像 gem source -a https://gems.ruby-china.com //3.打印是否替换成功 gem sources -l //4.更换成功后打印如下 *** CURRENT SOURCES *** https://gems.ruby-china.com sudo gem install sass Building native extensions…
OS X 10.11 安装Cocoapods 出现问题的解决方法 今天尝试用 Cocoapods安装个第三方库.. 输入pod install, 发现 command not find. WTF! 估计是升级10.11后Cocoapods被干掉了. 我输入 sudo gem install cocoa pods 之后,出现如下问题: ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/x…
最近pods  0.39.0 升级1.1.1  ,发现一个坑,好纠结,好歹最后解决了 过程如下: 本来我想直接执行: $ sudo gem install cocoapods  // 安装cocoapods 遇到一个错误: ERROR:  While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod 卧槽,这什么鬼?然后就找解决办法,各种升级命令都不行,无奈之下,就采取先卸载再安装了! ========…
今天安装cocoods 出现下面的问题:ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproject 第一种方法(我是用此方法解决的):终端输入 mkdir -p $HOME/Software/ruby export GEM_HOME=$HOME/Software/ruby gem install cocoapods export PATH=$PATH:$HOM…
因为突然要用到cocospod,突然发现在使用pod install的时候出现 -bash: pod: command not found 我去-不知道为什么,然后我就想重新安装下cocospod,在使用sudo gem install cocoapods的时候出现错误 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/pod what r u 弄啥勒…… 后来在http:/…
环境:OSX EI 10.11.1 昨天切换gem源后,招待pod安装没有任何问题,也可以正常用$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/$ sudo gem install cocoapods 今天再使用的时候,在一个项目下执行pod install时半天死活没反应,无奈就ctrl+c了强制退出了.然后再执行的时候就出现错误: Library/Ruby/Site/2.0.0/rubyge…
如下图: 先执行命令: gem update --system 再升级: sudo gem install cocoapods --pre 这样就能够正常升级了.…
在执行gem install redis时 提示: gem install redis ERROR: Error installing redis: redis requires Ruby version >= 2.2.2. 原因,ruby版本小于了2.2.2.1.安装RVM: gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 curl -L get.rvm.io | bash -s stable find / -name rv…
注:根据http://www.jianshu.com/p/6e5c0f78200a的文章做了部分修改 一.什么是CocoaPods CocoaPods是iOS项目的依赖管理工具,该项目源码在Github上管理.开发iOS项目不可避免地要使用第三方开源库,CocoaPods的出现使得我们可以节省设置和第三方开源库的时间.在使用CocoaPods之前,开发项目需要用到第三方开源库的时候,我们需要1.把开源库的源代码复制到项目中2.添加一些依赖框架和动态库3.设置-ObjC,-fno-objc-arc…
1.升级Ruby环境 sudo gem update --system 如果Ruby没有安装,请参考 如何在Mac OS X上安装 Ruby运行环境 2.安装CocoaPods时我们要访问cocoapods.org,用淘宝的RubyGems镜像来代替官方版本,执行以下命令: $ gem sources --remove https://rubygems.org/ //等有反应之后再敲入以下命令 $ gem sources -a https://ruby.taobao.org/ 为了验证你的Rub…
运行 ‘bundle install’ 或者 ‘gem install mysql2′ 遇到如下错误 > gem install mysql2 ERROR: Error installing mysql2: The 'mysql2' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyins…
在执行gem install redis时 提示:    gem install redis    ERROR:  Error installing redis:            redis requires Ruby version >= 2.2.2. 查了查资料,CentOS7 yum库中ruby的版本支持到 2.0.0,可gem 安装redis需要最低是2.2.2,自己编译的ruby源码,再执行还是报错…最后google结合几篇文章解决了: 采用rvm来更新ruby: 1.安装RVM…
If you've installed the OS X Mavericks Beta and you're having ruby issues like this: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem jekyll (>= 0) (Gem::LoadEr…
今天安装 CocoaPods 时遇到了这个问题. ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: cocoapods requires cocoapods-trunk (< 2.0, >= 1.2.0), molinillo (~> 0.5.7), xcodeproj (< 2.0, >= 1.4.4), colored2 (~> 3.1), ru…
注意:千万不要使用sudo来执行gem install redis. 解决方法: sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-pro…
10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods…
原文地址:https://www.zfanw.com/blog/error-while-executing-gem-gem-remote-fetch-error.html 我对命令行下安装 gem 包或是 npm 包有很大的心理阴影,因为出现无法​安装的概率实在太大了 – 每次都要破口大骂 gfw. 这一回是在更新 gem 时: gem update --system 返回的错误如下: ERROR: While executing gem … (Gem::RemoteFetcher::Fetch…
OS X El Capitan 新特性(System Integrity Protection or SIP)中加强了权限,但是可以对这里进行操作 /usr/local/bin 可以尝试使用以下指令进行jekyll的安装(亲测可行,安装完毕后terminal中输入jekyll即可看到是否生效): sudo gem install -n /usr/local/bin/ jekyll 这条指令告诉gem,把jekyll安装到不受SIP保护的文件夹,而不是安装到默认/Library/Ruby/Gems…
ERROR:  While executing gem ... (Gem::FilePermissionError)     You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. 原因是没有写的权限 解决办法 sudo gem install dryrun…
[root@app-test ruby-2.2.3]# gem install capistrano -v 2.15 ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)     Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/capistrano-2.15.0.ge…
问题:前面已经在/usr/local/src安装了ruby-2.3.0.tar.gz.rubygems-2.4.2.tar.gz.在配置 redis-3.1.1 群集中,使用gem install 安装 ruby redis 接口时报: # [root@localhost src]# gem install redis --version 3.0.0 # # 由于源的原因,可能下载失败,就手动下载下来安装 [root@localhost src]# gem install /usr/local/…
gem install pg -v '0.18.2' Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Users/bevan/.rvm/gems/ruby-2.3.0/gems/pg-0.18.2/ext /Users/bevan/.rvm/rubie…
本人在CentOS7上在 执行”gem install rmagick“是报错,具体情况如下: 报错如下: [root@localhost ~]# gem install rmagick -v '2.16.0'Building native extensions. This could take a while...ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. current direc…
rails new demo --database=mysql最后报错Gem files will remain installed in D:/BillFiles/rails_dev/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.15 for inspection.Results logged to D:/BillFiles/rails_dev/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9…
最近打算看ruby. 今天用命令gem install rails的时候碰到这样的错误提示: ERROR:  Error installing XXXXXXXXXXX:            The 'XXXXXXXXXXXX' native gem requires installed build tools.         Please update your PATH to include build tools or download the DevKit    from 'http:…
转自:http://my.oschina.net/moks/blog/200344 [摘要]Because libv8 is the interface for the V8 engine used by therubyracer, you may need to use libv8, even if you have V8 installed already. If you wish to use your own V8 installation, rather than have it bu…