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

Unable to rebar compile on Mac OS - Erlang OTP R17 #38

Open
mtourne opened this issue Dec 9, 2014 · 0 comments
Open

Unable to rebar compile on Mac OS - Erlang OTP R17 #38

mtourne opened this issue Dec 9, 2014 · 0 comments

Comments

@mtourne
Copy link

mtourne commented Dec 9, 2014

The command rebar -v compile will fail this way

INFO:  sh info:
    cwd: "/Users/mtourne/dev/yawndb/deps/ecirca"
    cmd: $CC $ERL_CFLAGS -P -D BITNESS=12 -E priv/ecirca.c  > c_src/ecirca_small.c
priv/ecirca.c:4:10: fatal error: 'erl_nif.h' file not found
#include "erl_nif.h"

Running rebar -vv compile I can see that ERL_FLAGS is set this way :

{"ERL_CFLAGS",
                   " -I\"/usr/local/Cellar/erlang/17.3.4/lib/erlang/lib/erl_interface-3.7.19/include\" -I\"/usr/local/Cellar/erlang/17.3.4/lib/erlang/erts-6.2.1/include\"  "},

Where it gets bizarre, is I can get passed this error if I set ERL_FLAGS manually to this :

ERL_CFLAGS=-I/usr/local/Cellar/erlang/17.3.4/lib/erlang/erts-6.2.1/include rebar -v compile

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

1 participant