Delve: Ubuntu - Command 'dlv' not found

Created on 15 Jan 2020  路  4Comments  路  Source: go-delve/delve

I referred to documentation available at https://github.com/go-delve/delve/blob/master/Documentation/installation/linux/install.md

  1. What version of Delve are you using (dlv version)?
    Error Command 'dlv' not found appears when I write dlv in console
  2. What version of Go are you using? (go version)?
    go version go1.13.6 linux/amd64
  3. What operating system and processor architecture are you using?
    Ubuntu 64bit
  4. What did you do?
    I ran command dlv in console
  5. What did you expect to see?
    Some options showing parameters for dlv
  6. What did you see instead?
    image

Following are path set for $GOPATH & $GOROOT
image

Am I missing anything?

Most helpful comment

Just now I solved it, an env variable was missing:

export PATH=$GOPATH/bin:$PATH

@chainhelen I received the same response you have in place. Fire above line in console and add the same in /etc/profiles

All 4 comments

@ankur0101 I aslo use ubuntu. There is any error or other output information when you type make install ?
Just like below

image

Just now I solved it, an env variable was missing:

export PATH=$GOPATH/bin:$PATH

@chainhelen I received the same response you have in place. Fire above line in console and add the same in /etc/profiles

This issue should not have been closed since the installation instructions are still incorrect.

I am new to go and I did the same mistake. This issue helped me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cpg1111 picture cpg1111  路  6Comments

ramya-rao-a picture ramya-rao-a  路  3Comments

NanXiao picture NanXiao  路  3Comments

primalmotion picture primalmotion  路  3Comments

delaneyj picture delaneyj  路  4Comments