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

Binary not executing properly on Mac OSX #35

Open
imdyangs opened this issue Dec 12, 2017 · 7 comments
Open

Binary not executing properly on Mac OSX #35

imdyangs opened this issue Dec 12, 2017 · 7 comments

Comments

@imdyangs
Copy link

Problem Description:

If you try to execute the binary on Mac OSX, it errors and spits back:

exec format error: ./daemon

Suggested Solution:

Build a binary on Mac that works and add a separate release.

@nynhex
Copy link

nynhex commented Sep 1, 2018

@imdyangs have you tried actually doing a Go build? I built on high sierra

@mihok
Copy link
Member

mihok commented Sep 2, 2018

Yeah good call @nynhex and @imdyangs, Mac OSX builds built on a linux box may not work as expected... Unfortunately I don't have a Mac OSX machine to leverage so someone else will have to make a proper build to include in the release for Mac users

@nynhex
Copy link

nynhex commented Sep 2, 2018

@mihok I have a High Sierra/Mojave Machine. I can do some proper builds and PR if you like. cc: @imdyangs

@mihok
Copy link
Member

mihok commented Sep 2, 2018

That would be very appreciated @nynhex !

@EyePulp
Copy link

EyePulp commented Jan 16, 2019

I'm new to Go, so this is a dumb one, but how do I build this on OSX? I have go 1.11x installed, but I'm not sure if I should be using the Makefile or not. The makefile seems to have some hardcoded paths and I don't know if I should be editing those or changing my environment to match them. Suggestions appreciated. =)

@mihok
Copy link
Member

mihok commented Jan 16, 2019

@EyePulp thanks for the interest in Minimal Chat!!

You should be able to use the Makefile provided that your go environment is set up properly. Go has a very opinionated folder structure it follows (see here) have you set your $GOPATH env var?

Otherwise, take a look at the compile: command on the Makefile, it will illustrate how you might build the daemon without the Makefile

@EyePulp
Copy link

EyePulp commented Jan 16, 2019

@mihok thanks much for the guidance. Learning about the folder layout now - sorry for not asking in a separate issue, I realize this is the wrong spot.

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

4 participants