Can't do "gem update --system" - libcrypto.so.4: cannot open shared object file: No such file or di

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)

[[email protected] ~]# gem --version
1.3.1
[[email protected] ~]# ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
[[email protected] ~]#
[[email protected] ~]# 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:ingem_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:ingem_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:ingem_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:ingem_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:ingem_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:ingem_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:ingem_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:inload_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:infind_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:inrun’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in
`run’
from /usr/local/bin/gem:24
[[email protected] ~]#

Running Rails AffectedCode:

[[email protected] 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:inload_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:inload_modules’
from /usr/local/lib/ruby/1.8/irb/init.rb:21:in setup' from /usr/local/lib/ruby/1.8/irb.rb:54:instart’
from /usr/local/bin/irb:13

thanks

On Sep 6, 2009, at 23:55, Greg H. wrote:

Running Rails AffectedCode:

[[email protected] 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.

2009/9/9 Eric H. [email protected]:

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

thanks Eric - I’ll try this…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs