Configuration Phase
- Install the 64 bit versions of OpenSSL and MIT Kerberos
- Get the professional version of Visual Studio 2010 or 2012.
- Open the 64Bit of the Visual Studio Command Prompt (not the 32 bit version)
- cd to src\tools\msvc in the folder that contains Postgres’ source code
- Change the config_default.pl:
includes => 'C:\\Program Files\\MIT\\Kerberos\\include:C:\\OpenSSL-Win64\\include',after
libraries => 'C:\\Program Files\\MIT\\Kerberos\\lib\\amd64:C:\\OpenSSL-Win64\\lib',
“iconv => undef,”change the krb5 and ssl lines to:
krb5 => 'C:\\Program Files (x86)\\MIT\\Kerberos', # --with-krb5=
openssl => 'C:\\OpenSSL-Win64', # --with-ssl=
Build Phase
- in the vs command prompt, type Build
- When done, if no errors, then type Install C:\PathWhereYouWanToInstallPostgres
- Go to the folder where OpenSSL is installed
- Search in the folder and subfolders for libeay32 and ssleay.dll and copy those files
- Go to the folder where it Postgres was installed (C:\PathWhereYouWanToInstallPostgres)
- Go to the BIN folder and paste libeay32 and ssleay.dll
- Start the regular command prompt in that folder and call pg_ctl -D PATH_TO_YOUR_DATA_FOLDER
Please refer to the Postgresql documentation on how to configure GSSAPI in an installed Postgresql service here.
Comments