Could NOT find Lua (missing: LUA_LIBRARIES)

Đang mở
#225 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cmake, docker, lua
Lĩnh vực
build-system

Hướng nghiên cứu

Tái hiện lỗi bằng Alpine Dockerfile và lệnh cài đặt LuaRocks được cung cấp. Trước tiên, hãy kiểm tra cách CMake phát hiện các thư viện Lua trong bản build này; công việc được xem là hoàn tất khi quá trình cài đặt yuescript bằng LuaRocks hoàn tất thành công trong container.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Lua
Star
620
Fork
45
Merge trung bình
9 giờ 5 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IppClub/YueScript

Tất cả issue của IppClub/YueScript

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.