1、下载源代码
git clone git://ngspice.git.sourceforge.net/gitroot/ngspice/ngspice
2、安装编译的需要的软件
apt-get install automake
apt-get install libtool
apt-get install libxaw7-dev
apt-get install libreadline-dev
3、编译软件
cd 源代码目录名
./autogen.sh
mkdir debug
cd debug
../configure --with-x --with-readline=yes
make
sudo make install