问题描述 RedisDump 是一个用于 Redis 数据导人/导出的工具,是基于 Ruby 实现的,需要先安装 Ruby.但因为 Mac 自带有 Ruby 所以我直接用gem install redis-dump进行安装,但却出现错误. 不想更改系统自带的环境,因为后面遇到兼容性问题会很麻烦.于是我重新用 homebrew 装了一个 Ruby ,简单的一句指令即可: brew install ruby 原以为自己装了新版本 ruby 之后,再执行gem install redis-dump就不…
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…
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…
前言 自上一次升级MacOS系统后出现jekyll无法构建的问题,当时处理半天.谁知道最近又升级了MacOS,荒废博客多时,今天吝啬写了一篇准备发布,构建报错,问题重新.还是记录下,以防下次升级出问题. 问题描述 安装jekyll静态博客需要在Ruby环境下运行,于是参照官方文档命令安装对应的依赖包,但是一大堆报错,坑. 步骤一:运行安装命令 linjiajundeMacBook-Pro:~ linjiajun$ gem install bundler ERROR: While executin…
转自: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…
$ gem sources -r https://rubygems.org/ (移除旧版本的镜像,如果你不知道你电脑上目前用的是什么镜像,可用  $ gem sources -l  来查看)  $ gem sources -a https://gems.ruby-china.org/ (增加可用的镜像)  $ gem sources -l  (用来检查使用替换镜像位置成功) 问题:Unable to add a source with url `https://github.com/CocoaP…
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…
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…
这几天在ubuntu14.04.1 64位上安装rails的时候,由于大天朝的原因,更换了淘宝源,然后执行 gem install rails 这个时候,总是会提示 Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://ruby.taobao.org 的错误. 然后就是一如既往的Google,看了很多帖子,也浪费了大量的时间,最后看到别人说换个ruby的版本就可以了,然后尝试一下,结果真的成功了. 回过头来仔细想了一…
运行 ‘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…