user2212461
user2212461

Reputation: 3263

'nanomsg/nn.h' file not found on MAC

I want to install nn with LuaRocks on macOS. But when running

sudo luarocks install nn      //I use sudo because otherwise I don't have permission to install

I am getting the error

lnn.c:4:9: fatal error: 'nanomsg/nn.h' file not found include ^ 1 error generated.

How can I resolve this issue?

Upvotes: 2

Views: 1328

Answers (1)

Francisc
Francisc

Reputation: 393

Brew comes to the rescue.

Run:

brew install nanomsg

This worked for me.

Upvotes: 3

Related Questions