[MacPorts] #70420: neovim @0.10.0_1: error loading module 'nlua0' from file 'libnlua0.so'
MacPorts
noreply at macports.org
Thu Aug 8 21:41:34 UTC 2024
#70420: neovim @0.10.0_1: error loading module 'nlua0' from file 'libnlua0.so'
---------------------+----------------------
Reporter: wryfi | Owner: l2dy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: neovim |
---------------------+----------------------
Description changed by wryfi:
Old description:
> See attached build log. Tried `port clean neovim` and also tried
> uninstalling and reinstalling. Now I have no neovim.
New description:
Neovim is built around luajit, which is based on lua 5.1.
The neovim build process creates a C library, `nlua0`, which is
subsequently used by luajit later in the build process.
In MacPorts, `nlua0` gets built against the default `lua`, which is
currently version 5.3. When luajit tries to then use this `nlua0`, the
neovim build fails, because the built library includes symbols that don't
exist in 5.1.
In the short term, `port deactivate lua && port install neovim && port
activate lua` works around this issue.
The following [https://github.com/macports/macports-ports/pull/25223
GitHub PR] updates the neovim port to add the proper include directory for
lua 5.1 to cmake, and should resolve the issue.
Ultimately, some changes to the lua packaging and/or docs would help
prevent future ports from breaking.
--
--
Ticket URL: <https://trac.macports.org/ticket/70420#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list