From: David Garamond Date: 2004-02-06T16:33:54+09:00 Subject: pl-ruby detecting postgresql 7.4 under redhat I hope discussion on pl-ruby is welcome in this list. pl-ruby 0.3.8. RH7.3. postgresql 7.4.0 RPM from PGDG. In this installation, pg_config.h is located under /usr/include/pgsql/server/, not /usr/include/pgsql/. Thus extconf.rb fails to detect the version automatically. I need to add --with-pgsql-version explicitly, otherwise it will assume version is 7.3 and plruby will fail to build. What about adding this in extconf.rb: --- extconf.rb.orig Fri Feb 6 14:22:00 2004 +++ extconf.rb Fri Feb 6 14:28:38 2004 @@ -49,6 +49,7 @@ for version_in in [ "#{include_dir}/config.h", "#{include_dir}/pg_config.h", + "#{include_dir}/server/pg_config.h", "#{srcdir}/version.h.in", "#{srcdir}/pg_config.h" ] or perhaps adding "/usr/include/pgsql" as one of the default include_dir to search? -- dave