aneta_bielska [:blog]

Troubleshooting: do_postgres gem instalation error
#postgresql #ruby #ubuntu

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 postgresql-server-dev:

$ 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.

You may also enjoy:


#servers (1) #hosting (1) #sinatra (2) #assets (1) #sprockets (1) #react-js (1) #data-mapper (1) #ROM (1) #sequel (1) #ORM (1) #pg (1) #sqlite3 (1) #postgresql (1) #ruby (4) #ubuntu (1) #heroku (1) #git (1) #css (3) #cors (1) #same-origin-policy (1) #rake (1) #web-scraping (1) #ruby-on-rails (1) #brug (1) #elixir (1) #benchmark (1)