Skip to content

./configure error when building with NixOS #15946

@iluuu1994

Description

@iluuu1994

Description

./configure emits an error on NixOS when executing /usr/bin/file conftest.o:

case `/usr/bin/file conftest.o` in

./configure: line 84230: /usr/bin/file: No such file or directory

The build succeeds regardless, so it's not a huge issue.

file does not live in /usr/bin on NixOS, as the binaries depend on the environment. Instead, they can be looked up with /usr/bin/env. /usr/bin/env file conftest.o works as expected, but it seems that passing further arguments to env is not portable. Maybe we can just depend on file being provided in the current $PATH?

@petk I already pinged on on Slack about this, but you might not be very active there. 🙂

PHP Version

PHP 8.2+

Operating System

NixOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions