Hello,
I have downloaded ruby-1.91-1-p376, configured and built
(./configure --with-pthreads; make;make install)
downloaded rubygem 1.3.5, unpacked, then
ruby setup.rb
And when I run
gem install rails
I get the following error:
gem install rails
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in require': no such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in
<top (required)>’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:9:in
require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:9:in
<top (required)>’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:11:in
require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:11:in
<top (required)>’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:3:in
require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:3:in
<top (required)>’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:4:in
require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:4:in
<top (required)>’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:167:in
require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:167:in
rescue in load_and_instantiate’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:159:in
load_and_instantiate' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:88:in
[]’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:144:in
find_command' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:131:in
process_args’
from
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:102:in
run' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:58:in
run’
from /usr/local/bin/gem:21:in `’
when I check nohup.out from the make and grep for zlib I see the
following:
grep zlib noh*
nohup.make:compiling zlib
And checking the nohup.out from the install I get the following for the
required packages in ‘package.rb’ (e.g., stringio and yaml)
nohup.out:ext/zlib/zlib.c:
MCCCCCCCCCCCCCCCCCCmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
grep zlib .installed*
/usr/local/share/ri/1.9.1/system/Zlib/zlib_version-c.yaml
grep stringio .installed*
/usr/local/lib/ruby/1.9.1/yaml/stringio.rb
/usr/local/lib/ruby/1.9.1/powerpc-aix5.3.0.0/stringio.so
grep fileutils .installed*
/usr/local/lib/ruby/1.9.1/fileutils.rb
It looks like zlib has been compiled, but not installed?
These are the zlib files in the package area:
pwd
/data/prj/ruby-1.9.1-p376
find . | grep zlib
./ext/zlib
./ext/zlib/.cvsignore
./ext/zlib/doc
./ext/zlib/doc/zlib.rd
./ext/zlib/extconf.rb
./ext/zlib/zlib.c
./ext/zlib/mkmf.log
./ext/zlib/Makefile
./.ext/rdoc/Zlib/zlib_version-c.yaml
./test/zlib
./test/zlib/test_zlib.rb
These are the ‘zlib’ files in the installed area:
cd /usr/local
find . | grep zlib
./share/ri/1.9.1/system/Zlib/zlib_version-c.yaml
Suggestions welcome.