Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
java.lang.UnsatisfiedLinkError: Unable to load library 'C:\Users\ADMINI~1\AppData\Local\Temp\nativeutils14683980698824\libsodium.dll #34
I have the same issue on Debian Linux(32-bit) too
Okay so I spun up a Debian virtual machine and dug into the issue a bit further.
A quick fix is to update your OS so that it supports Libsodium
The first thing to note is that Lazysodium supports Libsodium
Let's walk through the steps you could try to resolve this.
1. Update your OS
Updating your OS to support the underlying architecture of the Libsodium version you want. This is the easiest and most surefire way of ensuring that this error is caused by your OS and not something else. It isn't the most surefire way of totally getting rid of this error as this error may occur for a number of other reasons.
2. Install/update Libsodium
I tested running Lazysodium on Debian 9 (Stretch, which is the latest version) and it resulted in the error in the comment above. Looking at the Libsodium package included in Stretch the version of Libsodium it supports is
Then all you have to do is call
3. Use an up-to-date precompiled Libsodium from somewhere
The second method is to just grab a compiled
Then you can load it into a path that Lazysodium can detect and then you can simply write
Counterpoint: After I did load the new
4. Compile it yourself
I've written a guide on how to compile and self-provision Libsodium here. This may or may not work as Libsodium depends on libc.so which needs to be updated to the latest version before compiling Libsodium. You may get an error similar to the one in method 3.
I'm sorry that to get Lazysodium working you need to jump through all of these hoops. Using one of the above methods can surely help you out. By the way Lazysodium has an issue with
P.S: Just for the record, this isn't a Lazysodium issue, it's more of a "keeping your OS and its packages up-to-date" kind of issue