ruby安装插件报错

有时候我们需要安装ruby插件的时候,会报如下错误:

ERROR:  Could not find a valid gem ‘rdiscount‘ (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://rubygems.org/latest_specs.4.8.gz)

图片如下:

这个错误是因为,ruby被墙的原因,我们把ruby的源改成国内的源就可以了,淘宝已经把 rubygems镜像拷贝过来了,因此我们可以将镜像的源改成淘宝的。

查看镜像源:

 $ gem sources

删除ruby官网镜像源:

$ gem sources --remove http://rubygems.org/

添加淘宝镜像源:

$ gem sources --a http://ruby.taobao.org/

  

步骤如下图:

当替换掉镜像源之后,安装ruby插件就毫无压力了。

时间: 2024-10-07 02:11:59

ruby安装插件报错的相关文章

禅道安装插件报错的处理

在安装禅道插件后,访问时出现下列错误信息 解决: 进入http://www.ioncube.com/loaders.php网站下载ioncube_loaders_lin_x86-64.tar软件包 将该软件包解压 [[email protected] ~]# cd /var/www/html/zentaopms/www/[[email protected] www]# lsdata  favicon.ico  index.php ioncube.php  js  ok.txt  robots.t

ruby安装sass报错解决办法

ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from http://rubygems.org/ - Errno::EACCES: Per mission denied - connect(2) (http://rubygems.org/latest_specs.4.8.gz) This is work for me. Try this... gem source -a 

iOS 用CocoaPods做iOS程序的依赖管理(基于Alcatraz),以及升级Mac 10.11后Xcode的CocoaPods插件报错

创建Podfile文件 1.点击红框, Creat Podfile 2.接着弹出Podfile文件 3.Edit Profile, 下面以添加融云SDK为例: 融云SDK Podfile文件添加如下内容: Podfile Edited 1 也可以这样编辑: 屏幕快照 2015-10-27 上午9.04.47.png "7.0"表示引入的第三方库所支持的最低版本 target "CocoaPodsDemo"是你的目标应用项目 do ... end 是你的作用域 Ins

Ceph安装QEMU报错:User requested feature rados block device configure was not able to find it

CentOS6.3中,要想使用Ceph的block device,需要安装更高版本的QEMU. 安装好ceph后,安装qemu-1.5.2 # tar -xjvf qemu-1.5.2.tar.bz2 # cd qemu-1.5.2 # ./configure --enable-rbd 一定要加上--enable-rbd选项,这样qemu才能支持rbd协议. 这一步可能会报错: ERROR: User requested feature rados block device configure

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An

CentOS安装过程报错

Unable to read group information from repositories.  This is a problem with the generation of your install tree 网上搜到说是bug http://bbs.linuxtone.org/thread-16947-1-1.html 个人解决办法:把boot大小由200改为1024安装不报错

安装MySQL-python报错error: command 'gcc' failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

Centos安装fabric 报错:error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)

Centos安装fabric 报错: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) 需要安装libffi-devel Debian或Ubuntu需要安装 libffi-dev

maven插件报错之解决

maven插件报错之解决 用m2eclipse创建Maven项目时报错?? maveneclipsebuilddependenciesauthorizationplugins 用m2eclipse创建Maven项目时报错?? 问题: Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.