basho/rebar — pull request #149 by choptastic (2011-10-21 23:27:17+00:00)
Title: erl_interface not found solutions

Hey Guys,

I've encountered and issue with reltool which results in erl_interface not being copied with "rebar generate". This becomes a problem with the Nitrogen Web Framework (or others, I'm sure), where in the target installation, I wish to include bcrypt, erls3, and others which require compiling from C.

However, because erl_interface was not being copied automatically to the target lib dir, it proved a problem for dependencies.

These two commits help alleviate that problem with a generated installation by extending the reltool.config overlay functionality to include the ability to copy additional libs from the source erlang installation.

The example, which I would include into Nitrogen would be to add to the default reltool.config the following:

{copy_absolute, "{{core_lib_dir}}/erl_interface-*","lib"}

Which will essentially copy the erl_interface dir from "/usr/local/lib/erlang/lib/erl_interface-X.Y.Z" into the target lib dir.

I realize that this might not be the ideal solution, and if so, please let me know so I can adjust this accordingly. As it is, however, this solves my immediate problems.

Thanks :)