Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: invalid option: --with-default-names

Tags:

macos

homebrew

This question is posted to explain why running the below command will generate errors as the command below (seen in many stackoverflow answers) is outdated.

Unable to install gnu-tar with command: brew install gnu-tar --with-default-names

Returns error: Error: invalid option: --with-default-names

like image 556
Zhixian Chin Avatar asked Oct 16 '22 13:10

Zhixian Chin


1 Answers

Run: export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"

This command instead allows gnu-tar to be found and run before bsutar

With default names has been removed.

Please see: https://discourse.brew.sh/t/why-was-with-default-names-removed/4405

like image 142
Zhixian Chin Avatar answered Dec 26 '22 23:12

Zhixian Chin