terraform install on MAC Mojvae not working - macos

I tried to install terraform running following commands from my terminal on MAC with Mojave OS
wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip
unzip -o terraform_btd/terraform_0.11.11_linux_amd64.zip
Post unzip, I see the terraform binary executable generated.Now, when from the same directory terraform init command is invoked, it throws error:
-bash: terraform: command not found
I understand some suggestions would be to set PATH variable, but invoking terraform init from the same path where the terraform executable is present should run by default.
This used to work on my previous Mac OS version not sure what has changed here. Is it because of Mac OS version or something else?

I found the issue, it is just wrong image I was trying to download, instead of mac zip I was trying to download linux one.
Thanks for all the inputs guys

Related

Castlia 3.3 + omnetpp 4.6 on windows 7- permission denied

I have compiled both castalia and omnet and everything was right but
when running simulation using command line I got this error:
/c/Castalia/Simulations/radioTest$ ../../bin/Castalia
bash: ../../bin/Castalia: /usr/bin/python: bad interpreter: Permission denied
I installed python 2.6 in usr/bin path. but still has that error.
I tried #! usr/bin/env, but again I got same error.
how i can solve this problem?
In general Castalia is not supported under Windows, and any success people have running it is based on homebrews (custom solutions based on their configuration). The more reliable solution would be to run Ubuntu (perhaps on a virtual machine in Windows). Mac OS X works fine too.
Seeing your bash tag, I am not sure how you got to run bash on Windows (Cygwin?), but if you have a bash shell you can run which python to see where python resides on your system. If it's something other than /usr/bin/python then you can try changing the shebang line to the correct location. Or you can try #!/usr/bin/env python (notice the python executable after the path).
Also make sure you have the permission to run Python as the user you are logged in! How would you run any python script from command line?
Finally it is recommended that you have Python 2.7 installed, but it may run fine with 2.6 too.

Error starting Cassandra on Mac, installed using brew

I am on OS-X El Capitan 10.11.3.
I installed Cassndra using brew and the current version is '2.2.2'
When i try to start cassandra, I get following error
$/usr/local/Cellar/cassandra/2.2.2/bin/cassandra -f
objc[46306]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Error opening zip file or JAR manifest missing : /usr/local/Cellar/cassandra/2.2.2/libexec/jamm-0.2.5.jar
Error occurred during initialization of VM
agent library failed to init: instrument
Hey this seems to be a similar problem stated in the mentioned Github post.
https://github.com/Homebrew/legacy-homebrew/issues/32488
Gist from above post:
rm -rf /usr/local/etc/cassandra/
brew reinstall cassandra
But as suggested, tarball installation is simpler.
I never use installer (on Mac or Linux), it's so easy to download the tarball and unzip it to some folder (/opt/apps/cassandra for example). You'll have all your config files, binaries at the same place.
Also, do not forget to set environment variable:
export CASSANDRA_HOME=<your_Cassandra_install_folder>
export PATH=$PATH:$CASSANDRA_HOME/bin
I recommend using this method if you have trouble running Cassandra on Mac

Github not installed in terminal os

I downloaded and installed GitHub (latest version) for OS X, installed command line utility under Github in the application and am coming up with an error trying to create my first readme file in a repo entitled "basic-twitbstrap".
Macbooks-MacBook-Pro-2:basic-twitbstrap macbook$ git init
-bash: git: command not found
If they're not installed in standard location, command-line programs need some environment modifications to be called, which consists in adding their directory to the PATH environment variable.
So in your case you need to add /usr/local/github to your path, see how.
I installed the latest version of Ruby Version Manager, then entered 'git' into the Terminal. It came up with a list of usage and common commands.
Now it runs.
Macbooks-MacBook-Pro-2:~ macbook$ git --version
git version 1.7.4.4

Using Google App Engine SDK with Python 2.7 on Mac OS X 10.6

I need to run Python 2.7 on my Mac Snow Leopard, which has Python 2.6 installed. According to this answer, running the Python 2.7 mpkg installer from Python.org should get me there.
The reason I need to do this is that I'm trying to run the Google App Engine SDK for the Python 2.7 runtime.
After installing Python 2.7, I'm still getting the following warning in my GAE server log:
Warning: You are using a Python runtime (2.6) that is older than the
production runtime environment (2.7).
What else must I do to get the GAE SDK to recognize the new Python version?
EDIT 2:
Running:
$ sudo find / -name python2.7
I get:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/usr/local/bin/python2.7
According to the answers I went into GoogleAppLauncher -> Preferences and set the Python path to each of these, and each time I get the exact same error.
Running dev_appserver with the following flags:
--admin_console_server= --port=8081 Python command: /Library/Frameworks/Python.framework/Versions/2.7 2011-11-14
16:12:24.726 GoogleAppEngineLauncher[57590:203] *** NSTask: Task
create for path '/Library/Frameworks/Python.framework/Versions/2.7'
failed: 22, "Invalid argument". Terminating temporary process.
Another Wierd thing is, it always tries to resolve to the same path, no matter which of those I plug in; It always reverts to /Library/Frameworks/Python.framework/Versions/2.7
EDIT 3:
OK, after entering the paths into the prefs field repeatedly, I finally just cleared it out, and somehow it's now pointing to the right place:
Running dev_appserver with the following flags:
--admin_console_server= --port=8081
Python command: /usr/local/bin/python2.7
Open the GAE launcher preferences and set the Python Path option to the fresh installed Python 2.7, in your case /usr/local/bin/python2.7 .
Came across this question looking for a solution to the same dilemma regarding Mac, GAE and Python.
One comment I would like to make regarding setting the Python path using GAE Preferences. I notice you mention that you had a problem setting the Python path using the Preferences. I discovered that after editing the path, you have to press Enter. Otherwise, the path doesn't get updated. This might explain the weirdness you were mentioning when trying to edit the path field.
I installed python 2.7.x from macports. I see this:
$ python --version
Python 2.7.2
$ which python
/opt/local/bin/python
So, in the preferences for GoogleAppEngineLauncher.app I set the python path to:
/opt/local/bin/python
In the console log, I see this:
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8081
Python command: /opt/local/bin/python
I still see some errors about libraries, in particular Can't open zipfile...setuptools but simple stuff at least seems to work.
Good luck!
I am not sure if it helps, but instead of using the binaries from Python, I used MacPorts http://www.macports.org/ and installed the Python 2.7 runtime:
sudo port install python27

Problem installing leiningen on mac os

I am trying to install Leiningen on mac os 10.6.4, following the instructions here - http://alexott.net/en/clojure/ClojureLein.html. The package is being downloaded, but lein command is not found. What could be the problem?
You need to copy the executable in a directory which is in your path (/usr/local/bin/), for instance.
Type echo $PATH to see the different directories.
You'll also need to make the file executable:
chmod 555 /usr/local/bin/lein

Resources