How to run init after build from source?

I’m attempting to install the go-ipfs service on a virtual machine by compiling from source. I followed the steps below, but when attempting to run ipfs init, I get the message `No command ‘ipfs’ found…’. Can someone please let me know where I went wrong? I’m a go-lang noob, so I’m suspecting I may have missed something with configuring go.

  1. Install the go language runtime onto the virtual machine:

    • curl -O https://dl.google.com/go/go1.11.linux-amd64.tar.gz
    • sudo tar -C /usr/local -xzf go1.11.linux-amd64.tar.gz
    • export PATH=$PATH:/usr/local/go/bin
    • source ~/.profile
  2. Download the go-ipfs source: go get -u -d github.com/ipfs/go-ipfs

    • This will create a go directory in the ~/ directory.
  3. Navigate into the repo: cd go/src/github.com/ipfs/ipfs-go

  4. Compile the IFPS service: make install

  5. Add the service to the path:

  • export PATH=$PATH:/home/ubuntu/go/src/github.com/ipfs/go-ipfs/cmd
  • source ~/.profile
  1. Initialize the file system: ipfs init

  2. Expected to see my peer identity, instead was told No command 'ipfs' found...

Nevermind, I figured out that make did its job and created a bin directory under the go directory, step 5 should read:

  • export PATH=$PATH:/home/ubuntu/go/bin
  • source ~/.profile