Can't find/install libXtst.so.6?

前端 未结 4 1603
谎友^
谎友^ 2020-11-27 03:49

I\'m running Ubuntu 12.10 and I\'m trying to install Netbeans 7.1(or later) I have the .sh file, but it won\'t install, the error appears here:

[2013-06-27 1         


        
相关标签:
4条回答
  • 2020-11-27 04:27

    EDIT: As mentioned by Stephen Niedzielski in his comment, the issue seems to come from the 32-bit being of the JRE, which is de facto, looking for the 32-bit version of libXtst6. To install the required version of the library:

    $ sudo apt-get install libxtst6:i386
    

    Type:

    $ sudo apt-get update
    $ sudo apt-get install libxtst6
    

    If this isn’t OK, type:

    $ sudo updatedb
    $ locate libXtst
    

    it should return something like:

    /usr/lib/x86_64-linux-gnu/libXtst.so.6       # Mine is OK
    /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
    

    If you do not have libXtst.so.6 but do have libXtst.so.6.X.X create a symbolic link:

    $ cd /usr/lib/x86_64-linux-gnu/
    $ ln -s libXtst.so.6 libXtst.so.6.X.X
    

    Hope this helps.

    0 讨论(0)
  • 2020-11-27 04:40

    Your problem comes from the 32/64 bit version of your JDK/JRE... Your shared lib is searched for a 32 bit version.

    Your default JDK is a 32 bit version. Try to install a 64 bit one by default and relaunch your `.sh file.

    0 讨论(0)
  • 2020-11-27 04:42

    This worked for me in Luna elementary OS

    sudo apt-get install libxtst6:i386
    
    0 讨论(0)
  • 2020-11-27 04:42

    Had that issue on Ubuntu 14.04, In my case I had also libXtst.so missing:

    Could not open library 'libXtst.so': libXtst.so: cannot open shared object 
    file: No such file or directory
    

    Make sure your symbolic link is pointing to proper file, cd /usr/lib/x86_64-linux-gnu and list libXtst with:

     ll |grep libXtst                                                                                                                                                           
     lrwxrwxrwx   1 root root        16 Oct  7  2016 libXtst.so.6 -> libXtst.so.6.1.0
     -rw-r--r--   1 root root     22880 Aug 16  2013 libXtst.so.6.1.0
    

    Then just create proper symbolic link using:

    sudo ln -s libXtst.so.6 libXtst.so
    

    List again:

    ll | grep libXtst
    lrwxrwxrwx   1 root root        12 Sep 20 10:23 libXtst -> libXtst.so.6
    lrwxrwxrwx   1 root root        12 Sep 20 10:23 libXtst.so -> libXtst.so.6
    lrwxrwxrwx   1 root root        16 Oct  7  2016 libXtst.so.6 -> libXtst.so.6.1.0
    -rw-r--r--   1 root root     22880 Aug 16  2013 libXtst.so.6.1.0
    

    all set!

    0 讨论(0)
提交回复
热议问题