Failed to install Rails No such file to load -- rubygems/security (LoadError)

(Zoong Pham) #1

I failed to install Rails on OpenBSD-3.6 following instruction from
this site:


except I installed ruby-gems-0.8.11 instead of ruby-gems-0.8.10.

# /usr/local/bin/gem install rails
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:397:in `require': No such file to load -- rubygems/security (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:397
        from /usr/local/bin/gem:3:in `require'
        from /usr/local/bin/gem:3

# pkg_info | grep -i ruby
ruby-1.8.2 object oriented script language with threads
ruby-gems-0.8.11 Ruby package management framework

# uname -a
OpenBSD obsd01 3.6 GENERIC#3 i386

Please help.

TIA.
Zoong

(Chad Fowler) #2

Hi. Can you check to see if you have a file at
/usr/local/lib/ruby/site_ruby/1.8/rubygems/security.rb? It looks like
it might be missing in your distro for some reason, which would be
pretty strange.

Thanks

···

On 8/10/05, Zoong Pham <zoong@zoong.com> wrote:

I failed to install Rails on OpenBSD-3.6 following instruction from
this site:
http://wiki.rubyonrails.com/rails/revision/RailsOnOpenBSD?rev=0
except I installed ruby-gems-0.8.11 instead of ruby-gems-0.8.10.

# /usr/local/bin/gem install rails
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:397:in `require': No such file to load -- rubygems/security (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:397
        from /usr/local/bin/gem:3:in `require'
        from /usr/local/bin/gem:3

# pkg_info | grep -i ruby
ruby-1.8.2 object oriented script language with threads
ruby-gems-0.8.11 Ruby package management framework

--
Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 700,000 gems served!)