There are multiple ways to get Gnucap running. To use the latest features, it is best to install Gnucap from source. Building Gnucap is best on a Linux operating system such as Debian or Ubuntu. To build Gnucap on ohter operataing systems see the last section of this chapter.
To build Gnucap from source you need to install a number of buildtools:
the readline library or debian package
You can download gnucap from the Gnu savannah repo:
git clone git://git.savannah.gnu.org/gnucap.git
git clone https://git.savannah.gnu.org/r/gnucap
This will give you the basic gnucap directory structure:
├── apps├── include├── lib├── main├── modelgen└── tests
Next, you need to move a recent tag or branch of the project. You can do this with:
git checkout -b ....
The project includes a gnucap shared library gnucap.so, some executables and a number of plugins.
To build of these, you can run the default build commands:
It might be necessary to reload the shared libraries with:
To build gnucap on MacOS, a good reference is the gnucap build recipe https://github.com/guitorri/homebrew-tap/blob/master/gnucap.rb
After a successfull build and installation, you should be able to run gnucap like this:
~$ gnucapGnucap : The Gnu Circuit Analysis PackageNever trust any version less than 1.0Copyright 1982-2013, Albert DavisGnucap comes with ABSOLUTELY NO WARRANTYThis is free software, and you are welcometo redistribute it under the terms ofthe GNU General Public License, version 3 or later.See the file "COPYING" for details.main version: master 2017.10.03core-lib version: master 2017.10.03default plugins: master 2017.10.03