Recent

Author Topic: When connecting to a remote PostgreSQL 16.1-1, "libpq.dll" does not connect.  (Read 950 times)

shyub

  • Full Member
  • ***
  • Posts: 142
When developing the application, I added libraries to the project folder (libcrypto-3-x64.dll, libiconv-2.dll, libintl-9.dll, libpq.dll, libssl-3-x64.dll, libwinpthread-1.dll). PostgreSQL server is local. The project is launched and connected to the database.
I transfer *.exe along with *.dll to "Oracle VM VirtualBox". When I try to connect to a PostgreSQL installed on a real machine, it says: "Can not load PostgreSQL client library "libpq.dll". Check your instsllation."
I also install PostgreSQL in VirtualBox. Now both clients (from the real computer and VirtualBox) connect to both servers.
Why was there an error without PostgreSQL server in VirtualBox? It's not realistic to install a client and a server on all computers...
Both operating systems are Windows 10 x64.

shyub

  • Full Member
  • ***
  • Posts: 142
I figured out the reason. It is necessary to install the package "Microsoft Visual C++ 2015-2022 Redistributable (x64)" on the client's computer.

 

TinyPortal © 2005-2018