<p>The PPA you have installed (<a href="https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+packages" rel="nofollow noreferrer">https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+packages</a>) is not compiled with ZMQ support (It should in future).</p>

<p>You need to self-compile bitcoin v0.13.0 or use one of the "official" binaries: <a href="https://bitcoin.org/bin/bitcoin-core-0.13.0/" rel="nofollow noreferrer">https://bitcoin.org/bin/bitcoin-core-0.13.0/</a></p>

<p><strong>EDIT: since 0.14, ZMQ support is available via the PPA</strong></p>

CC BY-SA 3.0
2017-04-03T07:40:09.590Z
Note that, latest packages from `ppa:bitcoin/bitcoin` contain ZMQ support
Oleksandr Fediashov
CC BY-SA 3.0
2016-09-20T07:40:06.853Z
2017-04-04T15:33:00.980Z
2017-04-04T15:33:00.980Z
Jonas Schnelli
<ol>
<li>install bitcoind by sudo apt install bitcoind in Ubuntu 16.04 server amd64(<a href="https://bitcoin.org/en/full-node#ubuntu-1410" rel="nofollow">https://bitcoin.org/en/full-node#ubuntu-1410</a>)</li>
<li>bitcoind --version show v0.13 ga402396</li>
<li>bitcoind -daemon -zmqpubhashblock=tcp://127.0.0.1:28332 -zmqpubhashtx=tcp://127.0.0.1:28332
after download, blocks file is 89G.
and the bitcoin.conf only have rpcuser=xxxyyy and rpcpassword=xxx123
should add server=1 to bitcoin.conf?</li>
<li>git clone <a href="https://github.com/bitcoin/bitcoin" rel="nofollow">https://github.com/bitcoin/bitcoin</a></li>
<li>cd bitcoin/contrib/zmq and pip install zmq, then do python zmq_sub.py and we can't receive anything in long wait.
How can we receive hashtx and hashblock from bitcoind? Should i install libzmq3-dev? Is libzmq3-dev only for compile bitcoind and don't need in runtime?</li>
</ol>

<bitcoind><zeromq>
How can we receive hashtx and hashblock from bitcoind by zmq subscribe?
SteveLin
# How can we receive hashtx and hashblock from bitcoind by zmq subscribe?

(Asked by: username_0 on 2016-09-19)

1. install bitcoind by sudo apt install bitcoind in Ubuntu 16.04 server amd64(<https://bitcoin.org/en/full-node#ubuntu-1410>)
2. bitcoind --version show v0.13 ga402396
3. bitcoind -daemon -zmqpubhashblock=tcp://127.0.0.1:28332 -zmqpubhashtx=tcp://127.0.0.1:28332
   after download, blocks file is 89G.
   and the bitcoin.conf only have rpcuser=xxxyyy and rpcpassword=xxx123
   should add server=1 to bitcoin.conf?
4. git clone <https://github.com/bitcoin/bitcoin>
5. cd bitcoin/contrib/zmq and pip install zmq, then do python zmq\_sub.py and we can't receive anything in long wait.
   How can we receive hashtx and hashblock from bitcoind? Should i install libzmq3-dev? Is libzmq3-dev only for compile bitcoind and don't need in runtime?

**Tags:** bitcoind, zeromq


---

## 1 answers

### Answer by username_1 on 2016-09-20. Score: 4

The PPA you have installed (<https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+packages>) is not compiled with ZMQ support (It should in future).

You need to self-compile bitcoin v0.13.0 or use one of the "official" binaries: <https://bitcoin.org/bin/bitcoin-core-0.13.0/>

**EDIT: since 0.14, ZMQ support is available via the PPA**

> **Comments:**
> **username_2**: Note that, latest packages from `ppa:bitcoin/bitcoin` contain ZMQ support  

---

