[rabbitmq-discuss] Error compiling erlang client
Matthew Sackman
matthew at lshift.net
Fri Dec 4 17:09:42 GMT 2009
Hi Sylvian,
On Fri, Dec 04, 2009 at 05:31:54PM +0100, Sylvain Hellegouarch wrote:
> ERL_LIBS=deps:dist: erlc -I include -o ebin -Wall -v +debug_info
> src/amqp_channel.erl
> {error_logger,{{2009,12,4},{16,28,36}},"~s~n",["Error in process <0.11.0>
> with exit value:
> {{badmatch,error},[{code_server,get_user_lib_dirs_1,1},{code_server,get_user_lib_dirs_1,1},{code_server,init,3}]}\n"]}
>
> I'm using R12b3 so perhaps it doesn't support that version (Debian Lenny).
Diffing R12B3 with R13B01 on code_server reveals:
108,112c116,124
< {ok, Dirs} = erl_prim_loader:list_dir(Dir),
< {Paths,_Libs} = make_path(Dir, Dirs),
< %% Only add paths trailing with ./ebin.
< [P || P <- Paths, filename:basename(P) =:= "ebin"] ++
< get_user_lib_dirs_1(DirList);
---
> case erl_prim_loader:list_dir(Dir) of
> {ok, Dirs} ->
> {Paths,_Libs} = make_path(Dir, Dirs),
> %% Only add paths trailing with ./ebin.
> [P || P <- Paths, filename:basename(P) =:= "ebin"] ++
> get_user_lib_dirs_1(DirList);
> error ->
> get_user_lib_dirs_1(DirList)
> end;
I.e. it was changed so that if it encounters an error, it just skips
onto the next element in the list.
My suspicion is it's upset about the trailing colon on the ERL_LIBS.
This is really a bug in the makefile that I introduced about a week ago
and have just fixed - please pull and try again.
If it still doesn't work do let us know. However, R12B03 is rather
ancient and whilst rabbit itself should work fine, other things like the
erlang client and the plugins may not work with such an old version of
Erlang - if you run into trouble, we'd recommend upgrading to a more
recent version of Erlang.
Best wishes,
Matthew
More information about the rabbitmq-discuss
mailing list