ruby lib version (1.8.7) doesn't match executable version

Error : When accessing the page and it shows the “Internal server errror” and the server logs shows the folloging error
/home/username/public_html/rubytest2.htm:6: /usr/local/lib/ruby/1.8/i686-linux/rbconfig.rb:7: ruby lib version (1.8.7) doesn’t match executable version (1.8.6) (RuntimeError)
[Sun Mar 28 11:42:45 2010] [error] [client 124.124.251.228] Premature end of script headers: /home/username/public_html/cgi-bin/eruby.cgi
[Sun Mar 28 11:42:45 2010] [error] [client 124.124.251.228] File does not exist: /home/username/public_html/500.shtml
Solution : The problem due the ruby version updated on the serer., you need to update the eruby version on the server.
yum install eruby
cp /usr/bin/eruby  /home/username/public_html/cgi-bin/eruby.cgi
Done

2 Thoughts to “ruby lib version (1.8.7) doesn't match executable version”

Leave a Comment