2012-10-02 64 views
3

我想一個CentOS主機上安裝RVM和它失敗,此錯誤沒有包libyaml:CentOS的:RVM和可用

/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory 
Libraries missing for ruby-1.9.3-p194: libruby.so.1.9. Refer to your system manual for installing libraries 
Mounting remote ruby failed, trying to compile. 

後一些谷歌搜索,看來我需要手動安裝libyaml包,主機說:

No package libyaml available. 

任何想法?

+0

參見[這個問題和答案】(http://stackoverflow.com/questions/安裝12882190 /無法對解決-紅寶石錯誤缺鬥志)。 – Thilo

回答

2

我已經設法通過拼湊他人的嘗試來解決它。我跟着these說明,儘管獲得讀取錯誤:

Error running 'autoreconf -is --force', please read /usr/local/rvm/log/ruby-1.9.2-p320/yaml/autoreconf.log 

我設法同時安裝rake寶石和寶石rails

6

嘗試安裝此使用RVM:

rvm pkg install libyaml 

它適用於我的CENTOS 6.3 VPS。

+1

這安裝'libyaml',而不是'libyaml-devel'。爲此,它仍然返回「沒有包libyaml-devel可用」的defautlt CentOS回購。 – Thilo

3

使用最新的rvm(運行rvm get head),在安裝Ruby(好的,至少在1.9.3)時會自動獲取libyaml。

你看它是否已被檢查的/ usr/local作爲這就是RVM所說的那樣......