title: how to install portaudio on pi properly
body: <p>I am working on a project that involves recording from a mic on a raspberry pi.
  for now i am getting this error while the program is running. </p>
  
  <blockquote>
    <p>python3: src/hostapi/alsa/pa_linux_alsa.c:3641:
    PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds'
    failed. Aborted</p>
  </blockquote>
  
  <p>while searching for ways to fix this, i figured out the file pa_linux_alsa.c belongs to port audio. please refer to the following links.</p>
  
  <p><a href="https://app.assembla.com/spaces/portaudio/tickets/268/details" rel="noreferrer">modified pa_linux_alsa.c i think</a></p>
  
  <p><a href="https://app.assembla.com/wiki/show/portaudio/Platforms_RaspberryPi" rel="noreferrer">how to install port audio</a></p>
  
  <p><a href="http://www.portaudio.com/download.html" rel="noreferrer">download link</a></p>
  
  <p>first link is about the error and a modified fix, still dont know where to copy and the last two are about installing portaudio. apparently there is no easier way to install this with a command.</p>
  
  <p>i downloaded the pa_snapshot enhanced  version of it. <em>but i dont know where i am supposed to put these files</em> to begin to configure and make as in the readme. I copied the portaudio directory in to <strong>home/pi</strong> (in the user i think. "<strong>cd</strong>" and copied it there) then did as in the readme and rebooted the system. i dont see any changes in the error in program. i tried using the command <strong>whereis</strong> with pa_<strong>linux_alsa.c</strong>. that command also doesn't show the file or anything related to portaudio. </p>