zarzen
February 17, 2018, 8:00pm
1
Hi all,
I hope to compile ipfs from source code, because last released version still have memory leakage. I notice it has been fixed in the master branch.
But following commands from readme file of go-ipfs not produce a runnable binary.
$ go get -u -d github.com/ipfs/go-ipfs
$ cd $GOPATH/src/github.com/ipfs/go-ipfs
$ make install
New to go-lang.
Do you get any error when running make install? Also, where’s your $GOPATH pointing to?
zarzen
February 20, 2018, 10:20am
3
No Error,
“$GOPATH = ~/go/”
Assuming you’re on *nix (Linux, Mac etc.), make install should put the resulting binary under ~/go/bin/ipfs. Have you checked to see if it’s there?
zarzen
February 21, 2018, 3:11am
5
Thanks! it is there, I thought it will be installed in /usr/bin/ or /usr/local/bin.
That’s where the install script from the prebuilt packages attempts to put the ipfs binary, not where the binary gets created when you build from source.