p7zip-project / p7zip

A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/sevenzip/ AND https://sourceforge.net/projects/p7zip/).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac OS : Binary of 7-zip is not available

nirmalgoswami opened this issue · comments

Mac OS : 12.6

7-zip is not working, it is throwing error like binary is not available

To install 7-zip i have followed this steps

$ brew update
$ brew install p7zip

above command will store in /opt/homebrew/Cellar/p7zip/17.05/bin/

but package is looking 7z in below directory

protected static $binary7zNix = ['/usr/bin/7z', '/usr/bin/7za', '/usr/local/bin/7z', '/usr/local/bin/7za'];

so Binary of 7-zip is not available error is coming

Solution :

mac os default path as below
/opt/homebrew on Apple silicon
/usr/local on Intel

so make symbolic link like

sudo ln -n /opt/homebrew/Cellar/p7zip/17.05/bin/* /usr/local/bin

this way you will get 7z , 7za , 7zr in usr/local/bin directory