English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.Other (https://eab.abime.net/forumdisplay.php?f=74)
-   -   working lha for windows (https://eab.abime.net/showthread.php?t=88276)

jotd 13 August 2017 22:13

working lha for windows
 
Hi,

I have downloaded a lha.exe for windows here: http://gnuwin32.sourceforge.net/packages/lha.htm

archiving works, but unarchiving doesn't (files can be opened with 7-zip)

main problem: created files cannot be unarchived on Linux because of 0 UID

Code:

[release@ceres ~]$ lha l whdload.org/www/games/Crossbow.lha
 PERMSSN    UID  GID      SIZE  RATIO    STAMP          NAME
---------- ----------- ------- ------ ------------ --------------------
drw-rw-rw-    0/0          0 ****** Aug  8 12:37 CrossbowHD/
-rw-rw-rw-    0/0        692  78.3% Aug  8 12:59 CrossbowHD/Crossbow.Slave
-rw-rw-rw-    0/0        4615  51.3% Sep 10  2006 CrossbowHD/Crossbow.inf
-rw-rw-rw-    0/0        8447  57.9% Sep 10  2006 CrossbowHD/Crossbow.newicon
-rw-rw-rw-    0/0        4427  32.4% Aug  4 07:47 CrossbowHD/Install
-rw-rw-rw-    0/0        708  49.9% Sep 10  2006 CrossbowHD/Install.info
-rw-rw-rw-    0/0      17113  40.1% Aug  8 12:37 CrossbowHD/Manual
...
---------- ----------- ------- ------ ------------ --------------------
 Total        13 files  45420  48.0% Aug  8 21:50
[release@ceres ~]$ lha x whdload.org/www/games/Crossbow.lha
LHa: Error: Cannot extract CrossbowHD/Crossbow.Slave: Permission denied
LHa: Error: Cannot extract CrossbowHD/Crossbow.inf: Permission denied
LHa: Error: Cannot extract CrossbowHD/Crossbow.newicon: Permission denied

any ideas/workarounds (I wouldn't like to create archives on lha amiga using WinUAE again, that works, but I'd like a windows native solution)

thomas 13 August 2017 23:32

Quote:

Originally Posted by jotd (Post 1177989)
any ideas/workarounds

Use su or sudo to extract the archive and change permissions of the extracted files.

Use Amiga lha (inside WinUAE) to create the archives.

Use ZIP archives instead of LHA. It does not make sense to create LHA archives with Windows anyway because the advantage of storing Amiga file attributes is not given by Windows anyway, LHA or not.

jbl007 14 August 2017 12:19

Use Header level 0 (switch: -0) and/or force generic archive (switch: -g)

hexaae 18 July 2022 16:50

Uhm... can't find a decent LHA for Windows x32/64.
The one from gnuwin32 fails simple archive listing:
Code:

C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha.exe l WOIST.lha
PERMISSION  UID  GID      SIZE  RATIO    STAMP          NAME
---------- ----------- ------- ------ ------------ --------------------
[generic]                  628  43.2% Apr 16  1995 WoIst.info
LHa: Error: Unknown level header (level -81)
---------- ----------- ------- ------ ------------ --------------------
 Total        1 file      628  43.2% Jun 17 21:58

The one from http://aminet.net/package/util/arc/lhant fails on extract to specified dir:
HTML Code:

C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha xw=subdir WOIST.lha
LHa: Error: Not a directory WOIST.lha
LHa: Error: Cannot extract WOIST.lha/WoIst.info
...

Is there a WORKING Lha version for Windows from command line?
Funny facts: lhant.exe from Aminet can list archives but fails on extract to specified dir, GnuWin32 fails on listing archives but extract to specified dir does work as expected :spin

DisasterIncarna 18 July 2022 17:04

1 Attachment(s)
to just extract or to also add stuff? 7zip on windows lets you extract (ive only used it to extract, never tried adding to an archive tbh) from its gui and from command line, tho you need to enter its gui/settings and associate .lha with it.

andy2004 18 July 2022 17:10

lhmelt version2..
can create lzh files..
in settings screen... or settings for lzh archives..
header change to h1 [lha] and method LH5 default 8k

dont think lh6 or lh7 is supports on amiga.

lha 2.2 on amiga supports lh6.

hexaae 18 July 2022 17:26

I don't use 7z (I prefer BandiZip) but thank you anyway...
Found lhmelt, thanks: https://micco.mars.jp/english/lhmelt_e.htm

BTW, just found that previous build https://sourceforge.net/projects/gnu...les/lha/1.14i/
does work fine both listing, extracting to a specified path... and more, as expected.
Latest version 1.14i-1 is broken instead.

Code:

C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha l WOIST.lha
 PERMSSN    UID  GID      SIZE  RATIO    STAMP          NAME
---------- ----------- ------- ------ ------------ --------------------
[generic]                  628  43.2% Apr 16  1995 WoIst.info
[generic]                  584  60.8% Apr 20  1995 WoIst/LOCALE/CATALOGS/DEUTSCH/WoIst.catalog
[generic]                  749  53.4% Apr 20  1995 WoIst/LOCALE/WoIst.cd
[generic]                  740  59.9% Apr 20  1995 WoIst/LOCALE/WoIst_D.ct
[generic]                  886  59.7% Apr 16  1995 WoIst/Product-Info
[generic]                  563  45.5% Apr 16  1995 WoIst/Product-Info.info
[generic]                1093  45.6% Apr 20  1995 WoIst/Source/WoIst.log
[generic]                14733  27.4% Apr 20  1995 WoIst/Source/WoIst.mod
[generic]                5780  66.0% Apr 20  1995 WoIst/WoIst
[generic]                1814  56.0% Apr  9  1995 WoIst/WoIst.doc
[generic]                1091  29.5% Mar  7  1995 WoIst/WoIst.doc.info
[generic]                1747  57.1% Apr 20  1995 WoIst/WoIst.dok
[generic]                1091  29.5% Mar  7  1995 WoIst/WoIst.dok.info
[generic]                5656  65.4% Apr 20  1995 WoIst/WoIst020
---------- ----------- ------- ------ ------------ --------------------
 Total        14 files  37155  45.6% Jun 17 21:58

C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha xw=subdir WOIST.lha
subdir/WoIst.info      - Melted  :  o
subdir/WoIst/LOCALE/CATALOGS/DEUTSCH/WoIst.catalog      - Melted  :  o
subdir/WoIst/LOCALE/WoIst.cd    - Melted  :  o
subdir/WoIst/LOCALE/WoIst_D.ct  - Melted  :  o
subdir/WoIst/Product-Info      - Melted  :  o
subdir/WoIst/Product-Info.info  - Melted  :  o
subdir/WoIst/Source/WoIst.log  - Melted  :  o
subdir/WoIst/Source/WoIst.mod  - Melted  :  oo
subdir/WoIst/WoIst      - Melted  :  o
subdir/WoIst/WoIst.doc  - Melted  :  o
subdir/WoIst/WoIst.doc.info    - Melted  :  o
subdir/WoIst/WoIst.dok  - Melted  :  o
subdir/WoIst/WoIst.dok.info    - Melted  :  o
subdir/WoIst/WoIst020  - Melted  :  o


ptyerman 18 July 2022 17:38

Izarc https://www.izarc.org extracts and creates lha archives amongst many others. I have used it for many years as my main zip program on Windows.

hexaae 18 July 2022 17:39

Needed a command line version. I already use BandiZip for everything else (and have also DOpus for Windows ;))...
FYI: Bandizip or Zipware are the best for Windows (better than 7z, PeaZip, IZArc etc.) with drag'n'drop support, faaast, Windows native (no GUI wrapper) etc.

ptyerman 18 July 2022 17:45

If you go to the download page there is a link for the command line add-on.

hexaae 18 July 2022 17:55

Thanks. BTW, for those interested I've also found a 16bit version (DOSBox etc.). In The Zone.

Leon Besson 31 August 2022 00:21

Have used WinRAR in the past for unpacking lha files. But don’t recommend it for MUI3.8 as Windows doesn’t like the blank file it holds and causes issues.

dlfrsilver 31 August 2022 08:41

Use LHA under winuae, then get the LHA archive resulting in a windows shared folder.

For decrunching, either do it the opposite way, copy it in a windows shared folder, then use LHA in the cli in winuae to decrunch.

Dale423 01 September 2022 21:19

7Zip handles .LHA

mrv2k 01 September 2022 21:26

Either Winzip or Izarc can easily create LHA files in Windows. Izarc seems to be more compatible than Winzip. Most of the big Windows archivers will extract LHA files.

https://www.izarc.org/

hexaae 02 September 2022 00:19

Best free:
BandiZip
ZipWare

jotd 02 September 2022 08:24

Extracting has never been a problem.

I don't have a windows-based + command line solution to create lha files which have the proper permission bits for the archived files.

malko 02 September 2022 08:46

Not yet mentioned, so have you tried http://www.tugzip.com/ ?


All times are GMT +2. The time now is 18:25.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04605 seconds with 11 queries