Sorry, I'm somewhat new to this...I'm getting this error when trying to run a script. Other posts mentioning this error haven't been helpful. Here are some outputs that I've seen other posts mention:
uname -a
Linux aaron-850-065se 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
file filename
Mach-O 64-bit x86_64 executable
Any ideas how I can get my file run?
file filename
. What is the content of the script? (Paste it, or at least the first few lines of it, into the post using the edit link. What are the permissions (ls -l filename
). And last but not least, what is the precise error which you get?#!/bin/bash
or similar, so the OS knows it's a script? If not it may be trying to run it as a binary which will fail if it's not actually an executable-format binary.source
or.
command, but this isn't a work-round. Thefile
command output is important: it will tell you the type of the file (if you can read it), but not whether you can execute it. The#!
command processor definition is always helpful, but not essential.Mach-o executable
is the output for a binary executable file intended for Mac OS X.