# Deploying OpenCV on RedHat distribution

**URL:** https://forum.opencv.org/t/deploying-opencv-on-redhat-distribution/4951
**Category:** Uncategorized
**Tags:** emgu, csharp
**Created:** [August 27, 2021, 3:55pm UTC](https://forum.opencv.org/t/deploying-opencv-on-redhat-distribution/4951 "2021-08-27T15:55:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![slashmeister](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@slashmeister](https://forum.opencv.org/u/slashmeister)
#### Post date: [August 27, 2021, 3:55pm UTC](https://forum.opencv.org/t/deploying-opencv-on-redhat-distribution/4951/1 "2021-08-27T15:55:33Z")

</div>

Is there a list of all the dependencies needed to deploy OpenCV on RedHat?

I am using the following docker image ([registry.access.redhat.com/ubi8/dotnet-50-runtime](http://registry.access.redhat.com/ubi8/dotnet-50-runtime)).

At runtime, I get the following error:

> —\> System.TypeInitializationException: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception.  
> —\> System.DllNotFoundException: Unable to load shared library ‘cvextern’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD\_DEBUG environment variable: libcvextern: cannot open shared object file: No such file or directory  
> at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)  
> at Emgu.CV.CvInvoke…cctor()  
> — End of inner exception stack trace —

This works fine when deploying on a Ubuntu image so I assume it’s a matter of dependencies.

---

<div class="post-metadata">

### Author: ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)
#### Post date: [August 27, 2021, 4:22pm UTC](https://forum.opencv.org/t/deploying-opencv-on-redhat-distribution/4951/2 "2021-08-27T16:22:45Z")

</div>

- invalid link above, please check
- Emgu is a 3d party wrapper around opencv (think: cuckoo’s egg),  
mostly built around opencv’s deprecated and no more maintainable 1.0 C-api.  
DONT TRY WITH THAT!  
(if you MUST use c#, at least go with OpenCVSharp wappers, still, NO support from opencv at all !)
- there is no `cvextern` lib here, it must be an EmGu artefact  
(and again, we cannot help)

---

<div class="post-metadata">

### Author: ![Radu\_Iviniciu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/radu_iviniciu/32/5944_2.png) [@Radu\_Iviniciu](https://forum.opencv.org/u/Radu_Iviniciu)
#### Post date: [August 29, 2022, 11:25am UTC](https://forum.opencv.org/t/deploying-opencv-on-redhat-distribution/4951/3 "2022-08-29T11:25:51Z")

</div>

@slashmeister did you ever get this working on redhat ?
