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

ERROR: Cannot execute binary file #63

Open
DavidGO464 opened this issue Aug 5, 2023 · 3 comments
Open

ERROR: Cannot execute binary file #63

DavidGO464 opened this issue Aug 5, 2023 · 3 comments

Comments

@DavidGO464
Copy link

DavidGO464 commented Aug 5, 2023

Hello !!!

I wonder if minimac4 can be used in Mac computers Terminal or it is restricted to Linux OS

I am using Apple silicon M2 Macbook pro

Screenshot 2023-08-05 at 4 34 26 PM

@jonathonl
Copy link
Contributor

Yes, it can be used on Mac OS if compiled on Mac OS. Where did you get the minimac4 binary from?

@DavidGO464
Copy link
Author

I first trid to used the following:

Screenshot 2023-08-07 at 2 39 32 PM

then It says that the inataller was not in the downloaded documents...
thus I tried the github version:

Screenshot 2023-08-07 at 2 41 04 PM Screenshot 2023-08-07 at 2 41 16 PM

But still getting "cannot execute binary file"

how did you installed it?
(I am using macbook M2 ARM)

@jonathonl
Copy link
Contributor

The prebuilt executable on the Github releases section is a Linux-only executable. You have to build from source (https://github.com/statgen/Minimac4#building-from-source) on MacOS. Unfortunately, recent versions of MacOS have broken compilation of some the dependencies, so it might be difficult for users not experienced with compiling c++ code. MacOS is not generally supported, but certainly possible if you know what you are doing.

For MacOS, it will look something like this:

# cget can be installed with pip3
cget ignore --prefix ./minimac4-install xz   # XZ is broken on recent versions of MacOS.
cget install --prefix ./minimac4-install statgen/Minimac4
./minimac4-install/bin/minimac4 --help

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