libaio.so.1: cannot open shared object file

前端 未结 7 898
名媛妹妹
名媛妹妹 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: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"

提交回复
热议问题