Subheader

Lazy Programmer's Blog

Pages

Friday, May 6, 2016

How to install just PostgreSQL client tools on Windows and use it in rails application

Since in latest installers for PostgreSQL support for custom components is removed, installer will install both client tools and PostgreSQL server.

Solution:

Step 1. Install ruby
I like RubyInstaller

Step 2. Install rails
I like RailsInstaller

Step 3. Download PostgreSQL binary package
http://www.enterprisedb.com/products-services-training/pgbindownload
Lets copy files into
C:\Program Files\PostgreSQL

Step 4. Install gem pg
gem install pg -- --with-pg-config="C:\Program Files\PostgreSQL\9.1\bin"
Now we can use PostgreSQL client tools in rails application

No comments:

Post a Comment