Back

ubuntu 12 server 安装RUBY, RVM (install RVM on ubuntu 12 server )

发布时间: 2012-09-28 00:54:00

昨天拿到一个服务器, 很奇怪,根据源代码编译,安装之后,总是提示 psych 错误(It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. )  而且搞了几次都没解决问题。后来考虑到这个SERVER还要兼容1.8.x 系列,我就使用RVM吧!  ( yesterday when I was setting up the environment of my Rails on ubuntu server by download-compile-make install the ruby source code, there's always an error message : ".. missing psych (for YAML output ) "... ) after diving into this problem but not solved it in some time, also considering the compatibility for other Ruby versions, I decided to install RVM instead. )

步骤: (steps)

1. 安装rvm (略)  (install RVM )

2. $ rvm requirements  ( then install all the needed libs )

(?)2. $ rvm pkg install libyaml

(?)3. $ rvm pkg install readline --verify-downloads 1

(?)4. $ rvm pkg install {iconv,zlib,openssl}

5. $ rvm install 1.9.3 -C --with-openssl-dir=$HOME/.rvm/usr, --with-iconv-dir=$HOME/.rvm/usr

Back