Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rex can't find perl interpretter without which command #1641

Open
djzort opened this issue Feb 27, 2025 · 1 comment
Open

Rex can't find perl interpretter without which command #1641

djzort opened this issue Feb 27, 2025 · 1 comment

Comments

@djzort
Copy link

djzort commented Feb 27, 2025

With a very minimal Rocky Linux install (in this case, from the Proxmox template) there is no "which" command installed.

[root@xcat ~]# cat /etc/redhat-release 
Rocky Linux release 9.5 (Blue Onyx)
[root@xcat ~]# which perl
-bash: which: command not found
[root@xcat ~]# perl -v

This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-thread-multi
(with 53 registered patches, see perl -V for more detail)

This results in Rex being unable to find perl despite it being installed

[2025-02-27 15:26:45] WARN - There is no perl interpreter found on this system. Some commands may not work. Sudo won't work.

Once which is installed then everything is fine

@djzort
Copy link
Author

djzort commented Feb 27, 2025

The command built in should be implemented by POSIX compliant shells, so command -v should work and be extremely universal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant