-1

I have a file which is an executable sitting on the server. When I just use scp to copy it down to my desktop which is a mac i get bash - ./fig up cannot execute binary file.

I believe this is because it came from linux, and now I am trying to run it on a mac terminal. Any idea how to resolve this problem ?

2

If fig is a binary, as opposed to a script, then it will not run on a different operating system. Run file fig to find out (if the output is something similar to ELF 64-bit LSB executable, then it's a binary, if it looks more like Perl script, ASCII text executable, then it's a script and has at least a fighting chance of running on a different platform). In this case, you will have to find a version of this program that was built for the proper platform.

  • Yes, this turns out to be the problem. Thank you I'll accept the answer after the time limit is up. :) – Steven Mar 20 '15 at 21:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.