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

0

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

"error while loading shared libraries: libpq.so.5: wrong ELF class: ELFCLASS64"

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

I have already installed the packages of postgresql and libpq5 but it did not work.

    
asked by anonymous 28.02.2018 / 15:27

1 answer

0

I solved the problem with installing libpq5: i386

sudo apt-get install libpq5:i386

I leave my contribution to guys.

    
28.02.2018 / 16:11