Ruby gem command install does not find zlib
After reinstallation of Ubuntu 12.04 and Ruby with rbenv the gem command install does not find zlib
~$ gem install rails
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands:
~$
This is a well known problem due to missing libs, so I have installed them (zlib1g-dev, zlib1g, libssl-dev,
libreadli
More info
~$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2012-10-12 patchlevel 286) [i686-linux]
- INSTALLATION DIRECTORY: /home/user/
- RUBY EXECUTABLE: /home/user/
- EXECUTABLE DIRECTORY: /home/user/
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /home/user/
- /home/user/
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://
~$
~$ echo $PATH
/home/user/
~$
So, what is wrong?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu rubygems Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tommy Pollák
- Solved:
- Last query:
- Last reply: