torhve / weechat-matrix-protocol-script

A WeeChat script in Lua that implements the matrix.org chat protocol
349 stars 52 forks source link

Not loading on OSX #127

Closed grobmeier closed 6 years ago

grobmeier commented 6 years ago

I have installed weechat with:

brew install lua
brew install luarocks
luarocks install cjson
brew install weechat --with-lua

And added the env from the readme.

Running weechat I had to do: /script load matrix.lua

Which outputted:


         │21:10:49 =!= | lua: unable to execute file "/Users/<my_user>/.weechat/lua/matrix.lua"
         │21:10:49 =!= | lua: error: error loading module 'cjson' from file '/usr/local/lib/lua/5.3/cjson.so':
         │21:10:49     | dlopen(/usr/local/lib/lua/5.3/cjson.so, 6): Symbol not found: _lua_objlen
         │21:10:49     |   Referenced from: /usr/local/lib/lua/5.3/cjson.so
         │21:10:49     |   Expected in: flat namespace
         │21:10:49     |  in /usr/local/lib/lua/5.3/cjson.so

I am not a Lua coder so any pointers where to look now would be appreciated. Thanks!

grobmeier commented 6 years ago

Sorry, I just found this and it appears I am able to run it now: https://github.com/mpx/lua-cjson/issues/56