This post originated from an RSS feed registered with Ruby Buzz
by Jan Lelis.
Original Post: RubyBuntu -2- Troubleshooting common Ruby ubuntu problems
Feed Title: rbJ*_*L.net
Feed URL: http://feeds.feedburner.com/rbJL
Feed Description: Hi, I am a fan of Ruby and like to explore it and the world around ;).
So I started this blog, where I am publishing code snippets, tutorials for beginners as well as general thoughts about Ruby, the web or programming in general.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
/usr/local/lib/ruby/1.9.1/irb/completion.rb:9:in `require':LoadError: no such file to load -- readline
Navigate to the Ruby source and enter:
sudo apt-get install libreadline5-dev
cd ext/readline
ruby extconf.rb
make
sudo make install
zlib
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)
/usr/local/lib/ruby/1.9.1/rubygems/package.rb:10:in `require': no such file to load -- zlib (LoadError)
Navigate to the Ruby source and enter:
sudo apt-get install zlib1g-dev
cd ext/zlib
ruby extconf.rb
make
sudo make install
openssl
/var/lib/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': no such file to load -- openssl (RuntimeError)
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:271:in `rescue in require_frameworks': no such file to load -- openssl (RuntimeError)
Navigate to the Ruby source and enter:
sudo apt-get install libssl-dev
cd ext/openssl
ruby extconf.rb
make
sudo make install
Gems
sqlite3
no such file to load -- sqlite3
Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
Hopefully. If you still have problems, feel free to ask in the comments. You could also try to do a new installation. When everything is working, you can start customizing your command line :)