Closed hartontw closed 5 years ago
Did you compile NWNXEE yourself or did you download the binaries? If it's the latter, NWNX_SQL needs both the PostgreSQL and MySQL libraries.
Try installing libmariadbclient18:i368: sudo apt install libmariadbclient18:i368
Thanks, your solution works to solve this issue in particular but I still getting errors:
...
D [19:42:13] [NWNX_Core] [NWNXCore.cpp:261] Loading plugin NWNX_SQL.so
E [19:42:13] [NWNX_Core] [NWNXCore.cpp:269] Failed to load plugin (NWNX_SQL.so) because 'Plugin failed to load: libpq.so.5: cannot open shared object file: No such file or directory'.
F [19:42:13] [NWNX_Core] [NWNXCore.cpp:403] The server encountered a fatal error 'Plugin failed to load: libpq.so.5: cannot open shared object file: No such file or directory' during setup and must now terminate.
...
I've found a "solution" to this issue. Find ``libpq.so.5``` and symblink it to /usr/lib/ but:
D [20:46:38] [NWNX_Core] [NWNXCore.cpp:261] Loading plugin NWNX_SQL.so
E [20:46:38] [NWNX_Core] [NWNXCore.cpp:269] Failed to load plugin (NWNX_SQL.so) because 'Plugin failed to load: libpq.so.5: wrong ELF class: ELFCLASS64'.
F [20:46:38] [NWNX_Core] [NWNXCore.cpp:403] The server encountered a fatal error 'Plugin failed to load: libpq.so.5: wrong ELF class: ELFCLASS64' during setup and must now terminate.
ASSERTION FAILURE
Should I install postgresql for x86?
Yeah, try libpq5:i386
You might also need libpq-dev:i386
, but I'm not sure about that one.
Only libpq5:i386
is needed. It's running.
From first error to running:
sudo apt install libmariadbclient18:i368
sudo apt install libpq5:i368
Thanks a lot. You can close the issue if you want.
You're welcome!
[Ubuntu 18.04] With PostgreSQL installed and running, the chosen user/role (the same is running the server) can create tables and I've tested with some queries of all kind.
My environment:
I've tried to install libmariadbclient but I think it is not a postgres dependency.