rest-nvim / rest.nvim

A fast Neovim http client written in Lua
GNU General Public License v3.0
1.61k stars 142 forks source link

ERROR: lua-curl could not be found #313

Closed kevintraver closed 8 months ago

kevintraver commented 8 months ago

I get the following error, even after successfully installing lua-curl with luarocks.nvim

[rest.nvim] ERROR: lua-curl could not be found, therefore the cURL client will not work.

kevintraver commented 8 months ago

Looking into this further it appears its actually an issue with

 error loading module 'lcurl.safe' from file '/.luarocks/lib/lua/5.4/lcurl.so':
    dlopen(/Users/kevin/.luarocks/lib/lua/5.4/lcurl.so, 0x0006): symbol not found in flat namespace (_lua_absindex)
kevintraver commented 8 months ago

Looks like it was a path issue. I was able to get it working by running this:

sudo luarocks --lua-version=5.1 install --tree /usr/local lua-curl