completely remove edb-debugger from ubuntu 18.04 - uninstallation

I was trying to upgrade my edb debugger from 0.9 to 1.0. I cloned the repo from github, compiled it and installed it. Unfortunately I forgot to uninstall the old version itself so I ran into some problems. Ithen decided to remove all of edb and start from scratch. I did all sorts of sudo commands (i.e. purge autoremove etc) yet the edb icon is still in my applications menu and works (to a degree cause then I get failed to load necessary plugin). Probably help to mention that I used cmake to compile and install the newer version.
So the question is how do I go about removing all of edb and start over ?
idzireit

This will remove the edb-debugger package and any other dependant packages which are no longer needed.
sudo apt-get remove --auto-remove edb-debugger
If you also want to delete your local/config files for edb-debugger then this will work.
sudo apt-get purge edb-debugger
sudo apt-get purge --auto-remove edb-debugger
To fully install edb-debugger ,follow this link
https://github.com/eteran/edb-debugger/wiki/Installing
Or else try this in your terminal
sudo apt-get install edb-debugger
If this process do not work, please comment below

I have made a very ugly work around o get it working without any errors. When it loads up I changed the symbol directory to point at the symbol directory from the build. In my case this would be the following:
/home/USERNAME/edb-debugger/build/plugins/SymbolViewer/CMakeFiles/SymbolViewer_autogen.dir
Then I did the same with the plugin directroy and made it point to:
/home/USERNAME/edb-debugger/build
I left the third directory (Session Directory) alone. Might play around with that at a later date but it is working even though loaded with ugly hacks.
If anyone has any better answers please advise how to prettify this fix up some.

Related

How to install libpq-fe.h?

I cannot figure this out for the life of me.
When I pip install django-tenant-schemas it tries to install the dependency psycopg2 which requires the Python headers and gcc. I have all this installed and still keep getting this error!
./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: No such file or directory
So to install libpq-fe-h I need to sudo apt-get install libpq-dev..
..which returns..
libpq-dev is already the newest version (10.10-0ubuntu0.18.04.1).
Then when I sudo find / libpq-fe.h it doesn't seem to be in my OS.
I am lost at this point. If anyone can help I would highly appreciate it.
For some reason, the file is missing on the system.
As you're using apt-get, the system is dpkg based, presumably Debian or it's derivative. You can try the Ubuntu's package search to get which package contains a file with name ending in libpq-fe.h.
I found the package is libpq-dev and file's absolute path is /usr/include/postgresql/libpq-fe.h.
FWIW, on a dpkg based system, you can check which package gives a file if you know the file's absolute path:
% dpkg -S /usr/include/postgresql/libpq-fe.h
libpq-dev: /usr/include/postgresql/libpq-fe.h
Also, unlike find, locate keeps a cache of found files (mlocate.db) that is created everyday via cron; so if the file happens to be removed after the last run, you can run locate libfq-fe.h to get the absolute path to the file without needing to check the Ubuntu package search online.
So the package is libpq-dev. Now, reinstalling it will get everything to the default state i.e. all relevant files will be copied to the right places. As it is only a library package, no user/system level configurations will be overridden (and dpkg will prompt you for action for any package that does that).
To reinstall the package:
sudo apt-get install --reinstall libpq-dev
For me, I realized it was trying to use the deprecated setup.py so I installed wheel (pip install wheel) and that sorted it all out.
Well after installing these libraries
sudo dnf install python-virtualenv openssl-devel gcc libffi-devel libxslt-devel issue was not gone.
I used mlocate to find where libpq-fe.h file is located. On my system (Fedora 32) it was located at /usr/pgsql-10/include/libpq-fe.h
yum install mlocate
sudo updateb
locate libpq-fe.h
After all added this line to ~/.bash_profile
nano ~/.bash_profile
export PATH=/usr/pgsql-10/bin/:$PATH
Works fine, I can easily install psycopg2 without any trouble.
You need to create a LD_LIBRARY_PATH that indicates the path of your library /user/pgsql-11/lib
Source: The 3rd point of build prerequisites at https://www.psycopg.org/docs/install.html#build-prerequisites

Cannot place vmware-ovftool in the uninstall list

I tried to reinstall Ovftool into my Centos and replace it with an old version but getting a message which I don't know how to fix it.
command to uninstall it
vmware-installer -u vmware-ovftool
command to install it again
sudo ./VMware-ovftool-4.3.0-7948156-lin.x86_64.bundle
Message received :
Cannot place vmware-ovftool 4.3.0 in the uninstall list.
Any advice?
In this case it's better to use the built-in yum remove <package> this may remove conflicting config.
Using rpm -e <package> is even better, if available, because it guarantees to remove remaining config. It will back up modified config files, but these won't interfere with future installations.
The package name for vmware-ovftool is open-vm-tools on my Ubuntu box, it may be worth checking that too, it could be the same on RHEL/CentOS/Oracle Linux as well.
Simply install another bundle and everything back to normal.

Poco/Data/SQLite/Connector.h: No Such file or directory

Asked a similar question recently but trying to simplify it since no one have been able to help.
I'm trying to compile a c++ program and I keep getting the error that it can't find Poco/Data/SQLite/Connector.h.
using: #include "Poco/Data/SQLite/Connector.h"
I've ran about a dozen installs trying to get this to work including:
sudo apt-get install openssl libssl-dev
sudo apt-get install libiodbc2 libiodbc2-dev
sudo apt-get install libpoco-dev
sudo gmake -s install under the downloaded libpoco dir.
I even see src/connector.cpp installed with the last.
New to C++ and Linux (raspbian on the pi 2), but can't seem to get the code to find this library.
Any suggestions?
In case anyone else has this issue.
libmysqlclient-dev needs to be installed first for these libraries to get installed with the poco install. Just doing mysql-client doesn't do it.
Change your path "Poco/Data/SQLite/Connector.h" to "Poco/Data/SQLite/connector.h". Hope this will help.

How to add the Audio/Video Property tab to Caja?

By default Caja does not come with the Audio/Video Properties tab that is present in Nautilus since... a very long time.
How can this tab be added?
gnome-mplayer includes an extension for caja since version 1.0.9-2:
https://code.google.com/p/gnome-mplayer/source/checkout
However, the version of gnome-mplayer-1.0.9-2 that comes from the Ubuntu repositories does not include the caja extension:
/usr/lib/caja/extensions-2.0/libgnome-mplayer-caja-properties-page.so
OR (for amd64):
/usr/lib/x86_64-linux-gnu/caja/extensions-2.0/libgnome-mplayer-caja-properties-page.so
I suspect that the reason is that when the .DEB was compiled, caja was not installed and thus not detected.
Therefore the only solution is to compile from source or use a deb compiled by someone else:
https://www.dropbox.com/s/x340ym3xeyhuosu/gnome-mplayer_1.0.9.2-2_amd64.deb?dl=1
https://www.dropbox.com/s/qm6nkgkaebddtrj/gnome-mplayer_1.0.9-1_i386.deb?dl=1
STEPS to compile:
Install dependencies:
Run the following as root:
apt-get build-dep gnome-mplayer
apt-get install make automake
apt-get install svn
apt-get install libcaja-extension-dev
Download source code with svn:
svn checkout http://gnome-mplayer.googlecode.com/svn/trunk/ gnome-mplayer
Compile
The make might complain that it cannot find automake-1.13 when you have automake-1.14
In order to resolve this run the following in the source folder:
aclocal
automake
./configure
make
after this all you need to do is to run:
make install OR checkinstall
Finally you might need to also install mplayer if you don't already have it.
Restart caja by logout/login or killall caja
Now you should have the property tab.
If you don't, check if you can open a movie with gnome-mplayer.
Let me know if you encounter any issues!
UPDATE: referenced dropbox package now installs the dependencies

How to uninstall cabal, cabal-nirvana and yesod

I am trying to find a way to remove cabal/cabal-nirvana/yesod from my system, I did install cabal with
sudo apt-get install cabal-install
second I would like to remove cabal-nirvana which I installed with
cabal install cabal-nirvana
and finally remove yesod for which I used the command
cabal install yesod-platform
Currently I have seen to exist a /home/username/.cabal folder, I just want to have my machine as close to previous state as possible (before trying to install yesod), this means removing all these things installed.
There is a lot of information on the web about insallation, however this seems not to be true for the uninstallation process.
Thank you in advance!
I guess what you're looking for is:
sudo apt-get --purge remove 'package-name'
This should remove the package along with all the fluff, I'm presuming you're using a Debian-based system.
I am under xubuntu, "sudo apt-get --purge remove yesod" worked for removing yesod, as for cabal my mistake was that I used "cabal" instead of "cabal-install", so it would be
"apt-get remove cabal-install", now it is removed.