How can i know if gdb is installed in a unix machine?
I run the following commands:
> gdb
> gdb main
and the result is
gdb: command not found
but i don't if this means that gdb is not installed.
debuggdbinstallationlinuxunix
How can i know if gdb is installed in a unix machine?
I run the following commands:
> gdb
> gdb main
and the result is
gdb: command not found
but i don't if this means that gdb is not installed.
Best Answer
There are multiple ways of doing this. The easiest is to check whether
gdb
is in your$PATH
:However, the program could be installed and not in your user's
$PATH
. To quickly search for an executable calledgdb
do this:From
man locate
: