Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in rails warning: already initialized constant

/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/psych.so: warning:       already initialized constant ANY
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant UTF8
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant UTF16LE
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant UTF16BE
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:12: warning: already initialized constant ANY
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:15: warning: already initialized constant UTF8
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:18: warning: already initialized constant UTF16LE
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:21: warning: already initialized constant UTF16BE

i got this error when i strated my rails server for the first time after creating a new rails project. could anyone help me out of this

like image 745
Abhiram Avatar asked Oct 17 '12 17:10

Abhiram


2 Answers

The fix for me was simply to do gem uninstall psych.

like image 103
Alex Sharp Avatar answered Sep 24 '22 17:09

Alex Sharp


Perhaps the solution described on this gist will help:

rvm use 1.9.3
gem uninstall psych
gem install psych
like image 32
Buck Doyle Avatar answered Sep 23 '22 17:09

Buck Doyle