I’m new to Ruby on Rails. I’m trying to install rails on an ubuntu linux platform. I’ve already installed RVM and ruby. When I type
gem install rails --version 3.0.0
I get this error:
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
Please help me install rails and learn a bit about the command line while I’m at it.
looks like you dont have ZLib installed. try
gem install zliband alsoapt-get install zlib zlib-devif you dont have the system library installedyou need both the .so c-extension files (apt-get)
and the ruby interface to them (gem )
also this may be the same thing as in Antother Stackoverflow Question