Problem installing from tarball

Hello all can you please help me install Hugo from tarball? I’m trying to install 0.83.1 extended.

I’m following Install Hugo | Hugo and using the recommended location #2 i.e. ~/bin

I get different permissions after trying to verify that the tarball wasn’t corrupted:

tar tvf ~/Downloads/hugo_extended_0.83.1_macOS-64bit.tar.gz 
-rw-r--r--  0 root   root    11357 May  2 09:29 LICENSE
-rw-r--r--  0 root   root    12345 May  2 09:29 README.md
-rwxr-xr-x  0 root   root 50482236 May  2 10:23 hugo

As opposed to the following from the docs:

tar tvf ~/Downloads/hugo_X.Y_osx-64bit.tgz
-rwxrwxrwx  0 0      0           0 Feb 22 04:02 hugo_X.Y_osx-64bit/hugo_X.Y_osx-64bit.tgz
-rwxrwxrwx  0 0      0           0 Feb 22 03:24 hugo_X.Y_osx-64bit/README.md
-rwxrwxrwx  0 0      0           0 Jan 30 18:48 hugo_X.Y_osx-64bit/LICENSE.md

Then when I extract the tarball within my /bin directiory:

harrisonnash@Harrisons-MacBook-Pro /bin % tar -xvzf ~/Downloads/hugo_extended_0.83.1_macOS-64bit.tar.gz

x LICENSE: Can't create 'LICENSE'

x README.md: Can't create 'README.md'

x hugo: Can't create 'hugo'

tar: Error exit delayed from previous errors.

I get those errors. I can extract the tarball in other directories, but when I try to run ./hugo version I get the following error:

**“hugo” cannot be opened because the developer cannot be verified.**
macOS cannot verify that this app is free from malware.

Cab you help me please?
Thank you

I’ve tried sudo and a combination of different flags for tar.

MacOS Catalina 10.15.7

Unsigned apps that you know are good you can right click and select “Open”. You then get a dialog where you confirm that you do want to open this app.

After that you can use Hugo as normal on the command line.

This is a security feature of macOS.