Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

When I try

gem install pg

I get this error

C:/Ruby192/bin/ruby.exe extconf.rb checking for pg_config... yes Using config values from C:\Program Files\PostgreSQL\9.0\bin/pg_config.exe * 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=C:/Ruby192/bin/ruby --with-pg --without-pg --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/lib --with-pg-config --without-pg-config --with-pg_config --without-pg_config extconf.rb:13:in `': No such file or directory - C:\Program Files\PostgreSQL\9.0\bin/pg_config.exe --includedir (Errno::ENOENT) from extconf.rb:13:in'

Any advice?

share|improve this question
    
You do have Postgres installed, right? Is it somewhere other than C:\Program Files\PostgreSQL\9.0? –  Dylan Markow Feb 7 '11 at 16:02
    
Yeah it's Installed and that is the exact directory...For now I've solved using the 0.9.0 version gem install pg -v=0.9.0 this installs without problems. –  Alex Feb 7 '11 at 16:07

1 Answer 1

I've already provided an answer to this problem here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.