Freemindscafe

Installing SPICE (ngspice or LTspice) on ubuntu 12.04

#1

Spice is a general purpose circuit simulation program. SPICE originates from the EECS Department of the University of California at Berkeley. For most of the commericial tools available today uses SPICE as their base. The home page for Spice is available at http://bwrcs.eecs.berkeley.edu/Classes/IcBook/SPICE/

It seems that there are two variants that are free can be installed ngspice and LTSpice.

ngspice

  • It supports command line only

  • Can be installed on linux

  • I have installed it on Ubuntu 12.04 using the instructions provided on http://web.engr.oregonstate.edu/~traylor/ece391/install_ngspice

      To install latest ngspice (rework-26) on Ubuntu.  
      Tested on Ubuntu 12.04
    
      sudo apt-get update
      sudo apt-get install build-essential linux-headers-`uname -r`
      sudo apt-get install libtool automake autoconf
      sudo apt-get install flex bison texinfo
      sudo apt-get install libx11-dev libxaw7-dev
    
      Go to: http://sourceforge.net/projects/ngspice/files/ng-spice-rework/26/
      download ngspice--26.tar.gz to a working area.
    
      gunzip ngspice-26.tar.gz
      tar xvf ngspice-26.tar 
    
      Go into the newly created ngspice-26 directory and type:
    
      ./autogen.sh
      ./configure
      make 
      sudo make install
    
      when finished, ngspice will be installed in 
      /usr/local/bin/ngspice
    

LTspice

#2

Ngspice on ubuntu please answer my question…

#3

Please ensure that the command is linux-headers-`uname -r`. Notice it is tick and not quote character.