• LHA error

    From Michael Borthwick@21:4/132 to All on Sat Dec 8 11:10:18 2018
    I'm trying to get LHA working on RPi. When I try to view the contents of an
    LHA archive I get the following:

    LHA: Error: -f no such file or directory

    In the archivers section of the config I've got the default unpack command:

    lha -e -f "-W%3" "%1" "%2"

    Does anyone have LHA working on the RPi? Does the unpack command need to be modified?

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From Vorlon@21:1/195 to Michael Borthwick on Sat Dec 8 11:43:02 2018
    Hello Michael!

    08 Dec 18 11:10, you wrote to all:

    I'm trying to get LHA working on RPi. When I try to view the contents
    of an LHA archive I get the following:

    LHA: Error: -f no such file or directory

    In the archivers section of the config I've got the default unpack command:

    lha -e -f "-W%3" "%1" "%2"

    Does anyone have LHA working on the RPi? Does the unpack command need
    to be modified?


    Try this:

    lha -e -f "-w=%3" "%1" "%2"




    Vorlon


    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Dragon's Lair ---:- dragon.vk3heg.net -:--- (21:1/195)
  • From Michael Borthwick@21:4/132 to Vorlon on Sat Dec 8 12:37:54 2018
    Thanks, I made a typo so I've now got as you wrote. I restarted MIS but now
    I'm getting ' Unable to view archive. ' error :/

    Why he used lha instead of zip I don't know.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From vorlon@21:1/195.1 to Michael Borthwick on Sun Dec 9 13:10:44 2018
    Thanks, I made a typo so I've now got as you wrote. I restarted MIS but now I'm getting ' Unable to view archive. ' error :/

    Why he used lha instead of zip I don't know.

    Are you trying to access lha archives from the Amiga version?

    If the lhasa package isn't working, then you might have to compile it
    from source. (Check your inbound, as I just put it there). #-)






    \/orlon



    --- MagickaBBS v0.12alpha (Linux/m68k)
    * Origin: Vorlon Empire: <Sector 550> (21:1/195.1)
  • From Michael Borthwick@21:4/132 to vorlon on Sun Dec 9 12:43:28 2018
    Are you trying to access lha archives from the Amiga version?
    If the lhasa package isn't working, then you might have to compile it
    from source. (Check your inbound, as I just put it there). #-)

    Yeah I think it's from an Amiga.

    I had a look at lha on the command line and instead of 'lha -e -f' it should
    be 'lha -ef' so I modified the command in the archive editor and for some reason i'm still getting the LHA Error: -f No such file or directory. It doesn't seem to be picking up the modified unpack command.

    Maybe it's a bug in Mystic?

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From Al@21:4/106 to Michael Borthwick on Sat Dec 8 17:59:12 2018
    Re: LHA error
    By: Michael Borthwick to All on Sat Dec 08 2018 11:10 am

    lha -e -f "-W%3" "%1" "%2"

    Does anyone have LHA working on the RPi? Does the unpack command need to be modified?

    I would try removing the - from the above (all three of them) and try that.

    It's been a long time since I used lha on the command line, so I'm not sure but it might work.

    Ttyl :-),
    Al

    ... Almost everything in life is easier to get into than out of.
    --- SBBSecho 3.06-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From vorlon@21:1/195.1 to Michael Borthwick on Tue Dec 11 00:24:46 2018
    from source. (Check your inbound, as I just put it there). #-)

    Yeah I think it's from an Amiga.

    I had a look at lha on the command line and instead of 'lha -e -f' it should be 'lha -ef' so I modified the command in the archive editor and for some reason i'm still getting the LHA Error: -f No such file or directory. It doesn't seem to be picking up the modified unpack command.

    My system caters for mainly amiga's, and lha is working there (Debian
    Linux 9.x 32bit), with the only issue being viewing txt files in sub
    dir's.


    Maybe it's a bug in Mystic?

    Try using the flags from the command line and see what happens.



    \/orlon



    --- MagickaBBS v0.12alpha (Linux/m68k)
    * Origin: Vorlon Empire: <Sector 550> (21:1/195.1)
  • From bcw142@21:1/145 to Michael Borthwick on Tue Dec 11 12:17:48 2018
    On 12/08/18, Michael Borthwick said the following...

    I'm trying to get LHA working on RPi. When I try to view the contents of an LHA archive I get the following:

    LHA: Error: -f no such file or directory

    In the archivers section of the config I've got the default unpack command:

    lha -e -f "-W%3" "%1" "%2"

    As was pointed out the W needs to be lowercase:
    SYNOPSIS
    lha [-]{lvtxe[q{num}][finv]}[w=<dir>] archive_file [file...]
    so it should be "-w=%3" (Note the w=dir). The error is the working directory doesn't exist. %3 will point to one of the temp directories under mystic used for such things. I don't seem to have an example file right now, but in checking it needs the equal added to it.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From bcw142@21:1/145 to Michael Borthwick on Tue Dec 11 12:31:38 2018
    On 12/08/18, Michael Borthwick said the following...
    I'm trying to get LHA working on RPi. When I try to view the contents of an LHA archive I get the following:
    lha -e -f "-W%3" "%1" "%2"

    I just checked my AlphaTest which has some Amiga files and the Unpack Cmd
    there is: lha -e -f "-w=/mystic/temp1" "%1" "%2"
    and it's working to view Amiga LHA files from Fred Fish disks. Seems to be a path issue with A39 so /mystic/temp1 forces it to use temp1 area to unpack to. That's with x64 setup not RPi's x32, but that shouldn't matter. Seems like some path issues are creeping in with A39. I noticed a few other places.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From Michael Borthwick@21:4/132 to bcw142 on Wed Dec 12 09:33:42 2018
    Hi,

    I'm still having issues with LHA. I'm getting the following error:

    ' LHA Error: -f No such file or directory '

    I've tried the following;

    lha -e -f "-w=%3" "%1" "%2"
    lha -ef "-w=%3" "%1" "%2"
    lha -e "-w=%3" "%1" "%2"

    lha -e -f "-w=/mystic/temp1" "%1" "%2"
    lha -ef "-w=/mystic/temp1" "%1" "%2"
    lha -e "-w=/mystic/temp1" "%1" "%2"

    I restart mis after each change. I still get the same error each time.

    Not sure what's going on :/

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From g00r00@21:1/112 to Michael Borthwick on Wed Dec 12 00:41:20 2018
    I restart mis after each change. I still get the same error each time.

    Not sure what's going on :/

    What are you trying to do? What does it show in the logs?

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Black Flag <ACiD Telnet HQ> blackflagbbs.com (21:1/112)
  • From Michael Borthwick@21:4/132 to g00r00 on Wed Dec 12 17:39:30 2018
    What are you trying to do? What does it show in the logs?

    I'm trying to view a LHA compressed nodelist in a filebase for AmigaNet.

    I don't see anything in the logs. When I hit view to open the archive then
    hit enter to view the file I get the following error;

    LHA Error: -f no such file or directory

    I've tried several different commands in the configurator but nothing works. Always get the same error...

    I've tried;

    lha -e -f "-w=%3" "%1" "%2"
    lha -ef "-w=%3" "%1" "%2"
    lha -e "-w=%3" "%1" "%2"
    lha -e -f "-w=/extdrive/mystic/temp1" "%1" "%2"
    lha -ef "-w=/extdrive/mystic/temp1" "%1" "%2"
    lha -e "-w=/extdrive/mystic/temp1" "%1" "%2"

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From Avon@21:1/101 to Michael Borthwick on Wed Dec 12 20:05:56 2018
    On 12/12/18, Michael Borthwick pondered and said...

    I'm trying to view a LHA compressed nodelist in a filebase for AmigaNet.

    For me it works under win32

    [snip]

    ° Viewing AMYLIST.L41

    Files............: 1 Compressed Size....: 2kb
    Directories......: 0 Decompressed Size..: 6kb

    ° Path \

    Ú File Name ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Size ÄÄÄ Date ÄÄÄ Time
    Ä¿
    ³AmyList.341 6kb 06 Dec 2018 11:02p
    Û
    [snip]

    My settings are

    ßßßßßßßßßßßßßßßßßßßßß Archivers ßßßßßßßßßßßßßßßßßßßßßÜ
    Û
    Active ³ Yes Û
    Extension ³ LHA Û
    OS ³ All Û
    Description ³ LHA g00r00 Û
    Pack Cmd ³ lha a i %1 %2 Û
    Unpack Cmd ³ lha e %1 /w+ %3 Û
    View Cmd ³ lha v %1 Û
    Û ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛ

    it may be called that after feedback from the author? :)

    And the ver info for LHA I am using is

    LHA version 2.13 Copyright (c) Haruyasu Yoshizaki,
    1988-91
    === <<< A High-Performance File-Compression Program >>> ======== 07/20/91
    ===
    Usage: LHA <command> [/option[-+012|WDIR]] <archive[.LZH]> [DIR\] [filenames] -------------------------------------------------------------------------------
    <command>
    a: Add files u: Update files m: Move files
    f: Freshen files d: Delete files p: disPlay files
    e: Extract files x: eXtract files with pathnames
    l: List of files v: View listing of files with pathnames
    s: make a Self-extracting archive t: Test the integrity of an archive
    <option>
    r: Recursively collect files w: assign Work directory
    x: allow eXtended file names m: no Message for query
    p: distinguish full Path names c: skip time-stamp Check
    a: allow any Attributes of files z: Zero compression (only store)
    t: archive's Time-stamp option h: select Header level (default = 1)
    o: use Old compatible method n: display No indicator a/o pathname
    i: not Ignore lower case l: display Long name with indicator
    s: Skip by time is not reported -: '@' and/or '-' as usual letters ===============================================================================
    You may copy or distribute this software free of Nifty-Serve SDI00506
    charge. For use as a part of commercial or of shared ASCII-pcs pcs02846
    distributions, see our distribution policy in Manual. PC-VAN FEM12376

    --- Mystic BBS v1.12 A40 2018/12/11 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Michael Borthwick@21:4/132 to Avon on Wed Dec 12 18:11:58 2018
    For me it works under win32

    Yeah but i'm using RPi so it's a bit different :(

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From Avon@21:1/101 to Michael Borthwick on Wed Dec 12 20:19:22 2018
    On 12/12/18, Michael Borthwick pondered and said...

    Yeah but i'm using RPi so it's a bit different :(

    What ver of LHA are you using and what are the switch setting in Mystic?

    --- Mystic BBS v1.12 A40 2018/12/11 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Michael Borthwick@21:4/132 to Avon on Wed Dec 12 18:34:48 2018
    What ver of LHA are you using and what are the switch setting in Mystic?

    Ok I got it sorted.... I couldn't understand why I was getting the same error even though I had changed the command under LHA.... except for some reason it was using the command under the LZH settings.... still the commands needed tweaking for...

    Lhasa v0.3.1 command line LHA tool - Copyright (c) 2011,2012 Simon Howard

    The command to extract/view is;

    lha -ew="%3" "%1"

    I'm not going to bother with the pack command as I don't think I'll ever need to compress a file with LHA/LZH.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From Michael Borthwick@21:4/132 to Michael Borthwick on Wed Dec 12 18:37:14 2018
    Lhasa v0.3.1 command line LHA tool - Copyright (c) 2011,2012 Simon Howard

    The command to extract/view is;

    lha -ew="%3" "%1"

    I added in the -f to force overwrite too so it's

    lha -efw="%3" "%1"

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From Michael Borthwick@21:4/132 to Michael Borthwick on Wed Dec 12 18:38:40 2018
    I really should stop asking for help... it might take me a day or two but I usually work it out then look like an idiot lol

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Fusion BBS ~ Newcastle, Australia (21:4/132)
  • From g00r00@21:1/112 to Michael Borthwick on Fri Dec 14 04:23:36 2018
    What are you trying to do? What does it show in the logs?

    I'm trying to view a LHA compressed nodelist in a filebase for AmigaNet.

    Mystic has built in archive viewing for LHA/LZH. If you are using the (V)iew option in a file listing, it is not using an archive utility so the command line means nothing.

    I don't see anything in the logs. When I hit view to open the archive
    then hit enter to view the file I get the following error;

    LHA Error: -f no such file or directory

    Are you using Mystic? Assuming its a valid LHA file Mystic does not execute anything external.

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Black Flag <ACiD Telnet HQ> blackflagbbs.com (21:1/112)
  • From g00r00@21:1/112 to Michael Borthwick on Fri Dec 14 04:36:50 2018
    I really should stop asking for help... it might take me a day or two
    but I usually work it out then look like an idiot lol

    Well this still brings a good topic of conversation up. If there is a
    default configuration that needs to be updated for LHA in Raspberry Pi or something, I would say that is worth discussing!

    I'd like to give good default settings wherever I can so people won't have to run into issues. I am also interested in why Mystic would even be calling
    the archive anyway, given it should be using its internal archive browser
    with LHA, LZH, ZIP, and RAR files.

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Black Flag <ACiD Telnet HQ> blackflagbbs.com (21:1/112)