public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Uninstall GDB 9.2 from manual installation
@ 2021-10-05 14:54 Hillary Barder
  2021-10-06  7:57 ` Shahab Vahedi
  2021-10-06  9:00 ` Jeffrey Walton
  0 siblings, 2 replies; 3+ messages in thread
From: Hillary Barder @ 2021-10-05 14:54 UTC (permalink / raw)
  To: gdb

Hello GDB developer team,

I have installed an old version of GDB from *https://ftp.gnu.org/gnu/gdb/
<https://ftp.gnu.org/gnu/gdb/>*. Then I simply ran
./configure
make
sudo make install

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!

Best,
Emily

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Uninstall GDB 9.2 from manual installation
  2021-10-05 14:54 Uninstall GDB 9.2 from manual installation Hillary Barder
@ 2021-10-06  7:57 ` Shahab Vahedi
  2021-10-06  9:00 ` Jeffrey Walton
  1 sibling, 0 replies; 3+ messages in thread
From: Shahab Vahedi @ 2021-10-06  7:57 UTC (permalink / raw)
  To: Hillary Barder; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Uninstall GDB 9.2 from manual installation
  2021-10-05 14:54 Uninstall GDB 9.2 from manual installation Hillary Barder
  2021-10-06  7:57 ` Shahab Vahedi
@ 2021-10-06  9:00 ` Jeffrey Walton
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Walton @ 2021-10-06  9:00 UTC (permalink / raw)
  To: Hillary Barder; +Cc: Mahmood Naderan via Gdb

On Tue, Oct 5, 2021 at 10:55 AM Hillary Barder via Gdb
<gdb@sourceware.org> wrote:
>
> Hello GDB developer team,
>
> I have installed an old version of GDB from *https://ftp.gnu.org/gnu/gdb/
> <https://ftp.gnu.org/gnu/gdb/>*. Then I simply ran
> ./configure
> make
> sudo make install
>
> 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!

If GDB is the only thing in /usr/local, then you can perform a 'rm -rf
/usr/local/*' followed by a `hash -r' to clear the program cache.

Otherwise, perform the 'make uninstall' as suggested by Shahab.

Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-06  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 14:54 Uninstall GDB 9.2 from manual installation Hillary Barder
2021-10-06  7:57 ` Shahab Vahedi
2021-10-06  9:00 ` Jeffrey Walton

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).