Could NOT find Lua (missing: LUA_LIBRARIES)

Aperta
#225 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cmake, docker, lua
Ambito
build-system

Direzione di ricerca

Riproduci il problema usando il Dockerfile Alpine e il comando di installazione di LuaRocks mostrato. Inizia esaminando come CMake individua le librerie Lua in questa build; il lavoro è completato quando l’installazione di yuescript tramite LuaRocks termina correttamente nel container.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I've tried a dozen different things to get yuescript installed in an alpine docker container (devcontainer), and I've managed to get past every hurdle except the title. What precisely am I doing wrong?
current dockerfile for the container below:

FROM alpine:3.22
RUN apk add lua5.4-dev lua5.4-libs luarocks gcompat gcc g++ libc-dev git cmake make
ENV CXX=gcc
RUN luarocks-5.4 install yuescript

cmake output below

1.131 Installing https://luarocks.org/yuescript-0.30.3-1.src.rock
3.204 -- The CXX compiler identification is GNU 14.2.0
3.215 -- Detecting CXX compiler ABI info
3.301 -- Detecting CXX compiler ABI info - done
3.319 -- Check for working CXX compiler: /usr/bin/gcc - skipped
3.319 -- Detecting CXX compile features
3.320 -- Detecting CXX compile features - done
3.341 -- Could NOT find Lua (missing: LUA_LIBRARIES) (found version "5.4.7")
3.341 -- Lua: /usr/bin/lua5.4
3.341 -- Lua include: /usr/include/lua5.4
3.341 -- Lua library: LUA_LIBRARIES-NOTFOUND
3.392 -- The C compiler identification is GNU 14.2.0
3.400 -- Detecting C compiler ABI info
3.478 -- Detecting C compiler ABI info - done
3.493 -- Check for working C compiler: /usr/bin/cc - skipped
3.493 -- Detecting C compile features
3.494 -- Detecting C compile features - done
3.503 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
3.584 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
3.588 -- Found Threads: TRUE
3.588 -- Configuring done (0.4s)
3.589 CMake Error: The following variables are used in this project, but they ar
e set to NOTFOUND.
3.589 Please set them or make sure they are set and tested correctly in the CMak
e files:
3.589 LUA_LIBRARIES
3.589     linked by target "yue" in directory /tmp/luarocks_yuescript-0.30.3-1-7
156543/yuescript
3.589     linked by target "libyue" in directory /tmp/luarocks_yuescript-0.30.3-
1-7156543/yuescript
3.589
3.603 -- Generating done (0.0s)
3.603 CMake Generate step failed.  Build files cannot be regenerated correctly.
3.611
3.611 Error: Build error: Failed cmake.
3.639
3.639 yuescript 0.30.3-1 depends on lua >= 5.1 (5.4-1 provided by VM: success)

lua libraries are present in the container at /usr/lib/lua5.4/liblua-5.4.so.0, /usr/lib/lua5.4/liblua-5.4.so.0.0.0, /usr/lib/lua5.4/liblua.a, and /usr/lib/lua5.4/liblua.so, but even manually setting the LUA_LIBRARIES environment variable to either that directory, or any of the .so files inside, does nothing.

Lingua principale
Lua
Stelle
620
Fork
45
Merge medio
9h 5m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IppClub/YueScript

Tutte le issue di IppClub/YueScript

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.