From: Shawn Church Date: 2005-07-28T04:06:39+09:00 Subject: Re: RubyGems and zlib.so Yes, both the build and the target machines are Linux. I'm building on SuSE 9.3 and the target machine is RTLinuxPro (Arcom hardware). My SuSE machine has zlib-devel 1.2.2-5, and I'm not seeing any problems during ./configure or make. Should I expect to see zlib.so created during the build? Thanks, Shawn Quoting Robert Oliver : > I'm assuming that you're running the Linux version, based on the > .so's. If > you're running Fedora/RedHat/CentOS, make sure that zlib-devel is > installed > (If you're running Debian, its zlib1g-dev) before you run the Ruby > ./configure script. Then, reinstall Ruby Gems. > > Hope this helps. > > On 7/27/05, Shawn Church wrote: > > > > I am trying to install RubyGems using 'ruby setup.rb'. I have > > cross-compiled Ruby to target an arm-based machine and have > successfully > > installed Ruby on it. > > > > When I run setup.rb, everything looks good until just after the > "No > > library stubs found" message is shown. At this point, I am getting > a > > message that zlib.so cannot be opened. Here's the full exception: > > > > /usr/local/ruby-1.8.2-arm/ext/zlib/zlib.so: > > /usr/local/ruby-1.8.2-arm/ext/zlib/zlib.so: cannot open shared > object > > file: No such file or directory - > > /usr/local/ruby-1.8.2-arm/ext/zlib/zlib.so (LoadError) > > from > > /usr/local/ruby-1.8.2-arm/lib/rubygems/custom_require.rb:21:in > `require' > > from /usr/local/ruby-1.8.2-arm/lib/rubygems/package.rb:9 > > from > > /usr/local/ruby-1.8.2-arm/lib/rubygems/custom_require.rb:21:in > `require__' > > from > > /usr/local/ruby-1.8.2-arm/lib/rubygems/custom_require.rb:21:in > `require' > > from /usr/local/ruby-1.8.2-arm/lib/rubygems/builder.rb:1 > > from > > /usr/local/ruby-1.8.2-arm/lib/rubygems/custom_require.rb:21:in > `require__' > > from > > /usr/local/ruby-1.8.2-arm/lib/rubygems/custom_require.rb:21:in > `require' > > from /usr/local/ruby-1.8.2-arm/lib/rubygems.rb:61:in `manage_gems' > > ... 7 levels... > > from setup.rb:887:in `exec_install' > > from setup.rb:705:in `invoke' > > from setup.rb:674:in `invoke' > > from setup.rb:1352 > > > > Do I have to load zlib manually? I see a zlib.c source file in the > > ext/zlib directory, but I don't see zlib.so. > > > > I have been working on getting Ruby and RubyGems (and eventually > Rails) > > installed on this machine since yesterday morning, and so far it's > been > > a much bigger chore than I would have expected. I would appreciate > any > > help anyone has to offer. > > > > Thanks, > > Shawn > > > > > > > > > > > -- > Robert W. Oliver II > CEO / President - OCS Solutions, Inc. > http://www.ocssolutions.com/ > > Ruby / Ruby on Rails Discussion at http://www.rubyforums.com/ >