Hướng dẫn cài đặt ng spice trên Mac os Linux Windows

Leave a Comment

How to install ng spice on mac, linux, windows


Ngspice là thư viện mô phỏng mạch điện tử hỗn hợp (the open source Spice circuit simulator). Nó là sự kế thừa của phiên bản ổn định mới nhất của Berkeley SPICE, phiên bản 3f.5, được phát hành vào năm 1993.


Install ngspice on Mac OS X:


Option 1: (allows very latest version install, )

Install XCode Tools if you haven’t already.
Download ngspice at: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/

In your working area type:

tar zxvf ng-spice-rework-25.tar

Go into the newly created ngspice directory and type:

./configure

./make

sudo make install

when finished, ngspice will be installed in

/usr/local/bin/ngspice
Option 2:

(easiest way, binary package)
Download ngspice at: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/

Download and install: ngspice-26.pkg

Install instructions are in: INSTALL_MAC_OS_X. It installs like any Mac package file.
Option 3:

(less easier way, compile from source)

Install macports, see: http://www.macports.org/install.php

I recommend using the Mac OS X Package (.pkg) Installer.

Once installed, in a terminal window, type:

sudo port install ng-spice

This will install ngspice into the /opt directory.

After this, ngspice will be available at the command prompt.

Type ngspice, not ng-spice.


Install ngspice on Ubuntu:


sudo vi /etc/apt/sources.list

-remove all comments on path lines

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
Download ngspice at: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/

gunzip ng-spice-rework-26.tar.gz

tar xvf ng-spice-rework-26.tar
Go into the newly created ngspice directory and type:

./autogen.sh

./configure

./make

sudo make install

when finished, ngspice will be installed in

/usr/local/bin/ngspice


Install ngspice on Windows


To install ngspice on PC
Download ngspice_version.zip at: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/

This is MS Windows executable, 32 bit that also includes XSPICE

code models, examples, tests, and manual.



Học hành, Lập trình, Linux, MacOs, Mô phỏng, Phần mềm
Thủ thuật
If You Enjoyed This, Take 5 Seconds To SHARE It

0 comments:

Post a Comment