Parce que Ruby 1.9.3 utilise psych pour analyser YAML (contrairement à Ruby 1.8.7), Psych a besoin de soutien libyaml.
La première chose que vous devez faire est de mettre à jour les composants :
Yum-y install font gcc openssl-devel zlib-devel gcc gcc-c++ faire autoconf readline-devel curl-devel expat-devel gettext-d Evel Ncurses-devel sqlite3-devel mysql-devel httpd-devel wget qui
1. Installez 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
2. installer Ruby 1.9.3
$ 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
3. GEM update
GEM Update--system ou Update_rubygems ou gem install Rubygems-mise à jour
4. installer les Rails
Gem install rails ou gem installer rails-v = 3.2.1
5. Installez SQLite
Yum Install Sqlite-devel
6. mise en place des Rails ingénierie
New_app nouveaux rails
CD New_app
Forfait installation
Référence : http://collectiveidea.com/blog/archives/2011/10/31/install-ruby-193-with-libyaml-on-centos/
Http://railsapps.GitHub.com/rails-Heroku-tutorial.html