-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux support #6
Comments
Hi,
Unfortunately i'm not an expert when it comes to Linux, but i think there is no way to put the native binary to the ZStandard.Net Nuget package since different Linux distributions use different packages.
For CentOs you could try to install this:
https://centos.pkgs.org/6/epel-testing-x86_64/zstd-1.3.5-1.el6.x86_64.rpm.html
It would be interessting to know if it works by just installing this CentOs package. Please keep me posted.
|
Hi, thanks for your quick reply. I have libzstd installed:
However it fails finding the library:
Seems to load if I create a symlink in the app folder though: |
Okay that's interessting. The question is how we can tell .Net to search for the library in the right folder. All suggestions are welcome :) |
Try NativeLibraryLoader. It fixed that problem for me, and allows for multiple locations since it checks each of them until it finds the dll. This would allow cross-platform builds too. My project uses it to find the library for each OS, and load it. I can submit a pull that could incorporate it. |
Probably worth looking at https://github.com/CoreyKaylor/Lightning.NET/tree/master/src/LightningDB which has to deal with the same issue. |
Thanks, this looks interessting! |
any progress? |
Hi bp74,
Currently I am using your lib, which is Windows only for now. So I am stuck using a Windows IIS server.
I plan to migrate to CentOS server. Do you plan to embed the Linux library anytime soon ? I don't really know how complicated it would be to implement.
Kind regards
The text was updated successfully, but these errors were encountered: