public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Shahab Vahedi <shahab.vahedi@gmail.com>
To: Hillary Barder <hillbarder32@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Uninstall GDB 9.2 from manual installation
Date: Wed, 6 Oct 2021 09:57:11 +0200	[thread overview]
Message-ID: <YV1W111khJ4dmkuR@gmail.com> (raw)
In-Reply-To: <CAHeBnJsW_28LdUN3neLctF5ViCNgNF3DsGTVQbBEpiYEvQQ2zw@mail.gmail.com>

Hi Emily,

On Tue, Oct 05, 2021 at 10:54:20AM -0400, Hillary Barder via Gdb wrote:
> to install GDB 9.2 to /usr/local/bin on my Mac. Right now I want to
> completely remove this old version, because it crash my problem and
> consumes 100% CPU sometimes. Could you please tell me how to uninstall it
> in my case? Thank you so much!

Assuming that you still have the build directory available, your very
first bet _would be_:

$ cd /path/to/build
$ make uninstall
  the uninstall target is not supported in this tree

Then this is what I suggest as a workaround: Build GDB 9.2 again, but this
time install it in a path that is new and no other files reside in:

$ cd /path/to/build
$ /path/to/src/binutils/configure ... --prefix=/local/pristine/path ...
$ make
$ make install                        # no root permission is needed

Now, enlist all the files installed in that path and (manually) remove
their counter part on your system:

$ find /local/pristine/path
  /local/pristine/path/usr/bin/gdb            # remove "/usr/bin/gdb"
  /local/pristine/path/usr/share/doc/...      # ...


Cheers,
Shahab

  reply	other threads:[~2021-10-06  7:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 14:54 Hillary Barder
2021-10-06  7:57 ` Shahab Vahedi [this message]
2021-10-06  9:00 ` Jeffrey Walton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YV1W111khJ4dmkuR@gmail.com \
    --to=shahab.vahedi@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=hillbarder32@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).