Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Nix shell] failed to find tool "x86_64-linux-gnu-gcc" when compiling rocks #1093

@mrcjkb

Description

@mrcjkb

Discussed in #807

Originally posted by cootshk June 18, 2025
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% 

```</div>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions