Forum: Ruby on Rails Ruby On Rails Installation Error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dd40b5b21bfccf1c2c686fc65f9146ca?d=identicon&s=25 Mitesh S. (mitesh_s)
on 2013-03-10 18:04
Hello

I am trying to install rails on my gem (trying to migrate to my original
ruby onto new server and want to keep existing verison of ruby and
gems). However I am getting below error when tyring to install rails.

gem -v
1.0.1


gem install rails --include-dependencies
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- zlib (LoadError)
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:10
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: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:27:in
`gem_original_require'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:11
         ... 11 levels...
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:103:in
`process_args'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:74:in
`run'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in `run'
        from /usr/local/bin/gem:22
Dd40b5b21bfccf1c2c686fc65f9146ca?d=identicon&s=25 Mitesh S. (mitesh_s)
on 2013-03-11 20:16
Found the issue...it was problem with library path.
This topic is locked and can not be replied to.