Not always gems in Gemfile are efficient to make a ruby app work. Sometimes you need more dependencies.
When I was installing datamapper dependant gems I got this error:
An error occurred while installing do_postgres (0.10.16), and Bundler cannot continue.
This error message wasn’t verbose enough so again I had to do some digging.
The problem was solved by installing
$ sudo apt-get install postgresql-server-dev-9.3
What is it for? It is a package needed for header files for compiling SSI code to link into PostgreSQL’s backend. For example, for C functions to be called from SQL. This package also contains the Makefiles necessary for building add-on modules of PostgreSQL, which would otherwise have to be built in the PostgreSQL source-code tree.
More information on www.postgresql.org.Written on April 2nd , 2016 by Aneta