Hi Robert,
Unfortunately, you cannot append paths to ERL_CFLAGS (or DRV_CFLAGS) from
the top level application (riak in this case). There is a mechanism for
specifying environment variables in an individual application's rebar.config
file (http://hg.basho.com/rebar/src/tip/src/rebar_port_compiler.
Hi Robert,
My guess is that the build process is still using your home directory
version of Erlang which may be broken. Can you type the following?
which erl
The home directory version has the erl_driver.h file in a location I am not
familiar with and may not be in the Erlang include paths; altho
Hi Robert,
What platform are you building on? (OS X, Ubuntu, Redhat)
How did you install Erlang?
Can you check your Erlang install for the "erl_driver.h" file?
To find the Erlang root directory use code:root_dir/0:
$ erl
Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads
-- The error I get is:
Compiling c_src/driver_comm.c
c_src/driver_comm.c:21:24: error: erl_driver.h: No such file or directory
c_src/driver_comm.c: In function ‘read_command’:
c_src/driver_comm.c:36: warning: implicit declaration of function ‘driver_alloc’
ERROR: $CC -c $CFLAGS $DRV_CFLAGS c_src/