SynologyOpenSource / pkgscripts-ng

Synology DSM6.0 package toolkit framework
162 stars 56 forks source link

macOS: "tar: Option -L is not permitted in mode -x" #18

Closed LukasBombach closed 2 years ago

LukasBombach commented 5 years ago

I just cloned this repository and ran

$ ./EnvDeploy -v 6.0 -p x64

But I am receiving the error

tar -xhf /Users/lbombach/Projekte/synology-paperless/toolkit_tarballs/base_env-6.0.txz -C /Users/lbombach/Projekte/synology-paperless/build_env/ds.x64-6.0
tar: Option -L is not permitted in mode -x

…followed by a stacktrace

Not sure what I can do. I am using macOS Mojave 10.14.3

ChangMM commented 5 years ago

The same error

Lord-Kamina commented 4 years ago

Hey guys, I've never used Synology but I found this issue while looking how to solve the same error. It's an incompatibility between Linux and macOS, which by default uses bsdtar...

In macOS, -his an alias for -L; instead, one should use -H which is the switch for dereference on mac.

bonatoc commented 2 years ago

You may want to use gtar if the above didn't made it for you:

brew install gnu-tar

as per this on StackEchange's superuser.com link.

LukasBombach commented 2 years ago

All of this sounds good, imma close this issue on behalf of the maintainer