Julian G. wrote in post #963097:
> I am having the same problem. I am on an ubuntu system: Ubuntu 10.04 LTS
> - the Lucid Lynx . I downloaded and installed ruby 1.9.2, and ruby -v:
> ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
>
> gem -v is 1.3.7.
>
> But when I try to run gem install ...
>
> gem install rails -v 3.0.2
> ERROR:  Loading command: install (LoadError)
>     no such file to load -- zlib
> ERROR:  While executing gem ... (NameError)
>     uninitialized constant Gem::Commands::InstallCommand

Julian, it appears you already have gem installed, so you don't need to 
compile it from source. What you are missing though is a zlib library. 
What you need to do is cd into your ruby 1.9.2 source code dir then into 
ext/zlib (so for me it'd look like 
/home/username/Desktop/ruby-1.9.2-p0/ext/zlib/).
Then run:
ruby extconf.rb
make
make install
Then you should be able to run
gem install rails

Hope that helps.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to