SevenZipSharp icon indicating copy to clipboard operation
SevenZipSharp copied to clipboard

Running on Linux (.Net Core)

Open MrM40 opened this issue 6 years ago • 6 comments

Now that SevenZipSharp support .Net Std. will it then be running in .Core on Linux too? I'm seeing an issue with the 7zip.dll...are there an equivalent Linux library that can be used?

MrM40 avatar Jul 31 '19 11:07 MrM40

I've not tested this in any way with Linux, and have no time / use case to do so either.

The only Linux variant I know of is p7zip, which is referenced to on the bottom of the 7zip download page. I have no idea if this is in any way compatible with SevenZipSharp.

squid-box avatar Aug 06 '19 07:08 squid-box

But it's actually not maintained anymore. The Windows binaries are way ahead. Igor doesn't maintain the Linux version, some 3rd guy did long time ago but he pulled the plug. So I've looked for some alternatives which use the LZMA algorithm (just as 7zip) and it kind of boils down to XZ-Utils (which apparently is bad coded) and lzip/plzip

I know it's a little off-topics (in regards to SevenZipSharp), but just wanna share the info for others ;-)

MrM40 avatar Aug 06 '19 09:08 MrM40

Any chances that this feature will be added? I'm looking for a way to use 7zip in a .NET Core application running on linux (see question on StackOverflow).

webseb avatar Feb 10 '20 13:02 webseb

I have to give you the same answer as Panagiotis on SO. This isn't really up to this lib, you'll need to find/create a 7z dll implementation that works on Linux.

If you do have that, I'm open to including/making changes required to get it working in this lib as well.

squid-box avatar Feb 10 '20 14:02 squid-box

I could not find an up-to-date version of 7z for Linux. The latest release seems to be from late 2016.

webseb avatar Feb 11 '20 12:02 webseb

I've managed to pass some tests using p7zip's 7z.so with slight modification of csharp code, but there is a problem with SIGABRT.

Plus Marshal.ReleaseComObject causing it too.

All causing pointer being freed was not allocated.

You can check edits @ https://github.com/foesmm/SevenZipSharp/commit/a17b958056a7e2981eff238decf5495e8cb9cb8b

niveuseverto avatar May 31 '20 22:05 niveuseverto