- 浏览: 500190 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (563)
- 工作经验 (12)
- 数据库 (13)
- Servlet (10)
- Struts2 (1)
- Spring (25)
- Eclipse (5)
- Hibernate (5)
- Eclips (8)
- HTTP (7)
- J2EE (21)
- EHcache (1)
- HTML (11)
- 工具插件使用 (20)
- JPA (2)
- 杂谈 (17)
- 数据结构与算法 (3)
- Cloud Foundry (1)
- 安全 (10)
- J2SE (57)
- SQL (9)
- DB2 (6)
- 操作系统 (2)
- 设计模式 (1)
- 版本代码管理工具 (13)
- 面试 (10)
- 代码规范 (3)
- Tomcat (12)
- Ajax (5)
- 异常总结 (11)
- REST (2)
- 云 (2)
- RMI (3)
- SOA (1)
- Oracle (12)
- Javascript (20)
- jquery (7)
- JSP自定义标签 (2)
- 电脑知识 (5)
- 浏览器 (3)
- 正则表达式 (3)
- 建站解决问题 (38)
- 数据库设计 (3)
- git (16)
- log4j (1)
- 每天100行代码 (1)
- socket (0)
- java设计模式 耿祥义著 (0)
- Maven (14)
- ibatis (7)
- bug整理 (2)
- 邮件服务器 (8)
- Linux (32)
- TCP/IP协议 (5)
- java多线程并发 (7)
- IO (1)
- 网页小工具 (2)
- Flash (2)
- 爬虫 (1)
- CSS (6)
- JSON (1)
- 触发器 (1)
- java并发 (12)
- ajaxfileupload (1)
- js验证 (1)
- discuz (2)
- Mysql (14)
- jvm (2)
- MyBatis (10)
- POI (1)
- 金融 (1)
- VMWare (0)
- Redis (4)
- 性能测试 (2)
- PostgreSQL (1)
- 分布式 (2)
- Easy UI (1)
- C (1)
- 加密 (6)
- Node.js (1)
- 事务 (2)
- zookeeper (3)
- Spring MVC (2)
- 动态代理 (3)
- 日志 (2)
- 微信公众号 (2)
- IDEA (1)
- 保存他人遇到的问题 (1)
- webservice (11)
- memcached (3)
- nginx (6)
- 抓包 (1)
- java规范 (1)
- dubbo (3)
- xwiki (1)
- quartz (2)
- 数字证书 (1)
- spi (1)
- 学习编程 (6)
- dom4j (1)
- 计算机系统知识 (2)
- JAVA系统知识 (1)
- rpcf (1)
- 单元测试 (2)
- php (1)
- 内存泄漏cpu100%outofmemery (5)
- zero_copy (2)
- mac (3)
- hive (3)
- 分享资料整理 (0)
- 计算机网络 (1)
- 编写操作系统 (1)
- springboot (1)
最新评论
-
masuweng:
亦论一次OutOfMemoryError的定位与解错 -
变脸小伙:
引用[color=red][/color]百度推广中运用的技术 ...
Spring 3 mvc中返回pdf,json,xml等不同的view -
Vanillva:
不同之处是什么??
Mybatis中的like查询 -
thrillerzw:
转了。做个有理想的程序员
有理想的程序员必须知道的15件事 -
liujunhui1988:
觉得很有概括力
15 个必须知道的 Java 面试问题(2年工作经验)
源:http://www.cnblogs.com/qq78292959/archive/2011/12/15/2288567.html
评:,其一就是安装ruby和rubygem,为了方便起见这里推荐安装ruby 1.9.2及之后的版本,这些版本已经包含了rubygem,无需单独安装,
Ruby 1.9.3-p0 makes psych—the replacement for 1.8.7’s YAML library, Syck—the default YAML parser. Psych is a wrapper around libyaml, so you’re going to need it installed and configured before installing Ruby.
If you install 1.9.3-p0 without libyaml, you’ll see warnings like this:
It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
Installing libyaml
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr/local
$ make
$ make install
Quick review of what’s going on: download and untar the source code, change to the directory and install the package. You may need to sudo the make install command. Your mileage may vary.
Installing Ruby 1.9.3-p0
复制代码
$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
$ tar xzvf ruby-1.9.3-p0.tar.gz
$ cd ruby-1.9.3-p0
$ ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
$ make
$ make install
复制代码
After installing, you can verify that Ruby was installed with ruby -v. It’s also worth trying gem --version to make sure you don’t get any errors regarding psych.
I tried installing libyaml-devel and libyaml from Yum, but couldn’t get ruby installed and recognizing those packages. Out of frustration, I turned to installing libyaml by source and it Just Worked™
CentOS 6下安装ruby 1.9
博客分类:
ruby
安装libyaml
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar xzvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local
make
make install
如果不安装libyaml,运行gem会出现:“It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby”警告。
安装ruby
tar -zxf ruby-1.9.3-p448.tar.gz
cd ruby-1.9.3-p448
./configure --enable-shared --disable-install-doc
make
make install
可以从下面两个地址下载ruby1.9:
http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/
http://mirrors.ibiblio.org/ruby/1.9/
参考文章:
Install Ruby 1.9.3 with libyaml on CentOS(转)
Install Ruby 1.9 in CentOS 6
--end
评:,其一就是安装ruby和rubygem,为了方便起见这里推荐安装ruby 1.9.2及之后的版本,这些版本已经包含了rubygem,无需单独安装,
Ruby 1.9.3-p0 makes psych—the replacement for 1.8.7’s YAML library, Syck—the default YAML parser. Psych is a wrapper around libyaml, so you’re going to need it installed and configured before installing Ruby.
If you install 1.9.3-p0 without libyaml, you’ll see warnings like this:
It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
Installing libyaml
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr/local
$ make
$ make install
Quick review of what’s going on: download and untar the source code, change to the directory and install the package. You may need to sudo the make install command. Your mileage may vary.
Installing Ruby 1.9.3-p0
复制代码
$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
$ tar xzvf ruby-1.9.3-p0.tar.gz
$ cd ruby-1.9.3-p0
$ ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
$ make
$ make install
复制代码
After installing, you can verify that Ruby was installed with ruby -v. It’s also worth trying gem --version to make sure you don’t get any errors regarding psych.
I tried installing libyaml-devel and libyaml from Yum, but couldn’t get ruby installed and recognizing those packages. Out of frustration, I turned to installing libyaml by source and it Just Worked™
CentOS 6下安装ruby 1.9
博客分类:
ruby
安装libyaml
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar xzvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local
make
make install
如果不安装libyaml,运行gem会出现:“It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby”警告。
安装ruby
tar -zxf ruby-1.9.3-p448.tar.gz
cd ruby-1.9.3-p448
./configure --enable-shared --disable-install-doc
make
make install
可以从下面两个地址下载ruby1.9:
http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/
http://mirrors.ibiblio.org/ruby/1.9/
参考文章:
Install Ruby 1.9.3 with libyaml on CentOS(转)
Install Ruby 1.9 in CentOS 6
--end
发表评论
-
Linux下查看及修改进程打开的文件句柄数量
2017-02-27 20:15 1233源:http://blog.csdn.net/kobe ... -
linux 添加时间同步 与定时
2015-12-15 17:43 539cp -rf /usr/share/zoneinfo/Asia ... -
no server suitable for synchronization found
2015-10-21 16:15 990源:http://blog.sina.com.cn/s/blo ... -
syntax error near unexpected token
2015-08-05 20:40 593源:http://jingyan.baidu.com/arti ... -
linux awk命令详解
2015-05-27 21:33 476源:http://www.cnblogs.com/gg ... -
centos 推荐使用epel源
2015-02-07 18:36 544源:http://blog.51yip.com/linux/1 ... -
CentOS安装scp命令及出现错误解决
2014-10-09 17:49 591源:http://www.2cto.com/os/201305 ... -
使用SSH遇到Authentication Refused: Bad Ownership or Modes for Directory
2014-10-07 17:17 971源:http://xwv.iteye.com/blog/189 ... -
不输入密码ssh直接登录阿里云Linux主机
2014-10-06 18:59 581源:http://www.cnblogs.com/dudu/a ... -
ssh 免密码登录 及 ssh初次登录控制台显示信息
2014-10-06 18:24 890源:http://chenlb.iteye.com/b ... -
tar 解压缩命令
2014-09-03 11:59 471源:http://www.cnblogs.com/si ... -
Linux 时间同步
2014-08-14 17:55 800源:http://hoya120.blog.163.com/b ... -
Linux 技巧:让进程在后台可靠运行的几种方法
2014-08-14 15:11 476源:http://www.ibm.com/developerw ... -
linux系统管理命令集合
2014-08-06 10:16 551源:http://my.oschina.net/qinlinw ... -
CentOS赋予一个普通用户root权限
2014-06-29 21:09 623源:http://www.linuxidc.com/Linux ... -
CentOS linux关闭iptables防火墙
2014-03-26 15:45 508源:http://www.2cto.com/os/201205 ... -
Linux下端口被占用解决
2014-03-26 15:44 808源:http://taoistwar.iteye.com/bl ... -
查看服务器网络连接数
2014-03-24 10:29 829源:http://my.oschina.net/shineyy ... -
SecureCRT中文显示乱码
2014-03-18 13:11 570源:http://www.cnblogs.com/to ... -
CentOS6.3 iptables: No chain/target/match by that name.
2014-03-17 16:37 1410源:http://hi.baidu.com/javalover ...
相关推荐
ruby 1.9.3 p484稳定版本,在windows上直接安装即可
ruby1.9.3版本
rubyinstaller-1.9.3-p125.exe
ruby 1.9.3 source code
如何安装RHEL / CentOS 5/6 yum install -y rpm-build rpmdevtools readline-devel ncurses-devel gdbm-devel tcl-devel openssl-devel db4-devel byacc libyaml-devel libffi-devel makerpmdev-setuptreecd ~/...
Windows7_Cygwin_Git_RVM_Ruby1.9.3_Rails3_MongoD B_Nginx_Unicorn_Rspec_Guard_Spork(2-Ruby on Rails3 安装配置
实用 。很好 很强大 非常不错的 RUBY 你懂的
ruby-1.9.3-p547.tar.gz
最新ruby1.9.3安装包,rubyinstaller-1.9.3-p385
Windows7+Cygwin+Git+RVM+Ruby1.9.3+Rails3+MongoDB+N ginx+Unicorn+Rspec+Guard+Spork(1-Cygwin 安装配置)
在 Windows 平台下一步安装 Ruby-1.9.3
Ruby installer 1.9.3 .exe new sass
### Fedora / CentOS / Redhat rpm类似软件包系统对于Ruby 2.0 $ sudo yum install ruby-devel libxml2-devel libxslt-devel python-yaml gcc git -y$ sudo gem install forj### Ubuntu / Debian deb like软件包...
With active user groups formed in the world’s major cities and Ruby-related conferences filled to capacity. Ruby-Talk, the primary mailing list for discussion of the Ruby language, climbed to an ...
Ruby installer 1.9.3
rubyinstaller-1.9.3-p484.exe
rails_comp_book 预订计算机硬件(ruby on rails 4.2.2,ruby 1.9.3,postgreSQL)
ruby-1.9.3-preview1.zip
欢迎 这是我在Ruby 1.9.3和Rails 3.2.21中的在线简历。 因为我需要将其部署到只有Ruby 1.9.3可用的JustHost.com。
ruby gem环境,解压覆盖C:\Ruby193\lib\ruby\gems\1.9.1