Can't do "gem update --system" - libcrypto.so.4: cannot open shared

G

Greg Hauptmann

Hi,

I've update the software on my linux box ( v4 to v5.0
http://clarkconnect.com/ ) upgrade something has gone screwy with my
Ruby installation on the machine. Any ideas?

My ruby/rails installation was working fine until I did the Linux
update. Gem Update Affected (not that the 'md5.so' is actually there
in the directory)


[root@home ~]# gem --version
1.3.1
[root@home ~]# ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
[root@home ~]#
[root@home ~]# gem update --system
/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so: libcrypto.so.4:
cannot open shared object file: No such file or directory -
/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/digest/md5.rb:8
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:12
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:9
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:11
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:3
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:4
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:7
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:140:in
`load_and_instantiate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:65:in
`[]'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:118:in
`find_command'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in
`process_args'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:in
`run'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in
`run'
from /usr/local/bin/gem:24
[root@home ~]#



Running Rails AffectedCode:


[root@home current]# ./script/console
Loading development environment (Rails 2.2.2)
/usr/local/lib/ruby/1.8/i686-linux/readline.so: libreadline.so.4:
cannot open shared object file: No such file or directory -
/usr/local/lib/ruby/1.8/i686-linux/readline.so (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
from /usr/local/bin/irb:13



thanks
 
E

Eric Hodel

Hi,

I've update the software on my linux box ( v4 to v5.0
http://clarkconnect.com/ ) upgrade something has gone screwy with my
Ruby installation on the machine. Any ideas?

My ruby/rails installation was working fine until I did the Linux
update. Gem Update Affected (not that the 'md5.so' is actually there
in the directory)


[root@home ~]# gem --version
1.3.1
[root@home ~]# ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
[root@home ~]#
[root@home ~]# gem update --system
/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so: libcrypto.so.4:
cannot open shared object file: No such file or directory -
/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so (LoadError)

Running Rails AffectedCode:


[root@home current]# ./script/console
Loading development environment (Rails 2.2.2)
/usr/local/lib/ruby/1.8/i686-linux/readline.so: libreadline.so.4:
cannot open shared object file: No such file or directory -
/usr/local/lib/ruby/1.8/i686-linux/readline.so (LoadError)

You probably need to recompile ruby against the newer libraries. I
bet the old ones were all deleted. Sounds like a terrible upgrade
process.
 
G

Greg Hauptmann

2009/9/9 Eric Hodel said:
You probably need to recompile ruby against the newer libraries. =A0I bet= the
old ones were all deleted. =A0Sounds like a terrible upgrade process.
thanks Eric - I'll try this...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top