i ve tried to compile and install ngspice with the common guide. However it doesnt work. So I want to remove it completly (all libs alls stuff) and maybe give a second try with another configuration.
BUT i did nt find the option for either remove the compiled stuff from the working dir nor for cleaning up my Ubuntu. Is there any target in the makefile I can use?
there are many ways to install ngspice.
So please be a little bit more specific!
Did you install an Ubuntu package? Did you download ngspice release or from CVS? What kind of installation procedure did you perform (commands etc.)? What were the error messages?
We might help to clean up or better support your installation, if we know a little bit more!
You did "make install", and now want to get rid of those files ?
The trick would have been to record which files get installed.
or to use the debian/ubuntu package machinery.
you could have done
mkdir -p /tmp/foobaz ; make DESTDIR=/tmp/foobaz install
tar -C /tmp/foobaz -zcf image.tgz .
Then you would have had a record of all files in said "image.tgz" file.
To really install those files, you would have become superuser, and
cd / ; tar -zxf path/to/image.tgz
To deinstall them (untested)
cd / ; tar -ztvf path/to/image.tgz | xargs -n1 rm -f
Now, if you still have the unchanged build directory,
then you can still do that. install once again,
and record the list of files, then remove them.
For the debian/ubuntu machinery, have look at
The (really small) file
is, what is needed to build a debian package.
Once you have such a package, you can
use the regular ways to install and deinstall
your homegrown version.
(but don't ask me, i haven't done that myself so far)
could we in general add a "make uninstall" to makefile to undo a "make install" ?
Still we do not know if Eberhard ever arrived at "make install"
I've just had a look at our Makefiles.
We actually already have "make uninstall".
But it fails at least for xspice/icm.
I will have to fix GNUmakefile.in there.
in src/xspice/icm/GNUmakefile.in the `uninstall' target was missing.
I don't know whether that was your actual problem.
anyway, I've committed a fix to CVS for this issue.
Is this problem solved? I am also unable to uninstall ngspice 22 (installed using xspice on fedora)? What to do?
"anyway, I've committed a fix to CVS for this issue." from last year's November means, that the fix is included in ngspice-24.
So install ngspice-24.
Have a look at the manual, chapt. 31.1.3 how to do it.