-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add macOS support #5
Comments
Hi Erwin, Please elaborate on your issue, namely: Operating system, Erlang/otp version, and did you install the required prerequisites as per the readme.md? Also did you encounter any errors during compilation? (Note that rebar3 does this for you). Please let me know and thanks ks for using Erlsass! Cheers, |
Hey Irsan, Operating system: MacOS Mojave 10.14 This is the output the compilation gives me:
I shall be obliged! |
Hi Erwin, Unfortunately I have never tested the lib on Mac OS, and I don't own a Mac so I can't really do it myself. It seems that on Mac Os the C compiler needs different flags, based on your output dump I assume the compiler can't find/load the erlang nif header. Are you able to clone the project and make some changes yourself ? Have a look at: Also a google search on Erlang NIF Mac Osx or similar might help you. The following file is where the you want to look: At the top of that file you find a block 'Define os' you probably want to add some condition there for Darwin/MacOs. Then under OS specific you want to add a clause for your OS and copy paste unix and then adjust the flags. You might also want to have a look at: Let me know, I'm pretty sure you should be able to get it to work. Kr, Irsan |
By the way is your target environment Mac Os as well? Just out of interest... |
Thanks for the info! I shall have a look. My target environment is Ubuntu 14 |
Hi Erwin, Good luck, let me know if you need any help. And when you get it to work I would be happy to add your changes. PS. As you can see I have changed this title of this issue hope you agree. Kr, Irsan |
I'm getting this error:
The on_load function for module erlsass returned:
{error,{load_failed,"Failed to load NIF library: 'dlopen(/.../deps/erlsass/priv/erlsass_nif.so, 2): image not found'"}}
Do I have to compile anything else, since erlsass_nif.so is not existent.
Cheers,
Erwin
The text was updated successfully, but these errors were encountered: