Linux installation of libngspice

Hi,

Im having trouble installing libngspice on ubuntu 19.04 with anaconda v4.8.2.
I have ngpsice installed (sudo apt-get install ngspice).
Then I’m following instructions on pyspice install

Im happy to use anaconda so I skipped to section 4.2.2
However the following commands run for many hours without success

conda install -c conda-forge ngspice-lib # optional
conda install -c conda-forge pyspice

with messages like:

Collecting package metadata (current_repodata.json): done
Solving environment: /
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
:::::

Trying the other command seems to work.

pip install PySpice

but this one doesn’t include libngspice.

Going back to step 4.2.1
I downloaded a tar of the libngspice but it’s a tar’d directory not a shared object (.so).
There’s no instructions in that directory on how to compile it… or where I should
place it for pyspice?

I found a similar question on this pyspice forum and I tried

inv ngspice.install
::::
configure: error: Couldn’t find GNU readline headers.

I guess I need to do something like

sudo apt-get install lib64readline

But I’ve not been able to locate that package so far…
Any ideas? I don’t think I’m going in the right direction?

A+

Damian

This is the command to install libreadline

sudo apt-get install libreadline6-dev

But

inv ngspice.install
:: ::
OSError: [Errno 39] Directory not empty: ‘/home/dsavage/work/git/github/pyspice/PySpice-1.4.3/ngspice-32’ -> ‘/home/dsavage/work/git/github/pyspice/PySpice-1.4.3/ngspice-32-src’

So I deleted the ngspice-32-src and ran it again.
Now I have finally this libngspice.so file in ./PySpice-1.4.3/ngspice-32/lib/libngspice.so
I added this path to PYTHON_PATH.
Unfortunately running an example like

python examples/analyses/pole_zero_analysis.py
::::
OSError: cannot load library ‘libngspice.so’: libngspice.so: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called ‘libngspice.so’

Same place as where I started…