Trying this:
$ gem install eventmachine
Returned me this:
make
compiling ssl.cpp
make: g++: Command not found
make: *** [ssl.o] Error 127
The solution is installing the build-essential package:
$ sudo apt-get install build-essential
Problem solved!
$ gem install eventmachine
make
compiling ssl.cpp
make: g++: Command not found
make: *** [ssl.o] Error 127
$ sudo apt-get install build-essential
$ gem install debugger
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p286 provided with debugger-ruby_core_source gem.
**************************************************************************
$ gem install debugger -- --with-ruby-include=/home/$(echo $USER)/.rvm/src/ruby-$(ruby -v | cut -d" " -f2)
$ sudo apt-get install postgresql-9.1
$ sudo apt-get install postgresql-server-dev-9.1
$ gem install pg
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.
WARNING: Error fetching data: SocketError: getaddrinfo: Name or service not known (http://rubygems.org/latest_specs.4.8.gz)
ERROR: Could not find a valid gem 'mysql' (>= 0) in any repository
ERROR: Possible alternatives: mysql
$ gem install mysql --no-http-proxy
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
Bla bla bla
...
sudo apt-get install libpq-dev
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/daniel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/daniel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include
--without-curl-include=${curl-dir}/include
--with-curl-lib
--without-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:23:in `<main>': Can't find libcurl or curl/curl.h (RuntimeError)
Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
options to extconf.
Gem files will remain installed in /home/daniel/.rvm/gems/ruby-1.9.3-p194/gems/curb-0.7.15 for inspection.
Results logged to /home/daniel/.rvm/gems/ruby-1.9.3-p194/gems/curb-0.7.15/ext/gem_make.out
An error occurred while installing curb (0.7.15), and Bundler cannot continue.
Make sure that `gem install curb -v '0.7.15'` succeeds before bundling.
$ yum install libcurl -devel.(64 or 32 bit version)