CentOS: error: libXext.so.6: cannot open shared objects file: no such file or directory

I get the error below when running a java file that tries to open the ods file.

An exception in the stream "main" java.lang.UnsatisfiedLinkError: /opt/software/jdk1.6.0_45/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open the shared objects file: There is no such file or directory in java.lang.ClassLoader $ NativeL

I tried - 'yum install libXext' , but got msg - already installed.

Any suggestions?

Answer:

do yum install libXstst.so.6 It installs and works great

+6
source share
5 answers

In my case, I needed to install additional libraries.

 yum install libXext.x86_64 yum install libXrender.x86_64 yum install libXtst.x86_64 
+7
source

First of all, you can try using the following command:

 yum search libXext 

After this search, you will find that you need to install the following library: libXext.i686 (or most likely libXext.i386). After that you can run:

 sudo yum install libXext.i686 

As an additional note, I also needed to install the following libraries for my Java application to work correctly: libXrender.i686 and libXtst.i686. I think this problem is related to the fact that we are trying to use java 32-bit version on 64-bit OS.

+5
source

I think you can install 32-bit jdk on a 64-bit system. If your CentOS is 64 bit and you have installed 32-bit jdk. You will get this error when running jar

you can verify that CentOs is 32 bit or 64 bit, enter the command:

  getconf LONG_BIT 

If CentOs has 64 bits, you can remove the 32-bit jdk and install a new one

+1
source
  • use the file command to find out if a 32-bit or 64-bit file is / opt / software / jdk 1.6.0_45 / jre / lib / i386 / xawt / libmawt.so its output should look like this:

    32-bit LSB ELF executable

  • then install the appropriate lib for 32 bits:

    sudo yum install libXext.i686

    for 64 bits:

    sudo yum install libXext

0
source

For Arch, I used pkgfile (which I installed with pacman) and then executed:

  pkgfile --update pkgfile libXtst.so.6 

and he showed me an extra / libxtst.

I installed with pacman and is still so good.

0
source

Source: https://habr.com/ru/post/985490/


All Articles