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.
-
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
-
Download the go-ipfs source:
go get -u -d github.com/ipfs/go-ipfs
- This will create a go directory in the
~/
directory.
- This will create a go directory in the
-
Navigate into the repo:
cd go/src/github.com/ipfs/ipfs-go
-
Compile the IFPS service:
make install
-
Add the service to the path:
export PATH=$PATH:/home/ubuntu/go/src/github.com/ipfs/go-ipfs/cmd
source ~/.profile
-
Initialize the file system:
ipfs init
-
Expected to see my peer identity, instead was told
No command 'ipfs' found...