- 浏览: 521814 次
- 性别:
- 来自: 北京
-
文章分类
- 全部博客 (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 1276源:http://blog.csdn.net/kobe ... -
linux 添加时间同步 与定时
2015-12-15 17:43 583cp -rf /usr/share/zoneinfo/Asia ... -
no server suitable for synchronization found
2015-10-21 16:15 1039源:http://blog.sina.com.cn/s/blo ... -
syntax error near unexpected token
2015-08-05 20:40 624源:http://jingyan.baidu.com/arti ... -
linux awk命令详解
2015-05-27 21:33 530源:http://www.cnblogs.com/gg ... -
centos 推荐使用epel源
2015-02-07 18:36 596源:http://blog.51yip.com/linux/1 ... -
CentOS安装scp命令及出现错误解决
2014-10-09 17:49 631源:http://www.2cto.com/os/201305 ... -
使用SSH遇到Authentication Refused: Bad Ownership or Modes for Directory
2014-10-07 17:17 1080源:http://xwv.iteye.com/blog/189 ... -
不输入密码ssh直接登录阿里云Linux主机
2014-10-06 18:59 611源:http://www.cnblogs.com/dudu/a ... -
ssh 免密码登录 及 ssh初次登录控制台显示信息
2014-10-06 18:24 954源:http://chenlb.iteye.com/b ... -
tar 解压缩命令
2014-09-03 11:59 514源:http://www.cnblogs.com/si ... -
Linux 时间同步
2014-08-14 17:55 846源:http://hoya120.blog.163.com/b ... -
Linux 技巧:让进程在后台可靠运行的几种方法
2014-08-14 15:11 521源:http://www.ibm.com/developerw ... -
linux系统管理命令集合
2014-08-06 10:16 584源:http://my.oschina.net/qinlinw ... -
CentOS赋予一个普通用户root权限
2014-06-29 21:09 647源:http://www.linuxidc.com/Linux ... -
CentOS linux关闭iptables防火墙
2014-03-26 15:45 539源:http://www.2cto.com/os/201205 ... -
Linux下端口被占用解决
2014-03-26 15:44 848源:http://taoistwar.iteye.com/bl ... -
查看服务器网络连接数
2014-03-24 10:29 867源:http://my.oschina.net/shineyy ... -
SecureCRT中文显示乱码
2014-03-18 13:11 596源:http://www.cnblogs.com/to ... -
CentOS6.3 iptables: No chain/target/match by that name.
2014-03-17 16:37 1438源:http://hi.baidu.com/javalover ...
相关推荐
如何安装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 ~/...
福里克利安装Forj cli支持Ruby 1.9.3或更高...apt-get -y update$ sudo apt-get install ruby1.9.3 ruby1.9.3-dev rubygems1.9.3 build-essential libopenssl-ruby1.9.3 libssl-dev zlib1g-dev libxml2-dev libxslt-de
在CentOS上安装GitLab的过程中,可能会遇到一个与Ruby版本相关的错误:“EC_GROUP_new_curve_GF2m”。这个错误通常出现在尝试安装Ruby 1.9.3-p0时,由于其与OpenSSL库的兼容性问题导致。Ruby是GitLab运行所必需的...
提供的`rubyinstaller-1.9.3-p194.exe`应该是Ruby 1.9.3的安装程序,这个版本虽然相对较老,但在某些项目中可能仍然是必要的。在执行安装过程中,用户可以选择自定义安装路径,并决定是否在系统路径中添加Ruby,以...
在 CentOS 6 上安装 `innodb_ruby` 需要一些步骤,因为该系统默认的 Ruby 版本可能低于 `innodb_ruby` 的需求。`innodb_ruby` 是一个由 Jeremy Cole 开发的 Ruby 库,专门用于解析 InnoDB 文件格式,帮助开发者深入...
toran-食谱托兰代理速度和可靠性的 Composer 代理-- 要求厨师>= 11.6.0 Ruby>= 1.9.3平台阿帕奇nginx Debian X CentOS测试$ vagrant plugin install vagrant-omnibus$ vagrant plugin install vagrant-berkshelf$ ...
在IT行业中,构建一个开发环境是每个程序员的必备技能,特别是对于使用Ruby on Rails框架的开发者来说。本篇文档详细介绍了在不同的操作系统环境下,如何正确安装Ruby、Rails及其依赖环境。 首先,对于操作系统的...
厨师-cmake 描述 安装 ,一个跨平台的开源构建系统。 要求 支持的平台 本说明书支持以下平台,这意味着食谱应该在这些平台上运行而不会出错... default [ "cmake" ] [ "install_method" ] = "package" # `package` or `