Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation scripts fails to configure luarocks due to missing `--with-lua-include' flag #493

Open
robin-carlier opened this issue Aug 1, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@robin-carlier
Copy link

When trying to install rocks.nvim through the install script, the installer fails to configure luarocks with the following error message:

Configuring LuaRocks version dev...

Lua interpreter found: /bin/lua5.1
Checking if /bin/lua5.1 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)

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.

A fix is to download the installation script and to modify the configuration command (line 192 of installer.lua) to add the --with-lua-include flag with a path containing the required includes (for instance /usr/include did the trick on Debian testing with the package liblua5.1-0-dev installed).

It would be nice to modify the installation script in a way that allows the user to set this flag through an environment variable instead of having to download, edit and run it locally.

@mrcjkb
Copy link
Member

mrcjkb commented Aug 2, 2024

Hey 👋

thanks for reporting.
I'll look into this. We've also thought of packaging a pre-built luarocks (perhaps bundled with Lua 5.1).

@mrcjkb
Copy link
Member

mrcjkb commented Sep 18, 2024

We are shifting our focus to developing rocks and using it instead of luarocks.

@mrcjkb mrcjkb added the good first issue Good for newcomers label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants