Mosca on Raspbian

Posted by {"display_name"=>"greg", "login"=>"greg", "email"=>"greg@udon.org", "url"=>""} on March 25, 2016 · 1 min read

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
 #include 
                 ^
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