Results 1 to 3 of 3

Thread: Missing <alsa/asoundlib.h> library

  1. #1
    Join Date
    Jan 2010
    Ubuntu 9.10 Karmic Koala

    Smile Missing <alsa/asoundlib.h> library

    I want to compile and execute the code of this link:,1 to record sound in real time from a jack,but the library
    <alsa/asoundlib.h> is missing and i can't find it.It says that i can add the option -lasound on the
    linker command and i did it but it doesn't work.
    I would appreciate it a lot if you could help me.

  2. #2
    Join Date
    Oct 2007
    Lubuntu 12.10 Quantal Quetzal

    Re: Missing <alsa/asoundlib.h> library

    Dear OP (original poster),

    You have ran into the problem that some files are missing on your system. This can be seen more or less directly from the error message. Since Ubuntu uses package management, it is worthwhile searching for a package containing that file. In order to do so, redirect your web browser to "", type in the name of the file you are missing (note that the error message may contain parts of paths special to your system, like your home path if it is searched for the missing file there - make sure to strip them beforehand) in the section "Search the contents of packages", select "packages that contain files whose names contain the keyword" and choose your distribution. Then hit search and have a look at the answers. You should get a list of packages containing a respective file. Examine the package names and remember the names of the packages that look promising. Then install them by entering "sudo apt-get install " plus a space-separated list of packages in the terminal. You will need "sudo"-rights for this. Afterwards, see if your problem has vanished. If not, come back reporting what you did (including what you actually searched for) and ask for further help.

  3. #3
    Join Date
    Jul 2011

    Re: Missing <alsa/asoundlib.h> library

    Thank you for the post Zugzwang; it fixed my problem, and is a good thing to know for future ones.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts