[Rails] Re: PostgreSQL setup for Rails@Ubuntu

2016-02-28 Thread krfg
If posgresql is installed via PostgreSQL apt repository, in order for Rails to use the 'pg' gem it is also necessary to install the 'libpq-dev' package, otherwise bundle install will fail. See at Stackoverflow Can't find the 'libpq-fe.h header when trying to install pg gem.

[Rails] Re: PostgreSQL setup for Rails@Ubuntu

2016-02-27 Thread krfg
>From 'man createuser': createuser creates a new PostgreSQL user (or more precisely, a role). Only superusers and users with CREATEROLE privilege can create new users, so createuser must be invoked by someone who can connect as a superuser or a user with CREATEROLE privilege