[erlang-questions] Gproc starting issue

Milind Parikh milindparikh@REDACTED
Sat May 19 09:39:32 CEST 2012


Ulf

Thanks ... The issue was my version of Erlang (R13) instead of R15B (which
is required). Had to recompile from source on Ubuntu 10.04 LTS... but it's
all working now.


Regards
Milind


On Fri, May 18, 2012 at 2:47 PM, Ulf Wiger <ulf@REDACTED> wrote:

>
> What were commands (1) and (2)?
>
> uwair:0518 uwiger$ git clone git://github.com/esl/gproc.git
> Cloning into gproc...
> remote: Counting objects: 1042, done.
> remote: Compressing objects: 100% (293/293), done.
> remote: Total 1042 (delta 754), reused 995 (delta 715)
> Receiving objects: 100% (1042/1042), 1.03 MiB | 324 KiB/s, done.
> Resolving deltas: 100% (754/754), done.
> uwair:0518 uwiger$ cd gproc
> uwair:gproc uwiger$ rebar get-deps compile
> ==> gproc (get-deps)
>> ==> gproc (compile)
> Compiled src/gproc_sup.erl
> Compiled src/gproc_ps.erl
> Compiled src/gproc_init.erl
> Compiled src/gproc_monitor.erl
> Compiled src/gproc_info.erl
> Compiled src/gproc_app.erl
> Compiled src/gproc_lib.erl
> Compiled src/gproc_dist.erl
> Compiled src/gproc.erl
> uwair:gproc uwiger$ unset ERL_LIBS
> uwair:gproc uwiger$ erl -pa ebin
> Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0]
> [hipe] [kernel-poll:false]
>
> Eshell V5.9  (abort with ^G)
> 1> application:start(gproc).
> ok
> 2> gproc:reg({n,l,foo}).
> true
> 3> gproc:where({n,l,foo}).
> <0.31.0>
>
> A possibility for the badarg exception would be that the table already
> exists.
>
> What version of Erlang/OTP are you using?
> I believe the read_concurrency & write_concurrency options were added to
> ETS in R14B.
>
> BR,
> Ulf W
>
> On 18 May 2012, at 23:38, Milind Parikh wrote:
>
> application:start(sasl).
> application:start(gproc) fails with log attached below.
>
> I have
>
> 0. Downloaded the latest copy of gproc (from github)
> 1. Downloaded the latest copy of rebar (from github)
> 2. copied the latest rebar into gproc
> 3. ./rebar get-deps in gproc
> 4. ./rebar compile in gproc.
>
> and am trying to follow
> http://rustyklophaus.com/articles/20090916-GProcErlangGlobalProcessRegistry.html
>
> I must be missing something trivial. Any help would be appreciated.
>
> Thanks
> Milind
>
>
>
> +++++++++++++++  LOG ++++++++++++++++++++++++++++
>
> (a@REDACTED)3> application:start(gproc).
>
> =SUPERVISOR REPORT==== 18-May-2012::14:12:25 ===
>      Supervisor: {local,gproc_sup}
>      Context:    start_error
>      Reason:     {'EXIT',
>                      {badarg,
>                          [{ets,new,
>                               [gproc,
>                                [ordered_set,public,named_table,
>                                 {write_concurrency,true},
>                                 {read_concurrency,true}]]},
>                           {gproc,create_tabs,0},
>                           {gproc,start_link,0},
>                           {supervisor,do_start_child,2},
>                           {supervisor,start_children,3},
>                           {supervisor,init_children,2},
>                           {gen_server,init_it,6},
>                           {proc_lib,init_p_do_apply,3}]}}
>      Offender:   [{pid,undefined},
>                   {name,gproc},
>                   {mfa,{gproc,start_link,[]}},
>                   {restart_type,permanent},
>                   {shutdown,2000},
>                   {child_type,worker}]
>
>
> =INFO REPORT==== 18-May-2012::14:12:25 ===
>     application: gproc
>     exited: {shutdown,{gproc_app,start,[normal,[]]}}
>     type: temporary
> {error,{shutdown,{gproc_app,start,[normal,[]]}}}
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
> http://feuerlabs.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120519/caa58bd2/attachment.htm>


More information about the erlang-questions mailing list