# Dependencies ERR\_DLOPEN\_FAILED

**URL:** <https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913>\
**Category:** Developing Nodes\
**Created:** [16 November 2023 10:02 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913 "2023-11-16T10:02:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpous/32/50000_2.png) [@mpous](https://discourse.nodered.org/u/mpous)\
**Post date:** [16 November 2023 10:02 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/1 "2023-11-16T10:02:36Z")

</div>

Hello! I'm trying to use [this RPIPLC node](https://github.com/Industrial-Shields/node-red-contrib-rpiplc-node/tree/master) in Node-RED. It has a dependency with a C++ library

```auto
                "@industrialshields/rpiplc": "^2.0.0"

```

I'm running Node-RED on [balena.io](http://balena.io) and i'm deploying the C++ library on the Node-RED container. Then I install the RPIPLC node via Node-RED UI and when I start using it I get the error `ERR_DLOPEN_FAILED` only on the `rpiplc-config` node as it has this require

> <https://github.com/Industrial-Shields/node-red-contrib-rpiplc-node/blob/7beff8d79310a05090701b649b889adbce274233/nodes/rpiplc-config.js#L1>

Anyone has any idea?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [16 November 2023 10:34 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/2 "2023-11-16T10:34:06Z")

</div>

Can you share how you are adding the C++ library to the NR container?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpous/32/50000_2.png) [@mpous](https://discourse.nodered.org/u/mpous)\
**Post date:** [16 November 2023 10:41 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/3 "2023-11-16T10:41:34Z")

</div>

Hello @hardillb yes! i was pushing this to a github repo. Find it here!

> **[GitHub - mpous/industrialshields-ming](https://github.com/mpous/industrialshields-ming/tree/main)**
>
> main

Find it here [https://github.com/mpous/industrialshields-ming/blob/dd57043049e3e0f94dc23261ccdfb3cca3598b8f/node-red/Dockerfile.template#L15](https://github.com/mpous/industrialshields-ming/blob/dd57043049e3e0f94dc23261ccdfb3cca3598b8f/node-red/Dockerfile.template#L15)

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [16 November 2023 10:59 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/4 "2023-11-16T10:59:16Z")

</div>

First quick thought, do you need to move the `ldconfig` to the runtime container after the copy from the build container?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpous/32/50000_2.png) [@mpous](https://discourse.nodered.org/u/mpous)\
**Post date:** [16 November 2023 11:03 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/5 "2023-11-16T11:03:24Z")

</div>

I was thinking about this re-reading the Makefile... let me try @hardillb

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpous/32/50000_2.png) [@mpous](https://discourse.nodered.org/u/mpous)\
**Post date:** [16 November 2023 11:09 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/6 "2023-11-16T11:09:45Z")

</div>

That was it @hardillb thanks for your time! I needed 2 more eyes on this 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 November 2023 11:10 UTC](https://discourse.nodered.org/t/dependencies-err-dlopen-failed/82913/7 "2023-11-30T11:10:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
