Couldn't find symbol 'ngCM_Input_Path' in a dynamic library: /lib/x86_64-linux-gnu/libngspice.so.0: undefined symbol: ngCM_Input_Path

Does anybody know how to resolve this error:

“Couldn’t find symbol ‘ngCM_Input_Path’ in a dynamic library: /lib/x86_64-linux-gnu/libngspice.so.0: undefined symbol: ngCM_Input_Path”

What models refer to ngCM_Input_Path ?

This is a new install, so I think the ngspice.so library is new and up-to-date.

Any clues appreciated…
-AC

Please give more information:
Operating system
Source of KiCad (install procedure)
KiCad version (KiCad->help-> About KiCad->Copy Version Info) and paste the contents here.

Did you have a previous ngspice installation? Better remove it before installing KiCad.

ngCM_Input_Path is available since ngspice-38 (current version is ngspice-42).

I get the same error when I open a project created by following the " ngspice in KiCad 8: amplifier using the TI OPA1641 audio opamp" tutorial.

I upgraded from KiCad 7 using the commands:

sudo add-apt-repository ppa:kicad/kicad-8.0-releases
sudo apt update
sudo apt install kicad

As far as I am aware there is no previous version of ngspice installed.

Version information as follows:

Application: KiCad Schematic Editor x86_64 on x86_64
Version: 8.0.4-8.0.4-0~ubuntu22.04.1, release build
Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18
Platform: Ubuntu 22.04.4 LTS, 64 bit, Little endian, wxGTK, X11, ubuntu-xorg, x11
OpenGL: Intel, Mesa Intel(R) Iris(R) Plus Graphics (ICL GT2), 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Build Info:
Date: Jul 17 2024 01:37:25
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 7.81.0
ngspice: 42
Compiler: GCC 11.4.0 with C++ ABI 1016
Build settings:

Try:

sudo apt remove "*ngspice*"
sudo apt install kicad
1 Like

That resolved the issue. Thank you for the prompt response!

2 Likes

This is a rather serious bug in KiCAD’s installation procedure. It is often necessary to run SPICE simulations outside of KiCAD due to the limitations of the Spice Simulator under KiCAD.

A possible intermediate remedy may be to compile standard ngspice from sources yourself. If this is directed to /usr/local/bin and /usr/local/lib, it will not interfere with ngspice installed and used by KiCad.

This topic was automatically closed after 90 days. New replies are no longer allowed.