I am developing towards Azure and I want to use the Azure Bicep configuration language to develop some functionality. It seems that the az-cli utility provided with the azure-cli package have downloaded a binary ~/.azure/bin/bicep but it does not run for me.
bash: ./.azure/bin/bicep: cannot execute: required file not found
I suspect it is compiled towards a FHS directory setup. I have never had to handle this situation in NixOS so far so unsure what is the simplest way for me to proceed.
Can I use the patchelf utility to fix it? How would I do that? I would like to use the least-resistant way to proceed and since this binary seems downloaded directly from Azure and not being part of the package itself, I think I need to modify the binary using some command line trick.
This is some output when I run the file command on it
$ file ./.azure/bin/bicep
./.azure/bin/bicep: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=ac5a32a8a581bc6a2fd055a7d6f0f165a28f8b0b, not stripped, too many notes (256)