非Rubyer 有关 rvm rubygems求助

下次自动登录
现在的位置:
& 综合 & 正文
安装RVM(ruby版本控制)
[maijunjin@localhost ruby]$ curl -L get.rvm.io | bash -s stable
curl: (6) Couldn't resolve host 'get.rvm.io'
在浏览器上访问get.rvm.io,实际跳转到如下地址
/wayneeseguin/rvm/master/binscripts/rvm-installer
所以,修改命令:
curl -L /wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
安装成功之后,会有如下的提示
[maijunjin@localhost ruby]$ curl -L /wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
% Received % Xferd
Average Speed
0:00:06 --:--:-- 37428
Downloading /wayneeseguin/rvm/archive/stable.tar.gz
Installing RVM to /home/maijunjin/.rvm/
Adding rvm PATH line to /home/maijunjin/.profile /home/maijunjin/.bashrc /home/maijunjin/.zshrc.
Adding rvm loading line to /home/maijunjin/.bash_profile /home/maijunjin/.zlogin.
Installation of RVM in /home/maijunjin/.rvm/ is almost complete:
* To start using RVM you need to run `source /home/maijunjin/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# maijunjin,
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: http://rvm.io/help and /rvm_io
* WARNING: You have '~/.profile' file, you might want to load it,
to do that add the following line to '/home/maijunjin/.bash_profile':
source ~/.profile
/home/maijunjin/.bashrc:10:export PATH=/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/maijunjin/bin:${M2_HOME}/bin
* WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
for details check /wayneeseguin/rvm/issues/1351#issuecomment-
to avoid this warning append #PATH.
&&&&推荐文章:
【上篇】【下篇】【译】如何使用RVM在Ubuntu 12.04 LTS上安装Ruby on Rails | zrong's blog
黑斑马团队
曾嵘胡扯的地方
- 366,095 views - 66,182 views - 52,635 views - 47,637 views - 41,376 views - 38,774 views - 38,328 views - 35,291 views - 34,708 views - 29,745 views
2017年二月 &(3)
2017年一月 &(3)
2016年十二月 &(2)
2016年十一月 &(6)
2016年十月 &(2)
2016年九月 &(2)
2016年八月 &(2)
2016年七月 &(3)
2016年六月 &(2)
2016年五月 &(2)
2016年四月 &(9)
2016年三月 &(6)
2016年二月 &(4)
2016年一月 &(3)
2015年十二月 &(4)
2015年十一月 &(3)
2015年十月 &(2)
2015年九月 &(5)
2015年八月 &(2)
2015年七月 &(6)
2015年六月 &(4)
2015年五月 &(4)
2015年四月 &(3)
2015年三月 &(3)
2015年二月 &(2)
2015年一月 &(6)
2014年十二月 &(6)
2014年十一月 &(11)
2014年十月 &(5)
2014年九月 &(4)
2014年八月 &(4)
2014年七月 &(5)
2014年六月 &(3)
2014年五月 &(2)
2014年四月 &(11)
2014年三月 &(7)
2014年二月 &(5)
2014年一月 &(5)
2013年十二月 &(7)
2013年十一月 &(6)
2013年十月 &(7)
2013年九月 &(8)
2013年八月 &(7)
2013年六月 &(3)
2013年五月 &(11)
2013年四月 &(5)
2013年三月 &(3)
2013年二月 &(4)
2013年一月 &(12)
2012年十二月 &(11)
2012年十一月 &(9)
2012年十月 &(6)
2012年九月 &(6)
2012年八月 &(13)
2012年七月 &(5)
2012年六月 &(2)
2012年五月 &(3)
2012年四月 &(11)
2012年三月 &(12)
2012年二月 &(15)
2012年一月 &(4)
2011年十二月 &(7)
2011年十一月 &(9)
2011年十月 &(3)
2011年九月 &(9)
2011年八月 &(9)
2011年七月 &(10)
2011年六月 &(9)
2011年五月 &(5)
2011年四月 &(7)
2011年三月 &(3)
2011年二月 &(15)
2011年一月 &(3)
2010年十二月 &(14)
2010年十一月 &(6)
2010年十月 &(2)
2010年九月 &(7)
2010年八月 &(16)
2010年七月 &(11)
2010年六月 &(4)
2010年五月 &(15)
2010年四月 &(2)
2010年三月 &(1)
2010年二月 &(1)
2010年一月 &(4)
2009年十二月 &(7)
2009年十一月 &(3)
2009年十月 &(1)
2009年九月 &(3)
2009年八月 &(5)
2009年七月 &(1)
2009年六月 &(1)
2009年三月 &(10)
2009年二月 &(4)
2008年十一月 &(2)
2008年十月 &(1)
2008年八月 &(4)
2008年七月 &(4)
2008年六月 &(4)
2008年五月 &(1)
2008年四月 &(4)
2008年三月 &(7)
2008年二月 &(5)
2008年一月 &(1)
2007年十二月 &(6)
2007年十一月 &(7)
2007年十月 &(1)
2007年九月 &(4)
2007年八月 &(6)
2007年七月 &(6)
2007年六月 &(4)
2007年五月 &(4)
2007年三月 &(3)
2007年二月 &(10)
2007年一月 &(12)
2006年十二月 &(9)
2006年十一月 &(4)
2006年十月 &(11)
2006年九月 &(10)
2006年八月 &(9)
2006年七月 &(9)
2006年六月 &(11)
2006年五月 &(15)
2006年四月 &(6)
2006年三月 &(16)
2006年二月 &(15)
2006年一月 &(4)
2005年十一月 &(14)
2005年十月 &(10)
2005年九月 &(7)
2005年八月 &(2)
2005年七月 &(10)
2005年六月 &(5)
2005年五月 &(11)
2005年四月 &(3)
静态文件存储由提供
CC BY-NC-SA
署名-非商业性使用-相同方式共享RVM切换ruby版本
RVM是Ruby Version Manager的缩写,是一个命令行工具,它可以让你轻松地安装,管理和使用多个版本的Ruby.不同的rails项目使用等ruby和rails版本不一样的时候,可以使用RVM自由切换。 安装RV
RVM&是Ruby Version Manager的缩写,是一个命令行工具,它可以让你轻松地安装,管理和使用多个版本的Ruby.不同的rails项目使用等ruby和rails版本不一样的时候,可以使用RVM自由切换。
Install RVM (development version)-安装ruby开发版
\curl -sSL https://get.rvm.io | bash
Install RVM stable with ruby-安装带ruby的稳定版:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
查看ruby版本
会看到如下输出:
rvm rubies
ruby-2.2.0 [ x86_64 ]
=* ruby-2.2.1 [ x86_64 ]
ruby-2.2.3 [ x86_64 ]
# =& - current
# =* - current && default
* - default
查看当前ruby版本
rvm current
切换ruby版本
现在2.2.1是正在使用的ruby版本,如果想切换到2.2.2:
rvm --default use 2.2.2
若果2.2.2版本没有安装,会提示&ruby-2.2.2 is not installed.&
,命令安装:
rvm install ruby-2.2.2
(责任编辑:最模板)
------分隔线----------------------------
Ruby 中使用 mixin 优雅的解决了 multiple inheritance 问题。在 Java 世界...
作为iOS程序员,掌握 CocoaPods 的使用是必不可少的基本技能,它...
1. 下载RubyInstaller 去RubyInstaller.org官网中下载 2. 安装Ruby 双击Ru...
安装部署ruby on rails 的环境时并不是想的那么顺利 这个是我遇到...
RVM是Ruby Version Manager的缩写,是一个命令行工具,它可以让你轻...
CopyRight (C)
最模板 , 深圳奇好科技有限公司 All Rights Reserved.用 rvm 安装 ruby 出错 · Ruby China
系统:fedora 20
问题:rvm已经安装成功,用命令rvm requirements运行结果如下,错误在error running那里,不知道如何解决.
[myname@localhost ~]$ rvm requirements
Checking requirements for fedora.
Installing requirements for fedora.
Installing required packages: patch, libyaml-devel, autoconf, patch, readline-devel, libffi-devel, openssl-devel, automake, libtool, bison, sqlite-devel..smallbottle password required for 'yum install -y patch libyaml-devel autoconf patch readline-devel libffi-devel openssl-devel automake libtool bison sqlite-devel':
...........................................................
Error running 'requirements_centos_libs_install patch libyaml-devel autoconf patch readline-devel libffi-devel openssl-devel automake libtool bison sqlite-devel',
showing last 15 lines of /home/myname/.rvm/log//package_install_patch_libyaml-devel_autoconf_patch_readline-devel_libffi-devel_openssl-devel_automake_libtool_bison_sqlite-devel.log
xorg-x11-server-Xorg-1.14.4-11.fc20.x86_64 是 xorg-x11-server-Xorg-1.14.4-5.fc20.x86_64 的副本
xorg-x11-server-common-1.14.4-11.fc20.x86_64 是 xorg-x11-server-common-1.14.4-5.fc20.x86_64 的副本
xorg-x11-server-utils-7.7-6.fc20.x86_64 是 xorg-x11-server-utils-7.7-2.fc20.x86_64 的副本
1:xorg-x11-xauth-1.0.9-1.fc20.x86_64 是 1:xorg-x11-xauth-1.0.7-4.fc20.x86_64 的副本
xorg-x11-xinit-1.3.4-1.fc20.x86_64 是 xorg-x11-xinit-1.3.2-9.fc20.x86_64 的副本
xulrunner-32.0-1.fc20.x86_64 是 xulrunner-25.0-2.fc20.x86_64 的副本
xz-5.1.2-12alpha.fc20.x86_64 是 xz-5.1.2-6alpha.fc20.x86_64 的副本
xz-libs-5.1.2-12alpha.fc20.x86_64 是 xz-libs-5.1.2-6alpha.fc20.x86_64 的副本
1:yelp-3.10.2-1.fc20.x86_64 是 1:yelp-3.10.1-1.fc20.x86_64 的副本
1:yelp-libs-3.10.2-1.fc20.x86_64 是 1:yelp-libs-3.10.1-1.fc20.x86_64 的副本
yum-3.4.3-152.fc20.noarch 是 yum-3.4.3-106.fc20.noarch 的副本
yum-utils-1.1.31-23.fc20.noarch 是 yum-utils-1.1.31-18.fc20.noarch 的副本
zenity-3.8.0-4.fc20.x86_64 是 zenity-3.8.0-3.fc20.x86_64 的副本
Requirements installation failed with status: 1.
我在网上找了半天也没找到解决方法,求帮助
sudo yum install -y patch libyaml-devel autoconf patch readline-devel libffi-devel openssl-devel automake libtool bison sqlite-devel
手动调用这个试试
好像是因为用不同的源导致了包的重复,依赖关系错误了.我重装了一下系统,再安装就可以了.谢谢你啊
后方可回复, 如果你还没有账号请点击这里 。
共收到 2 条回复}

我要回帖

更多关于 rvm切换ruby版本 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信