sudo apt-get install bison
sudo apt-get install libasound2-dev
tar xzvf sphinxbase-0.8.tar.gz
cd sphinxbase-0.8/
./configure --enable-fixed
make
sudo make install
cd ..
tar xzvf pocketsphinx-0.8.tar.gz
cd pocketsphinx-0.8
./configure
make
sudo make install 
