# Testing IPFS with IPTB

**URL:** <https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232>\
**Category:** Uncategorized\
**Created:** [October 8, 2017, 8:15pm UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232 "2017-10-08T20:15:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![arby](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/arby/32/2435_2.png) [@arby](https://discuss.ipfs.tech/u/arby)\
**Post date:** [October 8, 2017, 8:15pm UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/1 "2017-10-08T20:15:56Z")

</div>

On the github page for IPTB, the install reads:  
`go get github.com/whyrusleeping/iptb`

On my Mac, I downloaded Go from from `https://golang.org/doc/install` where GOPATH is listed as `GOPATH="/Users/me/go"` and GOROOT is listed as `GOROOT="/usr/local/go"`.

Running the install command, I’m left with a page full of  
`unrecognized import path "gx/ipfs/...`

If I type `gx` I see `-bash: gx: command not found`.

Running `go get -u github.com/whyrusleeping/gx` followed by  
`export GOPATH=$HOME/go`  
`export PATH=$PATH:$GOROOT/bin:$GOPATH/bin`

Gets gx to run, but I’m still no go on the IPTB installer. Any idea how to get this up and running? I’d like to experiment with IPFS but feel better doing it in a small private network before I’m ready to fully dive in.

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [October 8, 2017, 11:16pm UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/2 "2017-10-08T23:16:03Z")

</div>

I think you might need to run the following commands before `go install` on iptb will succeed.

```auto
cd $GOPATH/src/github.com/whyrusleeping/iptb
gx install

```

---

<div class="post-metadata">

**Author:** ![arby](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/arby/32/2435_2.png) [@arby](https://discuss.ipfs.tech/u/arby)\
**Post date:** [October 9, 2017, 12:40am UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/3 "2017-10-09T00:40:26Z")

</div>

> [@leerspace](#):
>
> I think you might need to run the following commands before go install on iptb will succeed.
> 
> cd $GOPATH/src/github.com/whyrusleeping/iptb  
> gx install

`gx install` outputted:

```
[done] [install] go-crypto QmaPHkZLbQQbvcyavn8q1GFHg6o6yeceyHFSJ3Pjf3p3TQ 0s
[done] [install] go-base58 QmT8rehPR3F6bmwL6zjUN8XpiDBFFpMP2myPdC6ApsWfJf 0s
[done] [install] keccakpg QmQPWTeQJnJE7MYu6dJTiNTQRNuqBr41dis6UgY6Uekmgd 0s
[done] [install] murmur3 QmfJHywXQu98UeZtGJBQrPAR6AtmDjjbe3qjTo9piXHPnx 0s
[done] [install] go-multihash QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P 0s
[done] [install] go-multiaddr QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji 0s
[done] [install] go-multiaddr-net QmX3U3YXCQ6UYBxq2LVWF8dARS1hPUTEYLrSx654Qyxyw6 0s
[done] [install] yaml.v2 QmNNARAR2ncSEDKGVAjsE77VYAtNE6qMMPEC7hfWMwMdF9 0s
[done] [install] cli QmVcLF2CgjQb5BWmYFWsDfxDjbzBfcChfdHRedxeL3dV4K 0s
[done] [install] stump QmZLUtHGe9HDQrreAYkXCzzK6mHVByV4MRd8heXAtV5wyS 0s
[done] [install] go-ctrlnet QmRebo5SY2EajaMx2Fnom21KHPWSivJRJHYwe58nZ5N8yC 0s

```

However, following this up with `go install` still lists a ton of messages like:  
`../../ipfs/go-ipfs/exchange/bitswap/message/message.go:11:2: cannot find package "gx/ipfs/QmNa31VPzC561NWwRsJLE7nGYZYuuD2QfpK2b1q9BK54J1/go-libp2p-net"`

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [October 9, 2017, 1:36am UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/4 "2017-10-09T01:36:03Z")

</div>

I removed everything in my GOPATH and started over to see what is needed to build this (since I apparently had some things installed that aren’t dragged in by the previously suggested steps). Here are the commands I used to build iptb starting from scratch.

I don’t know enough about `gx` to say why it’s apparently not pulling in all of the required dependencies for iptb, but pulling in the dependencies for `go-ipfs` seems to take care of it.

```auto
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
# get and install go-ipfs and dependencies
go get -u github.com/ipfs/go-ipfs
cd $GOPATH/src/github.com/ipfs/go-ipfs
gx install
# get and install iptb dependencies
go get -u github.com/whyrusleeping/iptb
cd $GOPATH/src/github.com/whyrusleeping/iptb
gx install
# finally install iptb
go install

```

---

<div class="post-metadata">

**Author:** ![arby](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/arby/32/2435_2.png) [@arby](https://discuss.ipfs.tech/u/arby)\
**Post date:** [October 9, 2017, 2:45am UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/5 "2017-10-09T02:45:37Z")

</div>

I got up to `go get -u github.com/whyrusleeping/iptb`, then ran into:  
`package gx/ipfs/QmdYwCmx8pZRkzdcd8MhmLJqYVoVTC1aGsy5Q4reMGLNLg/atomicfile: directory "/Users/me/go/src/gx/ipfs/QmdYwCmx8pZRkzdcd8MhmLJqYVoVTC1aGsy5Q4reMGLNLg/atomicfile" is not using a known version control system`

Running `git init` in the `github.com/whyrusleeping/iptb` got me through to installing.

Sweet! Thanks for your help!

---

<div class="post-metadata">

**Author:** ![punalpatel](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@punalpatel](https://discuss.ipfs.tech/u/punalpatel)\
**Post date:** [March 12, 2018, 9:12pm UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/6 "2018-03-12T21:12:17Z")

</div>

Ran into following issue:

go install  1 ↵  2 ⚙  4442  10:18:27

# [github.com/whyrusleeping/iptb/util](http://github.com/whyrusleeping/iptb/util)

util/dockernode.go:193:10: cannot use int(dur.Nanoseconds() / 1000000) (type int) as type uint in field value

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [March 12, 2018, 9:18pm UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/7 "2018-03-12T21:18:35Z")

</div>

It looks like we modified a dependency without updating iptb. You should probably build iptb with `gx`. Instructions:

```auto
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
go get -d github.com/whyrusleeping/iptb
gx-go rw
go build

```

---

<div class="post-metadata">

**Author:** ![decentralizedMe](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@decentralizedMe](https://discuss.ipfs.tech/u/decentralizedMe)\
**Post date:** [November 22, 2018, 6:18am UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/8 "2018-11-22T06:18:01Z")

</div>

Hi, I have issues when using iptb. After installing iptb, I tried to start it using iptb init, however it returns with a message “Could not find plugin localipfs”. I tried with “iptb auto -type localipfs -count 5”, it asked for overwriting the testbeds and I said yes, but then it again returns with the same error.

1. How to use iptb to spin n nodes so I can test from my client?
2. How to get the list of plugins in use and how to use them in the iptb setup?

Thanks.

---

<div class="post-metadata">

**Author:** ![LastExile16](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lastexile16/32/1353_2.png) [@LastExile16](https://discuss.ipfs.tech/u/LastExile16)\
**Post date:** [November 23, 2018, 10:19am UTC](https://discuss.ipfs.tech/t/testing-ipfs-with-iptb/1232/9 "2018-11-23T10:19:18Z")

</div>

To use iptb for ipfs you have to use plugins. for this reason they have another repository on [https://github.com/ipfs/iptb-plugins](https://github.com/ipfs/iptb-plugins)  
but unfortunately it seems that it has some installation problems that are not fixed yet.
