vhyrro / luarocks.nvim

Easily install luarocks with lazy.nvim
The Unlicense
64 stars 5 forks source link

fix(build): try known workarounds when luarocks build fails #14

Closed pysan3 closed 3 months ago

pysan3 commented 3 months ago

The ./configure script and Arch Linux folder structure just don't get along nicely yielding an error message as follows.

❌ Performing luarocks `./configure` if Unix systems
...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/build.lua:126: Failed to install luarocks: 
Configuring LuaRocks version dev...

Lua interpreter found: /sbin/luajit
Checking if /sbin/luajit is Lua version 5.1... yes
lua.h for Lua 5.1 not found (tried //include/lua/5.1/lua.h //include/lua5.1/lua.h //include/lua-5.1/lua.h //include/lua51/lua.h //include/lua.h //include/luajit-2.1/lua.h)

If the development files for Lua (headers and libraries)
are installed in your system, you may need to use the
--with-lua or --with-lua-include flags to specify their location.

If those files are not yet installed, you need to install
them using the appropriate method for your operating system.

Run ./configure --help for details on flags.

configure failed.

This error has been reported on multiple places and it is affecting not small number of peoples so we've decided to make an official workaround.


If you liked this code better cuz it's more verbose, let me know.

image

vhyrro commented 3 months ago

Awesome, tysm :)