libaio.so.1: cannot open shared object file

前端 未结 7 883
名媛妹妹
名媛妹妹 2021-02-02 05:40

I have a simple test program that when I run I get:

./hello: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or d         


        
相关标签:
7条回答
  • 2021-02-02 06:14

    I had the same problem, and it turned out I hadn't installed the library.

    this link was super usefull.

    http://help.directadmin.com/item.php?id=368

    0 讨论(0)
  • Here on a openSuse 12.3 the solution was installing the 32-bit version of libaio in addition. Oracle seems to need this now, although on 12.1 it run without the 32-bit version.

    0 讨论(0)
  • 2021-02-02 06:17

    It looks like a 32/64 bit mismatch. The ldd output shows that mainly libraries from /lib64 are chosen. That would indicate that you have installed a 64 bit version of the Oracle client and have created a 64 bit executable. But libaio.so is probably a 32 bit library and cannot be used for your application.

    So you either need a 64 bit version of libaio or you create a 32 bit version of your application.

    0 讨论(0)
  • 2021-02-02 06:17

    Install the packages:

    sudo apt-get install libaio1 libaio-dev
    

    or

    sudo yum install libaio
    
    0 讨论(0)
  • 2021-02-02 06:21

    I'm having a similar issue.

    I found

    conda install pyodbc

    is wrong!

    when I use

    apt-get install python-pyodbc

    I solved this problem。

    0 讨论(0)
  • 2021-02-02 06:26

    I had to do the following (in Kubuntu 16.04.3):

    1. Install the libraries: sudo apt-get install libaio1 libaio-dev
    2. Find where the library is installed: sudo find / -iname 'libaio.a' -type f --> resulted in /usr/lib/x86_64-linux-gnu/libaio.a
    3. Add result to environment variable: export LD_LIBRARY_PATH="/usr/lib/oracle/12.2/client64/lib:/usr/lib/x86_64-linux-gnu"
    0 讨论(0)
提交回复
热议问题