error while loading shared libraries: libxml2.so.2: wrong ELF class: ELFCLASS32

Posted: 4p in Linux

I got an error while checking yum list. Upon checking I found that “libxml2” 32 and 64bit packages were installed in the server.

error while loading shared libraries: libxml2.so.2: wrong ELF class: ELFCLASS32

Solution :-

Check the rpm packages using the commands.
———-

root@server1 [/usr]# rpm -qa –qf “%{n}-%{v}-%{r}.%{arch}\n” libxml2
libxml2-2.6.26-2.1.21.el5_9.3.x86_64
libxml2-2.6.26-2.1.21.el5_9.3.i386

Then remove the rpm

rpm -e libxml2-2.6.26-2.1.21.el5_9.3.i386

Advertisements
Comments
  1. ashiksfix says:

    root@server [~]# rpm -qa –qf “%{n}-%{v}-%{r}.%{arch}\n” libxml2
    error: ^%{n}-%{v}-%{r}\.%{arch}\n$: regcomp failed: Invalid content of \{\}

    giving this error.

    • Renjith Raju says:

      Ashik, Please copy this command in your notepad and use it. Also while copy/pasting a command, please check the symbols, all are case sensitive :). Here the quotes “”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s