|
Fedora 42 w/nix, brand new install [henry@HenryLinuxLaptop]~% nix shell "github:nvim-neorocks/lux#lux-cli" "nixpkgs#lua5_4"
[henry@HenryLinuxLaptop]~% cd /tmp
[henry@HenryLinuxLaptop]/tmp% mkdir lux
[henry@HenryLinuxLaptop]/tmp% cd lux
[henry@HenryLinuxLaptop]/tmp/lux% lua -v
Lua 5.4.7 Copyright (C) 1994-2024 Lua.org, PUC-Rio
[henry@HenryLinuxLaptop]/tmp/lux% lx -v
error: a value is required for '--variables <variable>' but none was supplied
For more information, try '--help'.
[henry@HenryLinuxLaptop]/tmp/lux% lx --version
lux-cli 0.7.3
[henry@HenryLinuxLaptop]/tmp/lux% lx new .
⠋ Fetching remote repository metadata... Could not fetch remote repo metadata, defaulting to empty values.
✔ Fetched remote repository metadata.
> Package name: test
> Description: test
> License: GPLv3+
> Labels: test
> Maintainer: Cootshk
> What is the lowest Lua version you support? 5.4
All done!
[henry@HenryLinuxLaptop]/tmp/lux% lx add luasocket
⠒ 🦠 Cloning https://github.com/lunarmodules/luasocket.git cargo:warning=Compiler family detection failed due to error: ToolNotFound: failed to find tool "x86_64-linux-gnu-gcc": No such file or directory (os error 2)
cargo:warning=Compiler family detection failed due to error: ToolNotFound: failed to find tool "x86_64-linux-gnu-gcc": No such file or directory (os error 2)
error occurred in cc-rs: failed to find tool "x86_64-linux-gnu-gcc": No such file or directory (os error 2)
[henry@HenryLinuxLaptop]/tmp/lux% nix shell nixpkgs#gcc
zsh: no matches found: nixpkgs#gcc
[henry@HenryLinuxLaptop]/tmp/lux% nix shell "nixpkgs#gcc"
[henry@HenryLinuxLaptop]/tmp/lux% lx add luasocket
⠒ 🦠 Cloning https://github.com/lunarmodules/luasocket.git cargo:warning=Compiler family detection failed due to error: ToolNotFound: failed to find tool "x86_64-linux-gnu-gcc": No such file or directory (os error 2)
cargo:warning=Compiler family detection failed due to error: ToolNotFound: failed to find tool "x86_64-linux-gnu-gcc": No such file or directory (os error 2)
error occurred in cc-rs: failed to find tool "x86_64-linux-gnu-gcc": No such file or directory (os error 2)
[henry@HenryLinuxLaptop]/tmp/lux% gcc
gcc: fatal error: no input files
compilation terminated.
[henry@HenryLinuxLaptop]/tmp/lux%
|
Answered by
mrcjkb
Sep 26, 2025
Replies: 6 comments 1 reply
|
was trying to reproduce #789 on a new machine and came across this |
0 replies
|
This is an issue with the nix shell, not Lux. I've come across it too, but haven't figured out what's missing yet. |
0 replies
|
Just had the same issue: The library doesn't rely on gcc at all so I wonder why gcc seems to be invoked or searched for. Is it to find lua headers to try to compile a lua interpreter ? |
1 reply
|
I've run into the same issue again, trying to add |
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Transferred to #1093