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

installation error #1403

Closed
saucecon-aanand opened this issue Sep 22, 2022 · 2 comments
Closed

installation error #1403

saucecon-aanand opened this issue Sep 22, 2022 · 2 comments

Comments

@saucecon-aanand
Copy link

  • terrascan version:
    latest (v1.15.2)

  • Operating System:
    Ubuntu 22.04.1 LTS

Description

Terrascan installation unsuccessful

Describe what you were trying to get done.
I am trying to install terrascan on Ubuntu and getting this error with installation

What I Did

I followed Step1: install as native executable from this link https://github.com/tenable/terrascan#install-as-a-native-executable

Paste the command(s) you ran and the output.
anshul@aanandpc2:/mnt/c/dev/aws$  curl -L "$(curl -s https://api.github.com/repos/tenable/terrascan/releases/latest | grep -o -E "https://.+?_Darwin_x86_64.tar.gz")" > terrascan.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 21.0M  100 21.0M    0     0  7327k      0  0:00:02  0:00:02 --:--:-- 9412k
anshul@aanandpc2:/mnt/c/dev/aws$ tar -xf terrascan.tar.gz terrascan && rm terrascan.tar.gz
anshul@aanandpc2:/mnt/c/dev/aws$ sudo install terrascan /usr/local/bin
[sudo] password for anshul:
anshul@aanandpc2:/mnt/c/dev/aws$ terrascan
-bash: /usr/local/bin/terrascan: cannot execute binary file: Exec format error
anshul@aanandpc2:/mnt/c/dev/aws$
@saucecon-aanand
Copy link
Author

my bad..I was using Darwin_x86_64 instead of Linux

@wideawakening
Copy link

same thing, thx for pointing out the installation method is for darwin :)

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

2 participants