erlzmq2 as rebar3 depency

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

erlzmq2 as rebar3 depency

Nyirő Gergő
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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: erlzmq2 as rebar3 depency

dmkolesnikov
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ő <[hidden email]> 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
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: erlzmq2 as rebar3 depency

Nyirő Gergő
Thank you, that solved my problem.

--
Gergő

On Mon, Apr 29, 2019 at 9:28 PM Dmitry Kolesnikov
<[hidden email]> wrote:

>
> 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ő <[hidden email]> 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
> > [hidden email]
> > http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions