Terraform:MacOS:zsh: exec format error: terraform [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I first installed brew install terraform and it worked fine
But later I tried to install a specific version as below
wget -P terraform_bin/ https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip
unzip -o terraform_bin/terraform_0.12.0_linux_amd64.zip -d terraform_bin/
mv terraform_bin/terraform /usr/local/bin
rm -rf terraform_bin
terraform version
But now it got messed up with installation in MacOS ,When tried running version its failing

You're trying to use a Linux binary on a Mac, meaning you downloaded the wrong file.
If you look at your wget
wget -P terraform_bin/ https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip
you will notice that you fetched the Linux version even though you are running on a Mac.
If you go to https://releases.hashicorp.com/terraform/0.12.0 you will see all the files that are available for that version. The one you want is called terraform_0.12.0_darwin_amd64.zip. Bear in mind that this particular file is for the Intel architecture, and it will run on current Apple Silicon Macs, but Hashicorp will likely offer an Apple Silicon or Universal version in which case you will want that.

Related

Why can't I use apt-get on Mac even though wget is installed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I use Mac Big Sur 11.5.1. I installed wget using brew, but the terminal said apt-get: command not found when I put sudo apt-get install ros-noetic-imu-tools. Although I tried brew install wget again, it said wget 1.21.1 is already installed and up-to-date. So wget is installed for sure. What is a possible cause?
macOS doesn't use apt as its package manager. Homebrew is the most popular package manager for macOS. Additionally, wget has no relation to the package manager, apt. See the awesome answer here for more information.
I would try this search for getting it ROS working with Mac. This SO question might be of relevance too.

Where is nix.conf located when installed on OSX? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I installed nix on osx using this command:
$ sh <(curl https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
Following instructions here:
https://hydra.nixos.org/build/119559243/download/1/manual/#sect-macos-installation
I'm trying to build a project that uses the nix shell and it's telling me to edit something in a file called nix.conf. However the project documentation was setup using a linux or nixos distribution so not sure where this file is located on osx. (The docs say to look in /etc/nix/nix.conf, but this file doesn't exist in osx)
/etc/nix/nix.conf may not exist, you need to create it.

Error while installing Atom in Kali Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I was trying to install Atom in Kali Linux Live.
And after command
dpkg -i ~/Downloads/atom-amd64.deb
I get error
dpkg: error: cannot access archive '/root/Downloads/atom-amd64.deb': No such file or directory
I have tried as both root and non-root users
I am using Kali Linux Live with Persistence (Bootable USB)
Same kind of thing happens with Visual Studio code too.
You may have to install kali Linux on the device as Kali Linux Live provides the tools for hacking. If you want to install software, then you have to install Kali or manually install it without a package.
Check out this Reddit post about the issue: https://www.reddit.com/r/linuxquestions/comments/4zgrzs/is_it_possible_to_install_software_on_kali_linux/

How to install atom on Bash on Ubuntu on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I think it is a hard thing to do as nobody was able to help me, if anyone know how to install atom on Bash on Ubuntu on Windows, it would be greatly appreciated.
You can install it as you would on any Ubuntu - from its README.md:
Debian Linux (Ubuntu)
Atom is only available for 64-bit Linux systems.
Download atom-amd64.deb from the Atom releases page.
Run sudo dpkg --install atom-amd64.deb on the downloaded package.
Launch Atom using the installed atom command.
The thing is - it won't run. Bash on Ubuntu on Windows is highly experimental yet, so graphic applications won't work. I've tried on a VM, and I get a libXss.so not found error. You may be able to fix that issue by setting the LD_LIBRARY_PATH environment variable, probably, but you'll hit a bug in the implementation sooner than later.
Anyway, atom runs natively on Windows, so I'm not sure why would you want to install it there.

Yosemite psql only [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have done a fresh install of Yosemite. I have read that PostgreSQL is the default database in MacOS now. The problem is that I can't find psql in this new installation. It looks like either I missed to check to install database server or it is not available in Yosemite by default.
I have tried to find the file using: find . | grep psql
The PostgreSQL server is running on remote machine, so, basically I only need command line utility to connect to the remote server
My question is: how can I install just psql (command line utils) without installing the whole server?
Thanks
OS X built-in PostgreSQL is for system data, not for user. Please use Homebrew, Macports, Postgres.app or the EDB installer instead.
It's data directory is for example deleted on upgrade.

Resources