sudo gemsudo apt get installl jekyII 出现错误

在进行安装bundle时,会出现如下的错误。
# gem install bundle
Could not find a valid gem ‘bundle’ (&= 0), here is why:
Unable to download data from
- Errno::ECONNRESET: Connection reset by peer - SSL_connect ()
这种情况,是被墙了。
需要替换了,如下:
# gem sources --remove https://rubygems.org/
removed from sources
# gem sources -a http://ruby.taobao.org/
Error fetching :
bad response Not Found 404 ()
# gem sources -a https://ruby.taobao.org/
already present in the cache
# gem sources -l
CURRENT SOURCES
# gem install bundle
Fetching: bundler-1.10.6.gem (100%)
Successfully installed bundler-1.10.6
本文已收录于以下专栏:
相关文章推荐
一、什么是Bundler
  Bundler是一个采用C和C++开发的称为sfm(struct-from-motion)的系统,它能够利用无序的图片集合(例如来自网络的图片)重建出3D的模型。最早的...
用 jekyll + Github Pages搭建个人博客 update.这里只介绍一种快速搭建个人博客的方式(Linux 环境 Ubuntu 15.10):
(1) 在本地安装jek...
主要参考了两篇文章:
/weizhoupan/archive//Intro_on_Bundler.html
1安装bundler
#sudo gem install bundler
2查看下版本
#bundler -v
3进入Rails根目录
#cd /rails_app
4创建Gemfile文...
安装Bundler Gem:
sudo gem install bundler --no-ri --no-rdoc
安装过程中会出现下面的错误:
[root@h77 ruby-2.0.0-p35...
centeros7 下安装ruby2.4.1 和rubygem2.6.12 在使用gem sources -a https://ruby.taobao.org/ 命令时遇到
问题1:Unable t...
一、 简介GitLab,是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目安装。
它拥有与GitHub类似的功能,...
注:taobao 的 ruby 镜像已经失效,替补方案详情见
Ruby China 的 RubyGems 镜像上线废话不多说直接上错误No binary rubies avail...
逗他娘D方.滨.兴后面的那伙土匪! 土匪啊!
好吧,在没干倒那伙土匪之前, 可以这样子D
gem install bundler -p
http://ruby.taobao...
首先申明此文档是根据别人的安装步骤上进行修改的!解决了上面的很多问题。
参考资料:/centos-6-5-install-gitlab/
GitLab,...
他的最新文章
讲师:王哲涵
讲师:王渊命
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)sudo gem install json遭遇如下的错误信息何解呢?
| 更新于 日
Mac OS X 10.10,安装有Xcode5 和 Xcode 6 beta,command line tools选的是Xcode 5的,我是Ruby初学者
Building native extensions.
This could take a while...
Error installing json:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
1 error generated.
make: *** [generator.o] Error 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
共28条回复
xcode 6 command line tools 装了没?
@ 还有Xcode 5,目前Command line tools选的是Xcode 5的
@ 啊,主题有写,我没看见.
然后我的10.9上也没有这个文件,所以就不知道怎么回事了
在osx上用ruby 建议用rvm,链接在这里: http://rvm.io
@ 没有,你问了以后我才更新到主题上的。
话说RVM专门是为了解决这类版本混乱问题出现的么?
建议用 RVM 或者 rbenv,这两者安装 gem 都是无需 sudo 的,ruby 版本和 gemset 也比较好控制。
@ RVM安装了,但是还是有点问题,我感觉是我机器上面有不同的ruby,然后混乱了
使用RVM安装发现了新的问题
Error running 'requirements_osx_brew_update_system ruby-2.1.2',
showing last 15 lines of /Users/tinyfool/.rvm/log/_ruby-2.1.2/update_system.log
/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'Failed to update Homebrew, follow instructions here:
/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.n'
Failed to update Homebrew, follow instructions here:
/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ return 1
Requirements installation failed with status: 1.
但是brew update也报错,唉,简直就是俄罗斯套娃错误啊
brew update
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
搜到了这个 /chrisb/4d6a09c6cc1ca2e1b14e
目测是因为homebrew 还在用ruby 1.8而10.10上没有1.8导致的问题...总之还是要装xcode 6 command line tools
@ Yosemite的ruby是2.0,把1.8改成Current或者2.0就能用,或者ln一个1.8... 还有别的文件有可能要改
本帖有28个回复,因为您没有注册或者登录本站,所以,只能看到本帖的10条回复。如果想看到全部回复,请注册或者登录本站。(echo呀小echo)
(fantasy的鹅鹅鹅)
第三方登录:

我要回帖

更多关于 sudo pip install 的文章

 

随机推荐