Page 1 of 1

Can not unzip PB

Posted: Mon Aug 26, 2024 3:57 pm
by Rudy M
Title should be: Can not unzip PB sorry

RaspberryPi 3 model B+ Raspbian Lite with xfce4 as desktop

I could unpak and install a good working demo version of PB
Now I try to unpak the licensed version but this seams impossible.

pi@raspberrypi:~ $ unzip PureBasic_Linux_ARM64_LTS_6.11_(q4ag37).tgz
bash: syntaxfout nabij onverwacht symbool '('

English translation:
bash: syntax error near unexpected symbol '('

Did also a test to unzip wit "tar" ... the same error (and also with prefix sudo ...).

Somebody an idea?
Another unzip utility?

Re: Can bit uzip PB

Posted: Mon Aug 26, 2024 4:09 pm
by NicTheQuick
First of all. This is not a zip file, but a tar gz file.
Also you need to escape special characters like '(' accordingly.

You can do it like this:

Code: Select all

tar -xf 'PureBasic_Linux_ARM64_LTS_6.11_(q4ag37).tgz'
So basically use single quotes to allow special characters that would be interpreted by bash otherwise.
"tar -xf" means "tar --extract --file <file>".

Re: Can bit uzip PB

Posted: Mon Aug 26, 2024 4:10 pm
by NicTheQuick
Oh, and this has nothing to do with Purebasic itself. You just seem to learn a bit more about Bash I guess. :wink:

Re: Can bit uzip PB

Posted: Mon Aug 26, 2024 4:12 pm
by Marc56us
Uses <tab> (multiple time if not match filname) to autocomplete filename. This also will escape '(' with '\('

Code: Select all

$ tar xvzf PureBasic <press tab>
PS. Filename of archive does not matter, You can rename it (without ())

:wink:

Re: Can not unzip PB

Posted: Mon Aug 26, 2024 4:14 pm
by Fred
I guess I will remove the () as it doesn't brings anything

Re: Can not unzip PB

Posted: Mon Aug 26, 2024 5:53 pm
by Rudy M
I renamed the archif-file to: Purebasic.tgz

Thereafter the tip from Marc56us:

$ tar xvzf PureBasic <press tab>

Result: Perfect unpac in the Purebasic-map

(normailly here one does all the other install instructions)

Because I did already all the other install instructions I could immediately start up Purebasic.

Thanks to You all!!!
Rudy M

(Now I'm going to rename the map to: Purebasic-version xxx)