NGSPICE On Red Hat Like Distributions
NGSPICE On Red Hat Like Distributions
This document details the necessary steps for installation of NGSPICE on Red Hat 7, Red Hat 8,
Oracle Linux 7 and Oracle Linux 8
The above mentioned operating systems are supplied with GCC 4.8 which is a comparatively
ancient compiler that is not compatible with NGSPICE. Unfortunately the OS themselves rely on
having this version and one cannot simply update to the version required by the tool.
To get around this development toolsets have been made available that enables the user to
compile and make in a number of different versions. In this case we will install toolset 11 which
is the minimum requirement for NGSPICE.
The assumption here is that the user wishes to install NGSPICE in a custom directory with
ADMS. This may not be the exact path the user wishes to take, but the general principles
remain the same. There is an install script compile_linux.sh which could simplify installation
somewhat. The user should read this script before trying it – especially if ADMS is required. The
principle of using the correct C compiler still applies to this script and although not explicit,
there should be enough information here to enable the user to figure out how to use the install
script.
All 4 of the following installations were tried and tested on virgin OS installations using VMWare
Workstation Pro 16
Justin Fisher
12/23/2021
Red Hat 7
Assumptions:
1. The appropriate pools have been attached via the subscription manager. Details can be
found at: https://access.redhat.com/solutions/253273
2. Git is installed
3. The user has administrative privileges
sudo subscription-manager repos --enable rhel-7-server-devtools-rpms
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-rpms
sudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
sudo subscription-manager repos --enable rhel-server-rhscl-7-debug-rpms
sudo subscription-manager repos --enable rhel-server-rhscl-7-source-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-debug-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-source-rpms
sudo yum install devtoolset-11
sudo yum install -y llvm-toolset-11.0
sudo yum install -y libXaw libXaw-devel readline readline-devel libX11 libX11-devel
sudo yum install -y perl perl-libxml-perl libxml2-devel libxml2 perl-XML-LibXML libXaw libXaw-devel
readline readline-devel libX11 libX11-devel
Install ADMS
Assuming the user is in their home directory:
cd Downloads
git clone https://github.com/Qucs/ADMS.git
cd ADMS
sh bootstrap.sh
./configure
make
sudo make install
Install ADMS
Assuming the user is in their home directory:
cd Downloads
git clone https://github.com/Qucs/ADMS.git
cd ADMS
sh bootstrap.sh
./configure
make
sudo make install
Install ADMS
Assuming the user is in their home directory:
cd Downloads
git clone https://github.com/Qucs/ADMS.git
cd ADMS
sh bootstrap.sh
./configure
make
sudo make install
Install ADMS
Assuming the user is in their home directory:
cd Downloads
git clone https://github.com/Qucs/ADMS.git
cd ADMS
sh bootstrap.sh
./configure
make
sudo make install