getcwd failure seems to indicate that your current path is a directory
that no longer exists (like it was deleted)
then try again
That was strange as ‘ls’ showed I was in a directory, but that fixed
that problem, but after the reinstall I still have the same problem:
also, the extra args don’t allways seemed to matter as I get the same
just “gem install pg” without the other args
gem install pg – --with-pgsql-include-dir=/usr/include/pgsql --with-
Building native extensions. This could take a while…
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb --with-pgsql-include-dir=/usr/include/pgsql –
checking for pg_config… yes
checking for libpq-fe.h… no
Can’t find the 'libpq-fe.h header
*** 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:
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
pg-0.9.0 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/pg-0.9.0/ext/
[[email protected] /]#