25 Mar 2016

Mosca on Raspbian

I ran into dependency problems with the Mosca install on Raspbian 2016-02-26. Here are the steps that resolved it:

During the install of Mosca via npm, I ran into build issues with the Kerberos library and zmq.

The kerberos related error included the message:

../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory

I found the problem documented here and addressed it by installing libkrb5-dev.

sudo apt-get install -y libkrb5-dev

The other issue I ran into was with zqm and described here. The error looked like this:

../binding.cc:28:17: fatal error: zmq.h: No such file or directory
compilation terminated.

I installed zqm with this command:

sudo apt-get install -y libzmq3 libzmq3-dev

Now, the install of Mosca goes without errors:

npm install mosca bunyan -g --unsafe-perm