29

I'm trying to install libaio with following command line :

sudo apt-get install libaio

and

sudo apt-get install automake libtool autoconf gcc-g++ gcc libaio libaio-dev make

but both of them doesn't work for me. How do I install libaio?

3
  • 1
    "doesn't work" is not a helpful description of a problem...
    – Sergey
    Dec 11, 2012 at 3:17
  • what do you mean by doesn't work?
    – Hashken
    Dec 11, 2012 at 4:04
  • I'm sorry maybe too hard you to understanding. I mean the command line can't install libaio Dec 11, 2012 at 4:26

3 Answers 3

52

You need to use libaio1 package, which provides the Linux kernel AIO access library - shared library

To install libaio Use the command

sudo apt-get install libaio1

For more information of libaio look here

2
  • 2
    use apt-cache policy libaio1 command to check
    – devav2
    Dec 11, 2012 at 4:49
  • libaio1: Installed: 0.3.109-2ubuntu1 Candidate: 0.3.109-2ubuntu1 Version table: *** 0.3.109-2ubuntu1 0, It's seems working. thanks Dec 11, 2012 at 5:00
3

I have found it super useful to use apt instead of apt-get to search for packages that are available.

$ sudo apt search libaio

Sorting... Done
Full Text Search... Done
libaio-dev/trusty 0.3.109-4 amd64
  Linux kernel AIO access library - development files

libaio1/trusty 0.3.109-4 amd64
  Linux kernel AIO access library - shared library

libaio1-dbg/trusty 0.3.109-4 amd64
  Linux kernel AIO access library - debugging symbols

Then, once you have found the name of the correct package, you can install it. So in this case you can just run the command

sudo apt install -y libaio1

where again I have used apt instead of apt-get.

4
  • apt isn't a valid command on a Ubuntu system in the year 2011. apt-search works.
    – A.B.
    May 31, 2015 at 17:53
  • 4
    Unless I am mistaken, it is currently the year 2015..... Jun 1, 2015 at 20:30
  • You are mistaken; it is currently the year 2023. ;)
    – KBurchfiel
    Apr 4, 2023 at 1:02
  • Everybody wants to be Bob Hope... Apr 4, 2023 at 20:50
0

After many tries and errors, I used sudo aptitude update and sudo aptitude upgrade and it fixed all the dependencies for libaio1, libmecab2 and so on.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .