a-Shell-commands icon indicating copy to clipboard operation
a-Shell-commands copied to clipboard

Trouble installing zip and unzip wasm commands

Open Emasoft opened this issue 3 years ago • 6 comments

I have some trouble installing zip and unzip wasm commands:

[~/Documents/bin]$ ls -alh
total 0
drwxr-xr-x   4 mobile  mobile   128B Jun 21 22:19 .
drwxr-xr-x  20 mobile  mobile   640B Jun 21 22:19 ..
-rw-r--r--   1 mobile  mobile     0B Jun 21 22:19 unzip.wasm
-rw-r--r--   1 mobile  mobile     0B Jun 21 22:19 zip.wasm
[~/Documents/bin]$ zip
wasm: Error at line 59, column 37: RuntimeError: Unreachable code should not be executed (evaluating 'wasm.lowerI64Imports(retptr, passArray8ToWasm(wasm_binary), WASM_VECT
OR_LEN)')
[~/Documents/bin]$ unzip
wasm: Error at line 59, column 37: RuntimeError: Unreachable code should not be executed (evaluating 'wasm.lowerI64Imports(retptr, passArray8ToWasm(wasm_binary), WASM_VECT
OR_LEN)')
[~/Documents/bin]$ 

I copied them in the Documents/bin folder, as instructed. What I'm doing wrong?

Emasoft avatar Jun 21 '22 20:06 Emasoft

That looks like a command that was not downloaded properly. If downloading from inside a-Shell, you need to use curl -OL ....

holzschu avatar Jun 21 '22 20:06 holzschu

Thanks, now they work. I used the following curl commands:

[~/Documents/bin]$ curl -OL https://github.com/holzschu/a-Shell-commands/releases/download/0.1/unzip.wasm
[~/Documents/bin]$ curl -OL https://github.com/holzschu/a-Shell-commands/releases/download/0.1/zip.wasm

Before I forgot the L flag. You should add a shell script to automatically download and install the extra commands, to save the troubles.

Emasoft avatar Jun 21 '22 21:06 Emasoft

I simply tapped on the zip link and moved the file from my Downloads folder to a new On My IPhone/a-Shell/bin Folder. And it worked perfectly fine for me

ZakGhost354313 avatar Jul 03 '22 22:07 ZakGhost354313

An official shell script would be better to avoid mixups. It would also be updated with any new command at each release. Keeping track of those many files is troublesome.

Emasoft avatar Jul 04 '22 03:07 Emasoft

By the way, we now have an official shell script for installation. "pkg" will download and install the commands and their man pages.

holzschu avatar Sep 16 '22 06:09 holzschu

Wow, that's AMAZING! 👍😄

Emasoft avatar Sep 16 '22 08:09 Emasoft