Postgresql – 32bit ODBC Postgres driver on Windows 2008 R2 x64

odbcpostgresqlwindows-server-2008-r2

I'm trying to install the Postgres ODBC 32bit driver on a Windows 2008 R2 64bit machine. After installing it, with no errors, I go to the ODBC panel, the 32bit version under the /syswow64 folder and try to add the driver, select the Postgres driver from the list but I get an error 126, saying he can't find the driver at the specified path.

The problem is that the path he shows me, is the exact path the driver is in, I double checked on the registery (on the HKLM\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\ location) and it's fine there too.
A couple more people on technet have the same issue too.

Did anyone ever run into this? Any ideas would be greatly appreciated.

edit: the driver works fine on my win7 x64 test machine, this behaviour only happens on the server.

Best Answer

Well, I figured it out. Leaving the answer here and a couple other places for future generations:

The system was missing the "secret" prerequisite of having Visual C++ 2010 Redistributable x86 installed (not the x64, that one it had). Fixed the problem instantly.

Related Topic