Closed manotux closed 3 months ago
@manotux There might be several reasons:
PATH
environment variable (though not likely)terraform
executable is not executable. You can check its mode by ls -l /usr/bin/terraform
Thanks for the quick reply.
I've been able to use the terraform binary normally, so I don't think the $PATH
or binary exec permission are a problem here. Just in case:
$ ls -l /usr/bin/terraform
-rwxr-xr-x 1 root root 80900136 Nov 2 2023 /usr/bin/terraform
Somehow this code or hc-install is not being able to identity the binary in my system correctly. Any ideas in how to resolve this? I use Kali 2024.2 distro.
Thanks
@manotux The hc-install
has also a version constraint on the terraform
, which must be >=0.12
. Would you please check the terraform
version installed on your host?
@magodo I had already checked that, the terraform version installed is 1.6.3-dev, the one provided on Kali 2024.02.
$ terraform version
Terraform v1.6.3-dev
on linux_amd64
Your version of Terraform is out of date! The latest version
is 1.9.3. You can update by downloading from https://www.terraform.io/downloads.html
$ dpkg -l terraform
ii terraform 1.6.3-0kali1 amd64 tool for building, changing, and versioning infrastructure
With:
func main() {
c := version.MustConstraints(version.NewConstraint(">=0.12"))
v := version.Must(version.NewSemver("v1.6.3-dev"))
fmt.Println(c.Check(v))
}
It prints: false
With v1.6.3
, it prints true
.
See https://github.com/hashicorp/go-version/issues/36#issuecomment-405297459 for why. So we'd suggest you to install a released version of terraform.
Thanks for your time and verification. I'll consider installing the project binaries rather than using the ones provided by Kali. I've never thought it was a good idea to include strings like '-dev' on package versions; it's not the first time I've seen an issue like that when parsing.
The terraform cli tool is installed:
The linux amd64 binary was downloaded:
But for any command I get the following error stating the terraform binary is not found in $PATH
Any clues?