Hi akonsu -

The following shell script will use the "erl" command to find your
ERLANG_ROOT and then will search it for the ei.h file.

-----
#!/usr/bin/env bash

if ! hash erl 2>/dev/null
then
  echo "Could not find 'erl' command!" 1>&2
  exit 1
fi

ERLANG_ROOT=$(erl -eval 'io:format("~s", [code:root_dir()])' -s init
stop -noshell)

echo "ERLANG_ROOT: $ERLANG_ROOT"

find "$ERLANG_ROOT" -type f -iname ei.h
-----

Typical output will look like this:

(R15B01-riak)vagrant@UBUNTU-12:~$ ./find-erl-header.sh
ERLANG_ROOT: /home/vagrant/.kerl/installs/R15B01-riak
/home/vagrant/.kerl/installs/R15B01-riak/lib/erl_interface-3.7.7/include/ei.h

On Thu, Aug 29, 2013 at 2:13 PM, akonsu <[email protected]> wrote:
> Hello,
>
> I asked the same question on stackoverflow, but I am not sure if SO is a
> good resource for this kind of help. Please forgive me for cross posting. I
> am just starting...
>
> I am trying to build riak from source on Lubuntu 13.04 using these commands
>
>     curl -O
> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.1/riak-1.4.1.tar.gz
>     tar zxvf riak-1.4.1.tar.gz
>     cd riak-1.4.1
>     make rel
>
> I am getting this error:
>
>     /home/akonsu/projects/riak/deps/syslog/c_src/syslog_drv.c:29:16: fatal
> error: ei.h: No such file or directory
>     compilation terminated.
>     ERROR: compile failed while processing
> /home/akonsu/projects/riak/deps/syslog: rebar_abort
>     make: *** [compile] Error 1
>
> I am getting the same error if I build from github repository.
>
> Has anyone seen this? Do I need to install a dependency?

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to