RAILS ON
我是按照下面这个URL来轻快安装的。
http://lxiaodao.iteye.com/blog/1579992
(1)RVM官方网站应该是改版过一次,
使用
- curl -L https://get.rvm.io | bash -s stable
下载并安装rvm稳定版本。不在使用bash < <(curl -s https://rvm.beginrescueend.com/install/rvm),切记。
很快安装完rvm后,重新登录一个新的ssh,使用rvm -v检查一下版本即可。
(2)安装一些以来库,编译安装其它软件或者库的时候会用到
- yum install zlib zlib-devel sqlite-devel
最后的信息大致如下:
- ...... 30 kB/s | 124 kB 00:04
- Running rpm_check_debug
- Running Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : sqlite-devel-3.6.20-1.el6.i686 1/2
- Installing : zlib-devel-1.2.3-27.el6.i686 2/2
- Installed:
- sqlite-devel.i686 0:3.6.20-1.el6 zlib-devel.i686 0:1.2.3-27.el6
- Complete!
(3)强烈推荐安装ruby前,先安装openssl,否则以后要用到ssl的时候可能痛不欲生地要重新安装ruby。
- rvm pkg install openssl
安装完成后,有下面的提示信息,如果安装错误,也有提示告示你到哪里查看日志。
- [root@localhost config]# rvm pkg install openssl
- Fetching openssl-0.9.8t.tar.gz to /usr/local/rvm/archives
- Extracting openssl-0.9.8t.tar.gz to /usr/local/rvm/src
- Configuring openssl in /usr/local/rvm/src/openssl-0.9.8t.
- Compiling openssl in /usr/local/rvm/src/openssl-0.9.8t.
- Installing openssl to /usr/local/rvm/usr
不同的操作系统或者用户,安装位置可能不一样。
(4)指定openssl位置来安装ruby
提示有一些库可能需要安装,请根据实际情况决策是否需要yum install一些以来库。
- yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
可以先安装上面的一些库,再安装ruby
- rvm install 1.9.2 --with-openssl-dir=/usr/local/rvm/usr
我看完提示信息后,q推出提示,没有安装其它依赖库,继续安装ruby。
- ......
- Press 'q' to continue.
- Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 460k 100 460k 0 0 29602 0 0:00:15 0:00:15 --:--:-- 34256
- Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src
- Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
- Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
- Installing yaml to /usr/local/rvm/usr
- Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...
- ruby-1.9.2-p320 - #fetching
- ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection...
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 8770k 100 8770k 0 0 44230 0 0:03:23 0:03:23 --:--:-- 55436
- ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /usr/local/rvm/src/ruby-1.9.2-p320
- ruby-1.9.2-p320 - #extracted to /usr/local/rvm/src/ruby-1.9.2-p320
- ruby-1.9.2-p320 - #configuring
- ruby-1.9.2-p320 - #compiling
- ruby-1.9.2-p320 - #installing
- Retrieving rubygems-1.8.24
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 371k 100 371k 0 0 38121 0 0:00:09 0:00:09 --:--:-- 38064
- Extracting rubygems-1.8.24 ...
- Removing old Rubygems files...
- Installing rubygems-1.8.24 for ruby-1.9.2-p320 ...
- Installation of rubygems completed successfully.
- ruby-1.9.2-p320 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
- ruby-1.9.2-p320 - #importing default gemsets (/usr/local/rvm/gemsets/)
- Install of ruby-1.9.2-p320 - #complete
(5) rvm use 1.9.2
(6) gem install rails
- Fetching: i18n-0.6.0.gem (100%)
- Fetching: multi_json-1.3.6.gem (100%)
- Fetching: activesupport-3.2.6.gem (100%)
- Fetching: builder-3.0.0.gem (100%)
- Fetching: activemodel-3.2.6.gem (100%)
- Fetching: rack-1.4.1.gem (100%)
- Fetching: rack-cache-1.2.gem (100%)
- Fetching: rack-test-0.6.1.gem (100%)
- Fetching: journey-1.0.4.gem (100%)
- Fetching: hike-1.2.1.gem (100%)
- Fetching: tilt-1.3.3.gem (100%)
- Fetching: sprockets-2.1.3.gem (100%)
- Fetching: erubis-2.7.0.gem (100%)
- Fetching: actionpack-3.2.6.gem (100%)
- Fetching: arel-3.0.2.gem (100%)
- Fetching: tzinfo-0.3.33.gem (100%)
- Fetching: activerecord-3.2.6.gem (100%)
- Fetching: activeresource-3.2.6.gem (100%)
- Fetching: mime-types-1.19.gem (100%)
- Fetching: polyglot-0.3.3.gem (100%)
- Fetching: treetop-1.4.10.gem (100%)
- Fetching: mail-2.4.4.gem (100%)
- Fetching: actionmailer-3.2.6.gem (100%)
- Fetching: rack-ssl-1.3.2.gem (100%)
- Fetching: thor-0.15.4.gem (100%)
- Fetching: json-1.7.3.gem (100%)
- Building native extensions. This could take a while...
- Fetching: rdoc-3.12.gem (100%)
- ......
RAILS ON的更多相关文章
- Rails sanitize
The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements. T ...
- nginx中error_page没有生效(nginx+passenger+rails)
应用部署方式为 nginx + passenger + rails 当我想要用nginx来默认处理400以上状态时,发现在rails返回respose之后,nginx不会再次执行error_page( ...
- Ruby on Rails 创建https应用
1. 创建证书请求文件条件:私钥+证书签名请求+opensslyum install -y opensslmkdir /root/ssl/ && cd /root/ssl/openss ...
- Rails 5 开发进阶
Rails 5 开发进阶:https://www.gitbook.com/book/kelby/rails-beginner-s-guide/details cancan : http://blo ...
- rails程序文件名命名规范
1 一般文件名是用小写单词加下划线分割,但类的名字用骆驼法.例如 sessions_controller.rb中定义SessionsController. 2 helpers内的文件为辅助类,定义了许 ...
- rails中的form_for
1 form_for方法是ActionView::Helpers::FormHelper模块内的方法,所以可以在ActionView的实例中直接调用 2 from_for方法的原型为form_for( ...
- rails中的session
学rails toturial的时候,第八章一直觉得有点没吃透,后来看了两篇rails关于session和cookies源码分析的文章,cookie原理与实现(rails篇) 和session原理与实 ...
- Ubuntu配置Ruby和Rails
安装curl sudo apt-get install curl 安装RVM curl -L https://get.rvm.io | bash -s stable 通过RVM来安装Ruby rvm ...
- rails
http://ruby-toolbox.com/ ~/.gemrc --- :backtrace: false :benchmark: false :bulk_threshold: 1000 :sou ...
- 安装 Ruby, Rails 运行环境 常见的错误
安装部署ruby on rails 的环境时并不是想的那么顺利 这个是我遇到的问题及解决的方式 参考安装博客: (1) https://ruby-china.org/wiki/install_ruby ...
随机推荐
- 数据库 —— mySQL的基本操作
学习资源: 0.学习教程 :MySQL 教程(runoob.com) (MySQL Tutorial)turtorialPoint 1.学习帮助手册与平台: MySQL学习平台 英文手册chm ...
- object- c 字符串操作
Objective-C 中核心处理字符串的类是 NSString 与 NSMutableString ,这两个类最大的区别就是NSString 创建赋值以后该字符串的内容与长度不能在动态的更改,除非重 ...
- Android Studio 2.1.x 关联SDK API Source
问题: 看图=>,当在android studio里ctrl+鼠标左键查看例如: TextUtils.isEmpty(content);这段代码的isEmpty方法的实现的时候经常就跑到如图所示 ...
- SIEBEL安装问题
安装siebel 分三步走: 1.安装oracle 11g 2.安装Client 3.分别安装siebel tools.siebel web client,之后打上补丁 安装siebel tools. ...
- python运行时间计算之timeit
timeit.timeit(stmt='pass', setup='pass', timer=<default timer>, number=1000000) stmt:statement ...
- Examples_08_08
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARYAAAGsCAIAAACXfh8LAAAgAElEQVR4nO2db3AT193v903e8yIzbV
- (转)SQL流程控制语句学习(二):begin…end if…else case
1.begin…end 语法: begin {sql语句或语句块} end 注意:begin 和end要成对使用 2.if…else 语法: if 布尔表达式 {sql语句或语句块} else 布 ...
- DNN模块开发之利器篇:七种武器
我们在进行DNN模块开发时经常需要调用Dotnetnuke.dll中的方法函数,模块开发用到DNN的方法函数会让你的开发更加得心应手,下面我们就来介绍一下. 1) PortalModuleBase ...
- SQL从入门到基础 - 04 SQLServer基础2(数据删除、数据检索、数据汇总、数据排序、通配符过滤、空值处理、多值匹配)
一.数据删除 1. 删除表中全部数据:Delete from T_Person. 2. Delete 只是删除数据,表还在,和Drop Table(数据和表全部删除)不同. 3. Delete 也可以 ...
- iptables阻止服务器被攻击
下列规则将会阻止来自某一特定IP范围内的数据包,因为该IP地址范围被管理员怀疑有大量恶意攻击者在活动: # iptables -t filter -A INPUT -s 123.456.789.0/ ...