Uninitialized constant PStore

From EggeWiki
Jump to navigation Jump to search

I started getting this error this afternoon.

$ ruby script/generate controller Search
/u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant PStore (NameError)
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_process.rb:38
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller.rb:52
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems.rb:182:in `activate'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems.rb:181:in `activate'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems.rb:167:in `activate'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems.rb:166:in `activate'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem'
        from ./script/../config/boot.rb:28
        from script/generate:2

So, PStore is a module, so I should be able to require it.

$ irb 
irb(main):001:0> require "pstore"
LoadError: ld.so.1: ruby: fatal: libcrypto.so.0.9.7: open failed: No such file or directory - /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/1.8/i386-solaris2.10/digest/md5.so
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/1.8/i386-solaris2.10/digest/md5.so
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/1.8/pstore.rb:11
        from /u/eggebr/pkgs/sunos-5.10-i86pc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from (irb):1

Oh, OK. I just need to fixup my LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=/usr/local/pkgs/openssl-0.9.7i/lib:/usr/local/sybase/lib

I'm not sure how I can build a static version of Ruby which won't require me to set the path.