DllNotFoundException libmonoposix

Hi everyone, I’m trying to port my project from Unity 2017.1.0 to Unity 2018.1.5 for Linux (working on Fedora 27). The project is working perfectly fine in the old version, however in this one, without changing anything, I’m encountering this issue

System.DllNotFoundException:
…/Editor/Data/Managed/…/lib/libMonoPosixHelper.so
at (wrapper managed-to-native)
System.IO.Compression.DeflateStreamNative.CreateZStream(System.IO.Compression.CompressionMode,bool,System.IO.Compression.DeflateStreamNative/UnmanagedReadOrWrite,intptr)

The thing is, under Editor/Managed/ I only have one folder named UnityEngine, which doens’t have any subfolders. Also, even outputting the log on a terminal, it seems that Unity is searching the lib in a folder named “…”, is it a bug on Unity 2018 or do I have to change some setting in Unity? (Allow ‘unsafe’ code is enabled, if it has something to do).

I also tried to check mono versions with the old version, unity 2017 is using 4.8.0 and the new one is using 5.11.0 can it make a difference?

Thanks for your help!

As a workaround I went to my …/Editor/Data/ folder in Unity, searched for all the “config” files and changed all occurencies of “target=$mono_libdir/libMonoPosixHelper.so” to “target=/usr/lib64/libMonoPosixHelper.so”, this fixed my issues but I don’t know if it’s a proper solution.

I copied …/Editor/Data/MonoBleedingEdge/lib/libMonoPosixHelper.so to ../Editor and it solved the issue. (I now have a Permission Denied problem on reading a serial port but that’s another story)

I’m on Debian 9, Unity 2019.3.3f1

This is STILL a workaround though. This issue has been up for ages.