Problems with "libpq.so. 5": Wrong ELF class: ELFCLASS64 in C

Asked

Viewed 170 times

0

I am trying to run a file compiled in c and I get the following error message:

"error while loading Shared Libraries: libpq.so. 5: Wrong ELF class: ELFCLAS64"

I did a search and identified that this type of error is due to x64 and x86 libraries, but did not find in any corner how to solve this problem.

I already installed the postgresql and libpq5 packages but it didn’t help.

1 answer

0

I solved the problem with libpq5:i386 installation

sudo apt-get install libpq5:i386

I leave my contribution to the guys.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.