Install Ruby 1.9.3 with libyaml on CentOS
来源:互联网 发布:织梦cms源代码 编辑:程序博客网 时间:2024/06/10 16:20
Install Ruby 1.9.3 with libyaml on CentOS
Ruby 1.9.3-p0 makes psych—the replacement for 1.8.7’s YAML library, Syck—the defaultYAML parser. Psych is a wrapper around libyaml, so you’re going to need it installed and configuredbefore 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 themake 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 tryinggem --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™.
- Install Ruby 1.9.3 with libyaml on CentOS
- Install Ruby 1.9.3 with libyaml on CentOS
- CentOS install Ruby On Rails
- Install ruby on rails on CentOS
- Install Cassandra with Ruby 1.9.1 on Windows
- centos install ruby 1.9
- Ruby Install on mac with RVM
- How To Install Ruby with rbenv on Cent OS 7.2
- mac 下装cocoapods时遇到的问题:please install libyaml and reinstall your ruby
- install Ruby on Rails
- install ruby on cygwin
- linux centos install ruby
- centos install ruby
- How to Install RSyslog+MySQL with LogAnalyzer on CentOS
- How To Install nginx on CentOS 6 with yum
- How To Install nginx on CentOS 6 with yum
- Install PHP v8js with PHP 5.6 on Centos 7
- How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM
- gem相关命令使用
- C++ std命名空间
- C++中的虚函数(virtual function)
- 股市赚钱18日线法
- gb的渲染中的几个类
- Install Ruby 1.9.3 with libyaml on CentOS
- Real Time Analytics for Big Data: An Alternative Approach
- 版本控制系统git的安装与使用
- No bean named 'springSecurityFilterChain' is defined
- 网络P4P
- C#使用SQLite数据库详解
- 数据挖掘:如何寻找相关项
- 设置gem源,解决下载慢的问题
- V4L接口编程