sipcapture / heplify-server

HEP Capture Server for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
184 stars 85 forks source link

LuaJIT error building on OS X #431

Closed joshelson closed 4 years ago

joshelson commented 4 years ago

I have done a standard build on OS X with Lua and LuaJIT installed via homebrew and am getting the following error building heplify-server.

josh@mac heplify-server % go build cmd/heplify-server/heplify-server.go
# pkg-config --cflags  -- luajit-5.1
Package luajit-5.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `luajit-5.1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'luajit-5.1' found
pkg-config: exit status 1

I assume this is an issue with the development header location on OS X, but has anyone worked around this before?

Thanks in advance!

joshelson commented 4 years ago

Got a few minutes to look at this, and a quick hack to work around:

brew install lua luajit
cp /usr/local/lib/pkgconfig/luajit.pc /usr/local/lib/pkgconfig/luajit-5.1.pc

Build as normal. Hope this helps someone else.