Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created January 15, 2009 22:48
Show Gist options
  • Save luislavena/47681 to your computer and use it in GitHub Desktop.
Save luislavena/47681 to your computer and use it in GitHub Desktop.
Luis@KEORE (D:\Users\Luis\projects\oss\datamapper\do.git\do_postgres\ext\do_postgres_ext)
$ ruby extconf.rb --with-pgsql-dir=d:/users/luis/projects/oss/_libs/pgsql --with-pgsql-server-include=D:/users/luis/projects/oss/_libs/pgsql/include/server --with-pgsql-win32-include=d:/users/luis/projects/oss/_libs/pgsql/include/server/port/win32
diff --git a/do_postgres/ext/do_postgres_ext/extconf.rb b/do_postgres/ext/do_postgres_ext/extconf.rb
index a8e7631..bf1ed03 100644
--- a/do_postgres/ext/do_postgres_ext/extconf.rb
+++ b/do_postgres/ext/do_postgres_ext/extconf.rb
@@ -28,8 +28,9 @@ def have_build_env
have_header('catalog/pg_type.h')
end
-dir_config('pgsql', config_value('includedir-server'), config_value('libdir'))
dir_config('pgsql', config_value('includedir'), config_value('libdir'))
+dir_config('pgsql-server', config_value('includedir-server'), config_value('libdir'))
+dir_config('pgsql-win32', config_value('includedir'))
required_libraries = []
desired_functions = %w(PQsetClientEncoding pg_encoding_to_char PQfreemem)
have_header: checking for postgres.h... -------------------- no
"gcc -E -I. -ID:/Users/Luis/ruby/ruby-186-p114-MINGW-rubygems-131/lib/ruby/1.8/i386-mingw32 -I. -Id:/users/luis/projects/oss/_libs/pgsql/include/server/port/win32 -ID:/users/luis/projects/oss/_libs/pgsql/include/server -Id:/users/luis/projects/oss/_libs/pgsql/include -g -O2 conftest.c -o conftest.i"
In file included from D:/users/luis/projects/oss/_libs/pgsql/include/server/postgres.h:48,
from conftest.c:1:
D:/users/luis/projects/oss/_libs/pgsql/include/server/c.h:97:21: libintl.h: No such file or directory
checked program was:
/* begin */
1: #include <postgres.h>
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment