We have two servers with the same home-brewed RPM of ruby installed. One one server, the search path is different, and it fails the following snippet.
#!/usr/bin/env ruby
require 'openssl'
require 'digest/md5'
puts OpenSSL::Digest::MD5.new
Broken server output:
/tmp/test.rb
/tmp/test.rb:6: uninitialized constant OpenSSL::Digest::MD5 (NameError)
Good server output:
/tmp/test.rb
d41d8cd98f00b204e9800998ecf8427e
Broken server with command line flags can be made to work:
ruby -I /usr/lib/ruby/1.8 /tmp/test.rb
d41d8cd98f00b204e9800998ecf8427e
Both are CentOS 4.4 x86_64, ruby 1.8.6 p369. We built our own RPM based on Fedora 11 RPM spec file. It works find on 913 other boxes. Help?