Can someone help me go through the coding to install IPFS for Mac?

So far, I got past the first step and now I’m at:

Downloads myname$ tar go-ipfs_v0.4.13_darwin-amid64.tar.gz
Usage:
List: tar -tf
Extract: tar -xf
Create: tar -cf [filenames…]
Help: tar --help

What do I do next?

It’s the prebuilt package, https://ipfs.io/docs/install/ doesn’t help that much.

That’s not the command. From the link you provided, the commands are.

  1. tar xvfz go-ipfs.tar.gz
  2. cd go-ipfs
  3. ./install.sh

After this, you should be able to use ipfs from the command line.

No, it doesn’t work. See what problem I came across when I did that: https://github.com/ipfs/go-ipfs/issues/4619

@elaineyumusic Make sure you are using the correct file name (note the difference between amd64 and amid64 above). I just successfully replicated the IPFS installation procedure on macOS 10.13.3:

Katja:Downloads machawk1$ which ipfs
Katja:Downloads machawk1$ tar xvfz go-ipfs_v0.4.13_darwin-amd64.tar.gz 
x go-ipfs/build-log
x go-ipfs/install.sh
x go-ipfs/ipfs
x go-ipfs/LICENSE
x go-ipfs/README.md
Katja:Downloads machawk1$ cd go-ipfs
Katja:go-ipfs machawk1$ ./install.sh
Moved ipfs to /usr/local/bin
Katja:go-ipfs machawk1$ which ipfs
/usr/local/bin/ipfs
Katja:go-ipfs machawk1$ ipfs
USAGE
  ipfs - Global p2p merkle-dag filesystem.

  ipfs [--config=<config> | -c] [--debug=<debug> | -D] [--help=<help>] [-h=<h>] [--local=<local> | -L] [--api=<api>] <command> ...

SUBCOMMANDS
...

I get an error again for some reason.

There might be some kind of permissions issue.

Try sudo tar xvfz go-ipfs_v0.4.13_darwin-amd64.tar.gz. If you get any permissions errors for the next two commands, try putting sudo before those too.

I get that same error when I try to run the command on a non-existent file, e.g.,

$ tar xvfz nonExistentFile
tar: Error opening archive: Failed to open 'nonExistentFile'

Try this:

$ wget https://dist.ipfs.io/go-ipfs/v0.4.13/go-ipfs_v0.4.13_darwin-amd64.tar.gz
$ tar xvfz go-ipfs_v0.4.13_darwin-amd64.tar.gz
1 Like

I get ‘-bash: wget: command not found’ when I type that in.

macOS doesn’t have wget by default.

Try this:

$ curl https://dist.ipfs.io/go-ipfs/v0.4.13/go-ipfs_v0.4.13_darwin-amd64.tar.gz -o ipfs.tar.gz
$ tar xvfz ipfs.tar.gz
2 Likes

brew install ipfs

Simply works for me.

4 Likes

I suggest, as well, to use brew! More here: https://brew.sh/
brew install ipfs

4 Likes