- 浏览: 444918 次
- 性别:
- 来自: 济南
文章分类
- 全部博客 (470)
- 前言 (1)
- 【sys】centos6.2 (51)
- 【sys】shell (8)
- 【sys】yum (1)
- software (6)
- 【tec】ruby (16)
- 【tec】rails (35)
- 【tec】rails路由 (2)
- 【tec】rails部署 (10)
- 【tec】rails优化 (6)
- 【tec】rails测试 (11)
- 【tec】php (45)
- 【tec】android (1)
- 【tec】ios (125)
- 【data】mysql (11)
- web (6)
- 【life】文学与提升 (2)
- life (36)
- 【life】怀念 (1)
- 【web】nginx (5)
- 【web】网络与安全 (4)
- 工作随笔 (1)
- 【software】svn (5)
- 【script】jquery (10)
- powerEdge (2)
- 杂七杂八 (5)
- 【sys】ubuntu (9)
- 【sys】windows (4)
- 【tec】java (1)
- 【tec】html (3)
- 【tec】c++ (38)
- 【tec】汇编 (1)
- 【data】数据库 (1)
- 【exchange 】学术交流 (1)
- 【tec】域名空间 (1)
- 【tec】编程先知 (1)
- 【tec】网站建设 (7)
- 【sys】mac (24)
- 【sys】seo (1)
- 【tec】wp (1)
- 【software】git (4)
最新评论
-
fireDragonpzy:
呵呵 貌似我网站上的有更新 你从那里看看 这个博客维护的不及时 ...
牛人经典语录 -
Peppermintchz:
还真这么2过啊!!好怀念啊
牛人经典语录 -
fireDragonpzy:
chenhong53 写道你好,我想问一下,能不能给一组精灵数 ...
cocos2d-x事件触发的优先级 -
chenhong53:
你好,我想问一下,能不能给一组精灵数组中的精灵添加触屏优先级, ...
cocos2d-x事件触发的优先级 -
fireDragonpzy:
dreamstar1020 写道谢谢庞兄指点,写的很详细,谢谢 ...
致:上海郑兄(虚拟主机-web服务器搭建)
.
https://rvm.beginrescueend.com/rvm/install/
Installing RVM
There are two fundamentally different ways to install and configure RVM.
•Single-User installations - (For an isolated install within a user's $HOME)
•Multi-User installations (For server administrators - For an installation usable by all users on the system - Please note that Single-User supercedes Multi-User. This also used to be called the System-Wide Install)
The system-wide script is no longer available, and any tutorials referencing it will no longer work correctly. Multi-User is the System-Wide install. The only supported install type for multiple users is the Multi-User install referenced below.
Note that that any outside tutorials are NOT supported whether they work or not. Tutorials are great, however we have spent massive amounts of man hours debugging the installation process. Please use the install process(es) from this site only, as this is the only supported installation types and methods.
For most purposes, the recommended installation method is Single-User, which is a self-contained RVM installation in a user's home directory.
To update an existing RVM installation
It is safe to simply re-run the installation script again, or you can follow the upgrading docs.
Installation
I recommend you read the installation script yourself. This will give you a chance to understand what it is doing before installing, and allow you to feel more comfortable running it if you do so.
1. Download and run the RVM installation script
Installing the latest release version in git:
user$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )For a Multi-User install you would execute the following:
user$ sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) Note: All multi-user install instructions must be prefixed with the 'sudo' command.
Installing a specific version:
user$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latestFor a Multi-User install you would do:
user$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o rvm-installer ; chmod +x rvm-installer ; sudo ./rvm-installer --version latestSingle-User Install Location: ~/.rvm/
If the install script is run as a standard, non-root user, RVM will install into the current users's home directory.
Multi-User Install Location: /usr/local/rvm
If the install script is run prefixed with sudo, RVM will automatically install into /usr/local/rvm Please see the troubleshooting page for an important note regarding Multi-User Installs.
If the rvm install script does nothing or complains about certificates you can bypass this by adding a '-k' switch to the curl command:
For Single-User installs
user$ bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)Please see the FAQ page for an important note regarding root only installs
For a Multi-User install you would do:
user$ sudo bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)2. Load RVM into your shell sessions as a function
Throughout these instructions, you may replace .bash_profile with the appropriate startup script for your bash-compatible shell. For other shells you may need to modify these commands. Zsh should be able to use these commands unmodified.
Single-User:
Load RVM by appending the rvm function sourcing to your .bash_profile:
user$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profileMulti-User:
The rvm function will be automatically configured for every user on the system if you install as root. This is accomplished by loading /etc/profile.d/rvm.sh on login. Most Linux distributions default to parsing /etc/profile which contains the logic to load all files residing in the /etc/profile.d/ directory. Once you have added the users you want to be able to use RVM to the rvm group, those users MUST log out and back in to gain rvm group membership because group memberships are only evaluated by the operating system at initial login time.
3. Reload shell configuration & test
Close out your current shell or terminal session and open a new one. You may attempt reloading your .bash_profile with the following command:
user$ source .bash_profileHowever, closing out your current shell or terminal and opening a new one is the preferred way for initial installations.
If installation and configuration were successful, RVM should now load whenever you open a new shell. This can be tested by executing the following command which should output 'rvm is a function' as shown below.
user$ type rvm | head -1rvm is a functionFinally, see if there are any dependency requirements for your operating system by running:
user$ rvm requirementsNOTE: Whenever you upgrade RVM in the future, you should always run 'rvm notes' and 'rvm requirements' as this is usually where you will find details on any major changes and/or additional requirements to ensure your installation stays working. Also, you should also run the above command on any fresh installs. This is where all your additionals will be noted making it an extremely important stop on your way to RVM bliss!
Congratulations! You have successfully installed RVM.
Try out your new RVM installation
Below are some examples of how to install and use a Ruby under RVM.
Display a list of all "known" rubies. NOTE: RVM can install many more Rubies not listed.
user$ rvm list known# MRI Rubies...[ruby-]1.8.7[-p334][ruby-]1.8.7-head...[ruby-]1.9.2[-p180][ruby-]1.9.2-headruby-head# JRubyjruby-1.2.0...Install a version of Ruby (eg 1.9.2):
user$ rvm install 1.9.2Installing Ruby from source to: /Users/user/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...ruby-1.9.2-p180 - #fetchingruby-1.9.2-p180 - #downloading ruby-1.9.2-p180, this may take a while depending on your connection......ruby-1.9.2-p180 - #extracting ruby-1.9.2-p180 to /Users/user/.rvm/src/ruby-1.9.2-p180ruby-1.9.2-p180 - #extracted to /Users/user/.rvm/src/ruby-1.9.2-p180ruby-1.9.2-p180 - #configuringruby-1.9.2-p180 - #compilingruby-1.9.2-p180 - #installing...Install of ruby-1.9.2-p180 - #completeUse the newly installed Ruby:
user$ rvm use 1.9.2Using /Users/user/.rvm/gems/ruby-1.9.2-p180Check this worked correctly:
user$ ruby -vruby 1.9.2p180 (2011-02-18 revision 30909) [i386-darwin9.8.0]user$ which rubyUsing /Users/user/.rvm/gems/ruby-1.9.2-p180/bin/rubyOptionally, you can set a version of Ruby to use as the default for new shells. Note that this overrides the 'system' ruby:
user$ rvm use 1.9.2 --defaultEnjoy using RVM!
Where to now?
If you are new to RVM I recommend that you read the basics page. At the end of the basics page there are further links for getting started.
Troubleshooting Your Install
•If you open a new shell and running:
$ type rvm | head -1does not show "rvm is a function", RVM isn't being sourced correctly.
•Ensure that RVM is sourced after any path settings as RVM and manipulates the path. If you don't do this, RVM may not work as expected.
•If you are using GNOME on Red Hat, CentOS or Fedora, ensure that the Run command as login shell option is checked under the Title and Command tab in Profile Preferences. After changing this setting, you may need to exit your console session and start a new one before the changes take affect.
Example RVM bootstrap script
The following script will boostrap git + RVM, assuming that you have curl and sudo installed. The last line of the script will also install several commonly used Rubies for you.
#!/usr/bin/env bash# Install gitbash < <( curl -s https://rvm.beginrescueend.com/install/git )# Install RVMbash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )# Install some Rubiessource "$HOME/.rvm/scripts/rvm"rvm install 1.9.2,rbx,jrubyFor a Multi-User install you would use:
#!/usr/bin/env bash# Install gitsudo bash < <( curl -s https://rvm.beginrescueend.com/install/git )# Install RVMsudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )# Install some Rubiessource "/usr/local/rvm/scripts/rvm"rvm install 1.9.2,rbx,jruby
https://rvm.beginrescueend.com/rvm/install/
Installing RVM
There are two fundamentally different ways to install and configure RVM.
•Single-User installations - (For an isolated install within a user's $HOME)
•Multi-User installations (For server administrators - For an installation usable by all users on the system - Please note that Single-User supercedes Multi-User. This also used to be called the System-Wide Install)
The system-wide script is no longer available, and any tutorials referencing it will no longer work correctly. Multi-User is the System-Wide install. The only supported install type for multiple users is the Multi-User install referenced below.
Note that that any outside tutorials are NOT supported whether they work or not. Tutorials are great, however we have spent massive amounts of man hours debugging the installation process. Please use the install process(es) from this site only, as this is the only supported installation types and methods.
For most purposes, the recommended installation method is Single-User, which is a self-contained RVM installation in a user's home directory.
To update an existing RVM installation
It is safe to simply re-run the installation script again, or you can follow the upgrading docs.
Installation
I recommend you read the installation script yourself. This will give you a chance to understand what it is doing before installing, and allow you to feel more comfortable running it if you do so.
1. Download and run the RVM installation script
Installing the latest release version in git:
user$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )For a Multi-User install you would execute the following:
user$ sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) Note: All multi-user install instructions must be prefixed with the 'sudo' command.
Installing a specific version:
user$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latestFor a Multi-User install you would do:
user$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o rvm-installer ; chmod +x rvm-installer ; sudo ./rvm-installer --version latestSingle-User Install Location: ~/.rvm/
If the install script is run as a standard, non-root user, RVM will install into the current users's home directory.
Multi-User Install Location: /usr/local/rvm
If the install script is run prefixed with sudo, RVM will automatically install into /usr/local/rvm Please see the troubleshooting page for an important note regarding Multi-User Installs.
If the rvm install script does nothing or complains about certificates you can bypass this by adding a '-k' switch to the curl command:
For Single-User installs
user$ bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)Please see the FAQ page for an important note regarding root only installs
For a Multi-User install you would do:
user$ sudo bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)2. Load RVM into your shell sessions as a function
Throughout these instructions, you may replace .bash_profile with the appropriate startup script for your bash-compatible shell. For other shells you may need to modify these commands. Zsh should be able to use these commands unmodified.
Single-User:
Load RVM by appending the rvm function sourcing to your .bash_profile:
user$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profileMulti-User:
The rvm function will be automatically configured for every user on the system if you install as root. This is accomplished by loading /etc/profile.d/rvm.sh on login. Most Linux distributions default to parsing /etc/profile which contains the logic to load all files residing in the /etc/profile.d/ directory. Once you have added the users you want to be able to use RVM to the rvm group, those users MUST log out and back in to gain rvm group membership because group memberships are only evaluated by the operating system at initial login time.
3. Reload shell configuration & test
Close out your current shell or terminal session and open a new one. You may attempt reloading your .bash_profile with the following command:
user$ source .bash_profileHowever, closing out your current shell or terminal and opening a new one is the preferred way for initial installations.
If installation and configuration were successful, RVM should now load whenever you open a new shell. This can be tested by executing the following command which should output 'rvm is a function' as shown below.
user$ type rvm | head -1rvm is a functionFinally, see if there are any dependency requirements for your operating system by running:
user$ rvm requirementsNOTE: Whenever you upgrade RVM in the future, you should always run 'rvm notes' and 'rvm requirements' as this is usually where you will find details on any major changes and/or additional requirements to ensure your installation stays working. Also, you should also run the above command on any fresh installs. This is where all your additionals will be noted making it an extremely important stop on your way to RVM bliss!
Congratulations! You have successfully installed RVM.
Try out your new RVM installation
Below are some examples of how to install and use a Ruby under RVM.
Display a list of all "known" rubies. NOTE: RVM can install many more Rubies not listed.
user$ rvm list known# MRI Rubies...[ruby-]1.8.7[-p334][ruby-]1.8.7-head...[ruby-]1.9.2[-p180][ruby-]1.9.2-headruby-head# JRubyjruby-1.2.0...Install a version of Ruby (eg 1.9.2):
user$ rvm install 1.9.2Installing Ruby from source to: /Users/user/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...ruby-1.9.2-p180 - #fetchingruby-1.9.2-p180 - #downloading ruby-1.9.2-p180, this may take a while depending on your connection......ruby-1.9.2-p180 - #extracting ruby-1.9.2-p180 to /Users/user/.rvm/src/ruby-1.9.2-p180ruby-1.9.2-p180 - #extracted to /Users/user/.rvm/src/ruby-1.9.2-p180ruby-1.9.2-p180 - #configuringruby-1.9.2-p180 - #compilingruby-1.9.2-p180 - #installing...Install of ruby-1.9.2-p180 - #completeUse the newly installed Ruby:
user$ rvm use 1.9.2Using /Users/user/.rvm/gems/ruby-1.9.2-p180Check this worked correctly:
user$ ruby -vruby 1.9.2p180 (2011-02-18 revision 30909) [i386-darwin9.8.0]user$ which rubyUsing /Users/user/.rvm/gems/ruby-1.9.2-p180/bin/rubyOptionally, you can set a version of Ruby to use as the default for new shells. Note that this overrides the 'system' ruby:
user$ rvm use 1.9.2 --defaultEnjoy using RVM!
Where to now?
If you are new to RVM I recommend that you read the basics page. At the end of the basics page there are further links for getting started.
Troubleshooting Your Install
•If you open a new shell and running:
$ type rvm | head -1does not show "rvm is a function", RVM isn't being sourced correctly.
•Ensure that RVM is sourced after any path settings as RVM and manipulates the path. If you don't do this, RVM may not work as expected.
•If you are using GNOME on Red Hat, CentOS or Fedora, ensure that the Run command as login shell option is checked under the Title and Command tab in Profile Preferences. After changing this setting, you may need to exit your console session and start a new one before the changes take affect.
Example RVM bootstrap script
The following script will boostrap git + RVM, assuming that you have curl and sudo installed. The last line of the script will also install several commonly used Rubies for you.
#!/usr/bin/env bash# Install gitbash < <( curl -s https://rvm.beginrescueend.com/install/git )# Install RVMbash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )# Install some Rubiessource "$HOME/.rvm/scripts/rvm"rvm install 1.9.2,rbx,jrubyFor a Multi-User install you would use:
#!/usr/bin/env bash# Install gitsudo bash < <( curl -s https://rvm.beginrescueend.com/install/git )# Install RVMsudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )# Install some Rubiessource "/usr/local/rvm/scripts/rvm"rvm install 1.9.2,rbx,jruby
发表评论
-
iptables
2012-05-16 09:14 824# Firewall configuration writte ... -
linux 启动文件
2012-05-09 20:03 830l0:0:wait:/etc/rc.d/rc 0 l1: ... -
linux服务自启动
2012-05-09 19:40 905以下是我整理的一些有关"linux服务自动启动功能& ... -
基于DNS的分布式字典查询服务使用方法
2012-05-06 16:16 8601. 在 ~/.bashrc 的末尾添加下面两行 # jia ... -
linux jdk安装
2012-04-30 11:04 15621、下载jdk linux版本 地址:http://www. ... -
linux下php环境搭建
2012-04-24 10:50 13631.卸载自带的php rpm -qa|grep php ... -
linux下php编译参数
2012-04-24 10:14 775http://huagelinux.blog.163.com/ ... -
linux 支持gb2312文件
2012-04-24 09:22 1439用命令:locale -a 可以查看是否支持gb2312 ... -
centos下mysql安装
2012-04-20 15:01 935#wget http://mysql.ntu.edu.tw/D ... -
Linux下查看用户及用户组的方法
2012-03-26 15:54 891http://soft.chinabyte.com/os/15 ... -
mysql 的自动启动 使用配置文件 /etc/my.cnf
2012-03-17 14:27 749http://www.cnblogs.com/cy163/ar ... -
linux命令积累
2012-03-17 14:15 8271 查看文件属性: ll 文件名 2 创建软连接: ln - ... -
libmysqlclient.so.18错误
2012-03-17 13:08 2540设置libmysqlclient的软链,防止编译其它依赖Mys ... -
linux下的vi命令
2012-03-16 10:37 1023vi编辑器有3种模式:命令模式、输入模式、末行模式。掌握这三种 ... -
解决远程连接mysql错误1130
2012-03-16 09:45 894远程连接Mysql服务器的数据库,错误代码是1130,ERRO ... -
Linux SSH远程文件目录传输命令scp (转载)
2012-03-15 16:01 921相信各位VPSer在使用VPS时会经常在不同VPS间互相备份数 ... -
Centos6.2 web服务器分区--self
2012-02-22 10:44 1792分区类型 分区的实 ... -
Centos目录解析--self
2012-02-22 10:42 1350Centos文件系统: 1.普通文件 2.目录文件 3. ... -
linux下的chkconfig
2012-02-17 16:27 13621 chkconfig 检查和设置系统的各种服务。 语法:c ... -
linux下svn服务开机自启动
2012-02-17 16:17 2764本文为firedragonpzy原创,转载务必在明显处注明: ...
相关推荐
rvm安装资源,版本rvm 1.29.12,rvm 1.29.12-next () by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io],可以直接使用,把文件下载后放到指定位置,然后加载资源就可以用了,加载资源的帖子一会...
在安装redis集群的时候,我们按照网站上的部署文档需要安装rvm,然后再安装ruby2.4.4会导致ctrl+c功能失效,解决起来也比较恶心。现在这里的rvm的tar包,解压后在rvm/rubies/,就已经有了ruby2.4.4配置一下环境变量...
安装RVM命令: 代码如下: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) 然后修改用户配置文件/Users/username/.profile,你也可以写到别的全局配置里. 添加一行代码: 代码...
RVM 是一个命令行工具,可以提供一个便捷的多版本 Ruby 环境的管理和切换。 https://rvm.io/ ...修改 RVM 的 Ruby 安装源到国内的 淘宝镜像服务器,这样能提高安装速度 $ sed -i -e 's/ftp\.ruby-lang\.org\/p
RVM全称是ruby version manager,它是一个命令行工具,允许您轻松地安装管理和使用多个ruby环境。 虽然macOS自带了一个ruby环境,但是那是系统自己使用的,所以权限很小,只有system。而/Library目录是root权限,...
puppet-rvm, 用于安装和使用 RVM ( ruby 版本管理器)的Puppet 模块 用于 ruby 版本管理器( RVM )的 Puppet 模块这个模块处理安装系统 RVM ( 也称为 root的多用户安装) 并使用它来安装红宝石和 Gems 。 还包括安装和...
rvm-1.29.9.tar.gz linux安装包,支持操作系统centos7等linux系统,安装后可在linux系统执行rvm命令
rvm.el, 使用rvm管理emacs中的ruby 版本 rvm.el 这个软件包将Emacs与 ruby 版本管理器( rvm ) 集成在一起。注意:这个项目目前未维护。... 安装在加载路径中放置 rvm.el 并将它的放在你的。emacs中(req
ruby-2.5.3.tar.gz rubyinstaller-2.2.4-x64.exe rvm-1.29.10.tar.gz
要在 Linux 系统上安装 RVM ,可以打开终端输入: $ \curl -L https://get.rvm.io | bash -s stable 它会自动创建一个“ $HOME/.rvm ”文件夹,这是 RVM 的工作目录。在此文件夹中,有三个文件夹: scripts 、...
可用于 redis5.0 以下版本的集群安装部署,解压后,对相关资源进行编译安装即可,应用安装方法可参考:https://blog.csdn.net/qq_42177284/article/details/128924576#3221__236 ruby 版本号为:2.5.1 rvm 版本号为...
安装 RVM 通常使用 RVM 或 rbenv 来安装 Ruby,这里选用 RVM。 $ curl -sSL https://get.rvm.io | bash -s stable 载入 RVM : $ source /home/libuchao/.rvm/scripts/rvm $ rvm -v rvm 1.25.12 (stable) by ...
在一台老机器上面装了 openSUSE 12.3,然后使用 rvm 安装了 ruby,其实任何好的发行版打包的 ruby 都不如使用 rvm 安装的 ruby,亲身感受(不服来辩)。 然后,使用 gem 安装一些软件的时候,会出现如下的错误: ...
Redis安装遇到错误解决方案Error installing redis: redis requires Ruby version >= 2.3.0. 先安装rvm,再把ruby版本提升至2.3.0
安装 RVM curl -sSL https://get.rvm.io | bash -s stable 验证 RVM 安装 rvm --version 如果您收到“RVM ...已安装”消息,则只需 rvm reload 安装Ruby rvm install 2.1.0 如果您遇到 brew 错
如果您需要其他(较新)版本的RVM,请在安装基本版本的RVM之后检查以下“部分。 任何其他操作系统 确保已安装以下必需的软件包: curl gpg2 然后运行: \curl -sSL https://get.rvm.io | bash -s stable 其他...
毫吉斯 地理位置分散的站点的项目管理 更新中心 百胜更新 yum install -y epel-release yum-utils yum-config-manager-启用epel yum clean all && sudo yum ... rvm安装ruby-devel-2.6.6 bash -l -c“ rvm use 2.6.6
RVM是一个命令行管理工具,允许开发者很容易的去安装、管理ruby的版本;并且可以很容易的在多个ruy版本之间切换。 Linux 系统下使用 RVM 管理 Ruby 版本 Ruby 是一种流行的面向对象的脚本语言,它运行在 Linux 系统...
rvm 的全称是 Ruby Version Manager ,是一款由 Wayne E. Seguin 开发的一款命令行工具。rvm 能够让你轻松的安装、管理 ruby 生产力环境,诸如不同版本的解释器和 gem 。