[erlang-questions] erlzmq2 as rebar3 depency

Dmitry Kolesnikov dmkolesnikov@REDACTED
Mon Apr 29 21:28:26 CEST 2019


Hello,

Try to add to your rebar.config

```
{deps, [
   {erlzmq, {git, "https://github.com/zeromq/erlzmq2.git"}}
]}.

{plugins, [pc]}.

{overrides, [
   {override, erlzmq, [
      {plugins, [pc]},

      {provider_hooks, [
         {post, [
            {compile, {pc, compile}},
            {clean, {pc, clean}}
         ]}
      ]}
   ]}
]}.
```

It made a trick to me

```
1> erlzmq:context().
{ok,#Ref<0.2526647583.4010409989.113935>}
```

- Dmitry

> On 29 Apr 2019, at 22.04, Nyirő Gergő <gergo.nyiro@REDACTED> wrote:
> 
> Dear List,
> 
> I would like to setup an example project which uses zmq rep/req.
> I would prefer rebar3 as project management tool however I'm stucked
> with the following error in rebar3 shell:
> 
> 1> erlzmq:context().
> ** exception error: undefined function erlzmq_nif:context/1
> 
> I refers to erlzmq2 in the rebar.config like this:
> 
> {deps, [{erlzmq, {git, "https://github.com/zeromq/erlzmq2.git"}}]}.
> 
> When I use directly the erlzmq2 repository, then the `erlzmq:context()`
> call succeed.
> Should I add the port_specs, port_env and pre_hooks options of the
> https://github.com/zeromq/erlzmq2/blob/master/rebar.config directly
> into my rebar.config, too?
> 
> Any help or advice are welcome.
> 
> --
> Gergő
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list