sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.61k stars 97 forks source link

How to build with lua54? #2065

Closed Pi-Cla closed 2 weeks ago

Pi-Cla commented 2 weeks ago

Previously on SILE 0.14.17 I could build with lua54 and the interpreter would be detected properly:

[   23s] checking for a Lua interpreter with version >= 5.1... Hello Lua 5.4!
[   23s] lua
[   23s] checking for lua... /usr/bin/lua
[   23s] checking for lua version... 5.4
[   23s] checking for lua platform... unknown
[   23s] checking for lua script directory... ${prefix}/share/lua/5.4
[   23s] checking for lua module directory... ${exec_prefix}/lib/lua/5.4
[   23s] checking if LUA_VERSION is defined... yes
[   23s] checking for lua.h... no
[   24s] checking for lualib.h... no
[   24s] checking for lauxlib.h... no
[   24s] checking for luaconf.h... no
[   24s] checking for Lua headers in... /usr/include/lua5.4
[   24s] checking for lua.h... yes
[   24s] checking for lualib.h... yes
[   24s] checking for lauxlib.h... yes
[   24s] checking for luaconf.h... yes
[   24s] checking for Lua header version... 5.4
[   24s] checking if Lua header version matches 5.4... yes

but now I get this instead:

[    5s] checking for a Lua interpreter with version >= 5.1... none
[    5s] configure: error: cannot find suitable Lua interpreter
alerque commented 2 weeks ago

Try ./configure --without-luajit. The default is now to try to use LuaJIT and evidently that's what is not being found on your system. Also note that by default SILE tries to match versions with the Lua on your system (hence looking for it at build time) but it does not actually use your system's Lua at run time, it includes it's own interpreter and runs on that. If you want to skip even attempting to match your system's Lua you should be able to use --without-system-lua-sources in which case it will download and use vendored sources when building it's internal VM.

Note that LuaJIT makes SILE run over twice as fast on long documents and we highly recomend using it, but everything is still 100% PUC Lua compatible so you are free to use that too.

Pi-Cla commented 2 weeks ago

Thanks now it accepts lua54 again