GMLC-TDC / matHELICS

matlab interfaces for HELICS
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Error While Executing buildHelicsInterface.m #2

Closed StormsHalted closed 2 years ago

StormsHalted commented 2 years ago

Afternoon,

I get this error when running the buildHelicsInterface.m script:

buildHelicsInterface

Error using matlab.io.internal.archive.core.builtin.extractArchive Invalid TAR file /home/ali/Downloads/matHELICS-main/helicsTar.tar.gz.

Error in untar (line 84) files = matlab.io.internal.archive.core.builtin.extractArchive(tarFilename, outputDir, 'tgz');

Error in buildHelicsInterface (line 32) untar('helicsTar.tar.gz');

nightlark commented 2 years ago

This past Friday we were looking at an issue with the Matlab untar command on macOS not handling symlinks at all. Based on the error you got, I’d guess that symlinks are the reason it is saying the tar file is invalid (which explains why it works on Windows which doesn’t have symlink support), or it can’t handle compressed tar archives; either way it seems like Matlab’s built-in untar command is even more broken on Linux.

On Sunday, May 29, 2022, StormsHalted @.***> wrote:

Afternoon,

I get this error when running the buildHelicsInterface.m script:

buildHelicsInterface Error using matlab.io.internal.archive.core.builtin.extractArchive Invalid TAR file /home/ali/Downloads/matHELICS-main/helicsTar.tar.gz.

Error in untar (line 84) files = matlab.io.internal.archive.core.builtin.extractArchive(tarFilename, outputDir, 'tgz');

Error in buildHelicsInterface (line 32) untar('helicsTar.tar.gz');

— Reply to this email directly, view it on GitHub https://github.com/GMLC-TDC/matHELICS/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6JBZ2OFBGMQZMBDLAQACDVMP5BTANCNFSM5XI3RDFA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

StormsHalted commented 2 years ago

So how to resolve this?

nightlark commented 2 years ago

Since you’re on HELICS 2, this part probably isn’t relevant.

The workaround is to download the helics tar file manually, and extract it from the command line using the usual tar -xf system command. Then modify the matlab build script to use that manually extracted directory instead.

On Sunday, May 29, 2022, StormsHalted @.***> wrote:

So how to resolve this?

— Reply to this email directly, view it on GitHub https://github.com/GMLC-TDC/matHELICS/issues/2#issuecomment-1140552262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6JBZ23BXGNXYWHN6V3NP3VMQA6XANCNFSM5XI3RDFA . You are receiving this because you commented.Message ID: @.***>