• unable to execute dosemu

    From Sprite@VERT/TINTETBB to All on Fri Dec 13 15:58:26 2019
    Hello everybody.
    Trying to get dosemu working here so that I can throw some doors online, but I'm having a problem I've not yet encountered. Not quite sure what to do with it.
    I'm trying to use the DOSEMU/FreeDos ready-to-use binary distribution. I've unpacked both of the source tarballs into a directory, as it says in the README, and the contents seem to indicate that yes, both freedos (under drive_z) and dosemu's contents have ended up where they're supposed to be. However, when I try to execute $DOSEMUDIR/dosemu, I get the following error:
    ./dosemu: 277: exec: /home/sprite/dos/dosemu/drive_z/../bin/dosemu.bin: not found
    In looking at this file, big surprise, it turns out to be a shell script. At that particular line it's trying to execute $COMMAND, which should be $DOSEMUDIR/bin/dosemu.bin. I've manually verified that this file is there, and that it's executable. However, when I try to execute it, bash is telling me that:
    sprite@diaspora:~/dos/dosemu$ bin/dosemu.bin
    -bash: bin/dosemu.bin: No such file or directory
    Not sure what on earth else to do with this. My google hits aren't really looking like they're turning up much relevant. Anybody else ever had this issue before, or have any suggestions on what I might be able to do here? Anything would be appreciated!

    ---
    þ Synchronet þ My Brand-New BBS
  • From Rampage@VERT/SESTAR to Sprite on Sat Dec 14 07:18:41 2019
    Re: unable to execute dosemu
    By: Sprite to All on Fri Dec 13 2019 15:58:26

    there, and that it's executable. However, when I try to execute it,
    bash is telling me that:
    sprite@diaspora:~/dos/dosemu$ bin/dosemu.bin
    -bash: bin/dosemu.bin: No such file or directory

    what does "ls -la ~/dos/dosemu/bin" return?

    also, which OS are you using? 64bit or 32bit?

    i've seen similar rather misleading errors when the program is looking for 32bit stuff on a 64bit system that doesn't have the 32bit libs available... not sure what is causing your situation without more data...


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
  • From Sprite@VERT/TINTETBB to Rampage on Sat Dec 14 12:33:13 2019
    Re: unable to execute dosemu
    By: Rampage to Sprite on Sat Dec 14 2019 07:18:41

    there, and that it's executable. However, when I try to execute it,
    bash is telling me that:
    sprite@diaspora:~/dos/dosemu$ bin/dosemu.bin
    -bash: bin/dosemu.bin: No such file or directory

    what does "ls -la ~/dos/dosemu/bin" return?

    Alright, here's what I've got for the full directory listing there. Be aware, I changed the 'dos' part of the path to 'mydos' when troubleshooting things, so that much is a little different.

    sprite@diaspora:~/mydos/dosemu$ ls
    bin conf COPYING.DOSEMU drive_z freedos xdosemu commands COPYING dosemu FDchange.log README.bindist Xfonts sprite@diaspora:~/mydos/dosemu$ ls -la bin
    total 2000
    drwxr-xr-x 2 sprite sprite 4096 May 5 2007 .
    drwxr-xr-x 6 sprite sprite 4096 Dec 13 15:52 ..
    -rwxr-xr-x 1 sprite sprite 16176 May 5 2007 dosdebug
    -rwxr-xr-x 1 sprite sprite 1705816 May 5 2007 dosemu.bin
    -rwxr-xr-x 1 sprite sprite 4348 May 5 2007 libplugin_alsa.so
    -rwxr-xr-x 1 sprite sprite 5344 May 5 2007 libplugin_gpm.so
    -rwxr-xr-x 1 sprite sprite 22664 May 5 2007 libplugin_sdl.so
    -rwxr-xr-x 1 sprite sprite 3728 May 5 2007 libplugin_sndfile.so
    -rwxr-xr-x 1 sprite sprite 184572 May 5 2007 libplugin_term.so
    -rwxr-xr-x 1 sprite sprite 78888 May 5 2007 libplugin_X.so sprite@diaspora:~/mydos/dosemu$

    also, which OS are you using? 64bit or 32bit?

    Using the 64-bit version.

    i've seen similar rather misleading errors when the program is looking for 32bit stuff on a 64bit system that doesn't have the 32bit libs available... not sure what is causing your situation without more data...

    Yeah I know my post is a little vague. I'm honestly not sure what else to include in it for helpful information, though. One of the guides or threads I was looking through told me to find more information in ~/.dosemu/boot.log I think it was, but because ~/mydos/dosemu/dosemu.bin never even _executes_, that log file hasn't been created yet.
    Trying to think of what else might be helpful. I'll post whatever I can think of, but I'm drawing a blank right now. I'll see if I can find any libraries that it might be missing, but wouldn't that be a fairly different error? I know I've stumbled across missing libraries before and I could swear that it tells what library it's trying to access at that point. This is more like it's just not able to find ~/mydos/dosemu/bin/dosemu.bin despite it being _right there_ and having the _right permissions_. I dunno, it's driving me a bit batpoop right now.
    I do appreciate the help...

    ---
    þ Synchronet þ My Brand-New BBS
  • From Mortifis@VERT/ALLEYCAT to Sprite on Tue Dec 17 07:49:30 2019
    Hello everybody.
    Trying to get dosemu working here so that I can throw some doors online, but I'm having a problem I've not yet encountered. Not quite sure what to do with it.
    I'm trying to use the DOSEMU/FreeDos ready-to-use binary distribution. I've unpacked both of the source tarballs into a directory, as it says in the README, and the contents seem to indicate that yes, both freedos (under drive_z) and dosemu's contents have ended up where they're supposed to be. However, when I try to execute $DOSEMUDIR/dosemu, I get the following error: ./dosemu: 277: exec: /home/sprite/dos/dosemu/drive_z/../bin/dosemu.bin: not found
    In looking at this file, big surprise, it turns out to be a shell script. At that particular line it's trying to execute $COMMAND, which should be $DOSEMUDIR/bin/dosemu.bin. I've manually verified that this file is there, and that it's executable. However, when I try to execute it, bash is telling me that:
    sprite@diaspora:~/dos/dosemu$ bin/dosemu.bin
    -bash: bin/dosemu.bin: No such file or directory
    Not sure what on earth else to do with this. My google hits aren't really looking like they're turning up much relevant. Anybody else ever had this issue before, or have any suggestions on what I might be able to do here? Anything would be appreciated!

    When are are executing how your trying to execute it. Via an online door or manually. I see that the permissions are set to sprite:sprite are you logged on as sprite?

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Wkitty42@VERT to Sprite on Mon Dec 16 05:48:32 2019
    Re: Re: unable to execute dosemu
    By: Sprite to Rampage on Sat Dec 14 2019 12:33 pm

    what does "ls -la ~/dos/dosemu/bin" return?

    Alright, here's what I've got for the full directory listing there. Be aware, I changed the 'dos' part of the path to 'mydos' when troubleshooting things, so that much is a little different.

    NOTE: i'm answering this from VERT since it seems that my post got lost somehow on the way from my system, sestar, to vert... i'm copy'n'pasta my reply that i wrote on sestar... hopefully this will work as desired...

    ----- original reply starts here -----
    that's fine and the output seems ok... what is the output of this command sequence, please...

    echo ; \
    uname -a ; \
    echo ; \
    file ~/mydos/dosemu/bin/dosemu.bin ; \
    echo ; \
    ldd ~/mydos/dosemu/dosemu.bin

    copy'n'pasta it in one full block before hitting enter... the output should look something like this... i've added blank lines between the ldd output and removed the leading spaces to avoid wordwrap munging things and making it hard to read... note also that i'm using the dosemu package from my distribution's package repo...

    [quote]

    Linux sestar 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

    /usr/bin/dosemu.bin: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, BuildID[sha1]=e8b833ba83a5469a5bc71b657167012281de2da6, stripped

    linux-vdso.so.1 (0x00007ffc2d3e9000)

    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff184286000)

    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff184082000)

    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff183ce4000)

    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff1838f3000)

    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff1836d4000)

    /lib64/ld-linux-x86-64.so.2 (0x00007ff184dbf000)

    [/quote]

    )\/(ark

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Sprite@VERT/TINTETBB to Mortifis on Mon Dec 16 11:22:32 2019
    Re: Re: unable to execute dosemu
    By: Mortifis to Sprite on Tue Dec 17 2019 07:49:30

    When are are executing how your trying to execute it. Via an online door or manually. I see that the permissions are set to sprite:sprite are you logged on as sprite?

    Yeah I'm logged in as sprite. Just trying to execute it as myself from the shell prompt as such:
    sprite@diaspora:~/mydos/dosemu$ ls
    bin conf COPYING.DOSEMU drive_z freedos xdosemu commands COPYING dosemu FDchange.log README.bindist Xfonts sprite@diaspora:~/mydos/dosemu$ ./dosemu
    ./dosemu: 277: exec: /home/sprite/mydos/dosemu/drive_z/../bin/dosemu.bin: not found
    sprite@diaspora:~/mydos/dosemu$

    ---
    þ Synchronet þ My Brand-New BBS
  • From Sprite@VERT/TINTETBB to Wkitty42 on Mon Dec 16 11:27:30 2019
    Re: Re: unable to execute dosemu
    By: Wkitty42 to Sprite on Mon Dec 16 2019 05:48:32

    NOTE: i'm answering this from VERT since it seems that my post got lost somehow on the way from my system, sestar, to vert... i'm copy'n'pasta my reply that i wrote on sestar... hopefully this will work as desired...

    Roger that. Thanks for trying to make sure it got to me.

    that's fine and the output seems ok... what is the output of this command sequence, please...

    echo ; \
    uname -a ; \
    echo ; \
    file ~/mydos/dosemu/bin/dosemu.bin ; \
    echo ; \
    ldd ~/mydos/dosemu/dosemu.bin

    Okay here's what I got:

    sprite@diaspora:~/mydos/dosemu$ echo ; \
    uname -a ; \
    echo ; \
    file ~/mydos/dosemu/bin/dosemu.bin ; \
    echo ; \
    ldd ~/mydos/dosemu/dosemu.bin

    Linux diaspora 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux

    /home/sprite/mydos/dosemu/bin/dosemu.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.2.5, stripped

    ldd: /home/sprite/mydos/dosemu/dosemu.bin: No such file or directory sprite@diaspora:~/mydos/dosemu$

    Any clues in how that looks?

    ---
    þ Synchronet þ My Brand-New BBS
  • From Rampage@VERT/SESTAR to Sprite on Tue Dec 17 09:16:02 2019
    Re: Re: unable to execute dosemu
    By: Sprite to Wkitty42 on Mon Dec 16 2019 11:27:30


    sprite@diaspora:~/mydos/dosemu$ echo ; \
    uname -a ; \
    echo ; \
    file ~/mydos/dosemu/bin/dosemu.bin ; \
    echo ; \
    ldd ~/mydos/dosemu/dosemu.bin


    oops... i made a typo in the above line... it should be

    ldd ~/mydos/dosemu/bin/dosemu.bin


    Linux diaspora 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux


    ok, so 64bit debian...


    /home/sprite/mydos/dosemu/bin/dosemu.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.2.5, stripped


    32bit dosemu.bin...


    ldd: /home/sprite/mydos/dosemu/dosemu.bin: No such file or directory sprite@diaspora:~/mydos/dosemu$


    see typo fix above...


    Any clues in how that looks?


    yeah, it looks like what i was talking about earlier when i was saying that 64bit systems that try to run 32bit programs can see this seemingly incorrect error message about an executable not existing when it plainly does in a directory listing...

    i don't remember how debian does it but you need to install the 32bit libraries and stuff so that your system can run 32bit programs... right now your system appears to only run 64bit stuff... a quick talk with uncle google reminds me that debian based systems call it multiarch... the details of multiarch are in this link...

    https://wiki.debian.org/Multiarch/HOWTO

    but we're concerned with installing the capabilities... it appears that you're running debian stretch... is this right? if so, here's how you install 32bit capability for it...

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6-i386

    the ldd command, that i typoed and fixed above, will tell us the other libraries that are needed to be installed like libc6-i386 is in the line above so your 32bit dosemu.bin will run...

    BUT! the dosemu i'm using is a 64bit binary as shown in my example output in that previous message... it would probably be easier if you can locate a 64bit binary of dosemu for your system... if there isn't one, maybe find out if you can easily compile one on your system... if you can then maybe consider going that way...

    i'm not sure which way is the best so won't recommend one over the other... i like the ability to run 32bit programs so i might go ahead with the multiarch stuff and try the 32bit dosemu and see how it goes... if there's problems, i could always remove it and find a 64bit version of it or compile one myself if it is easy to do... might have to use an older version of dosemu and code to do that on an older OS like stretch...


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
  • From Sprite@VERT/TINTETBB to Rampage on Tue Dec 17 15:07:31 2019
    Re: Re: unable to execute dosemu
    By: Rampage to Sprite on Tue Dec 17 2019 09:16:02

    oops... i made a typo in the above line... it should be
    ldd ~/mydos/dosemu/bin/dosemu.bin

    Here's what I've got for that:
    sprite@diaspora:~/mydos/dosemu$ ldd bin/dosemu.bin
    linux-gate.so.1 (0xf77b5000)
    librt.so.1 => /lib32/librt.so.1 (0xf779a000)
    libdl.so.2 => /lib32/libdl.so.2 (0xf7795000)
    libm.so.6 => /lib32/libm.so.6 (0xf7740000)
    libc.so.6 => /lib32/libc.so.6 (0xf7588000)
    libpthread.so.0 => /lib32/libpthread.so.0 (0xf756b000)
    /lib/ld-linux.so.2 (0xf77b7000)

    yeah, it looks like what i was talking about earlier when i was saying that 64bit systems that try to run 32bit programs can see this seemingly incorrect error message about an executable not existing when it plainly does in a directory listing...

    Yeah that error message is out there. Definitely not the most helpful one that I've seen.

    i don't remember how debian does it but you need to install the 32bit libraries and stuff so that your system can run 32bit programs... right now your system appears to only run 64bit stuff... a quick talk with uncle google reminds me that debian based systems call it multiarch... the details of multiarch are in this link...

    https://wiki.debian.org/Multiarch/HOWTO

    but we're concerned with installing the capabilities... it appears that you're running debian stretch... is this right? if so, here's how you install 32bit capability for it...

    Okay, I followed the instructions that you gave regarding installing those capabilities:
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6-i386

    And when I try to run things now I'm getting a segfault. No information other than the fact that it's starting correctly (ie creating symlinks for drive_c & drive_z), and then 'Segmentation fault'.
    I went through the ldd output of bin/dosemu.bin above and searched for all of the linkings. I wasn't able to find linux-gate.so.1 anywhere, but everything else seems to be where it should. I was unable to find a package that contains linux-gate.so.1.
    Any more ideas at this point? FWIW I greatly appreciate your troubleshooting this with me. My apologies at needing someone to take me by the hand, it's been awhile since I've done any digging into binaries like this.
    Thank you!

    BUT! the dosemu i'm using is a 64bit binary as shown in my example output in that previous message... it would probably be easier if you can locate a 64bit binary of dosemu for your system... if there isn't one, maybe find out if you can easily compile one on your system... if you can then maybe consider going that way...

    I'll see if I can find source for the same version of dosemu that was in the dosemu-freedos (or whatever it was named) packages there and get it compiled as a 64-bit. Wish me luck!

    ---
    þ Synchronet þ My Brand-New BBS
  • From Sprite@VERT/TINTETBB to Rampage on Tue Dec 17 15:25:49 2019
    Re: Re: unable to execute dosemu
    By: Rampage to Sprite on Tue Dec 17 2019 09:16:02

    This is unbelievable. I swear I'm not usually this naive on subjects related to general systems administration.
    I tried compiling dosemu-1.4.0 and had to install a few dependencies. That went without any sort of a hitch. Unfortunately, after a bit through the ./configure script it claimed that I don't have an adequate glibc installed:

    configure: error: Sorry, you need glibc-2.1.3 or newer.
    make: *** No rule to make target 'config.status', needed by 'default'. Stop. sprite@diaspora:/usr/local/src/dosemu-1.4.0$

    So I looked for a package containing glibc in order to either verify that my version installed was adequate or to find the package in order to install it. The closest thing that I found was glibc-source. So I installed that, built it (without any problems) and ran 'make install', which ran without any sort of issues. Now I'm still getting the exact same error.
    Not sure where to go with this now. :( Sorry again for the nest o' problems here, and again I really do appreciate the help.

    ---
    þ Synchronet þ My Brand-New BBS
  • From Rampage@VERT/SESTAR to Sprite on Wed Dec 18 07:22:07 2019
    Re: also unable to compile dosemu (was Re: unable to execute dosemu)
    By: Sprite to Rampage on Tue Dec 17 2019 15:25:49


    configure: error: Sorry, you need glibc-2.1.3 or newer.
    make: *** No rule to make target 'config.status', needed by 'default'. Stop.
    sprite@diaspora:/usr/local/src/dosemu-1.4.0$

    hummm... according to https://packages.debian.org/source/stretch/glibc stretch should have glibc v2.24-11 if i'm reading the page properly...

    i'm not sure what you have there...

    but i also found that debian stretch has dosemu as a package already... it is 1.4.0.7... heck, i'm running 1.4.0.8 on my ubuntu system...

    https://packages.debian.org/stretch/dosemu

    perhaps just try the repo version of dosemu?? i'd clean up everything you've already done, though... then

    sudo apt-get install dosemu

    and see how that goes... it should install the 64bit version, i think...


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
  • From Sprite@VERT/TINTETBB to Rampage on Wed Dec 18 14:39:42 2019
    Re: also unable to compile dosemu (was Re: unable to execute dosemu)
    By: Rampage to Sprite on Wed Dec 18 2019 07:22:07

    hummm... according to https://packages.debian.org/source/stretch/glibc stretch should have glibc v2.24-11 if i'm reading the page properly...

    i'm not sure what you have there...

    but i also found that debian stretch has dosemu as a package already... it is 1.4.0.7... heck, i'm running 1.4.0.8 on my ubuntu system...

    https://packages.debian.org/stretch/dosemu

    perhaps just try the repo version of dosemu?? i'd clean up everything you've already done, though... then

    sudo apt-get install dosemu

    and see how that goes... it should install the 64bit version, i think...

    Yeah I don't have dosemu as a package, I tried that before I tried delving into the fun of these binary distributions and source compilations and everything. I'm pretty sure it's not a debian that I'm running, let me check quick here...
    Okay so I think I'm mistaken? I thought it was an ubuntu server version but it appears that it is debian. At least as far as /etc/debian_version is telling me; it reports 9.11. Yeah, /etc/os-release confirms that it's Debian GNU/Linux 9 (stretch). Let me check my package repos...
    Okay so nevermind about all of that junk I was troubleshooting before. I went back and looked on packages.debian.org where you stated and found the package. I've got no idea why it wasn't showing up via my apt searching, I just ended up downloading it from the site there and installed it manually via 'dpkg'. Now things are working properly. :|
    I wonder why that didn't show up in the packages for me. I'm pretty mystified, I've got to say. :P
    Thank you for all the help, I do appreciate the heck out of it.

    ---
    þ Synchronet þ My Brand-New BBS
  • From Rampage@VERT/SESTAR to Sprite on Thu Dec 19 07:00:12 2019
    Re: Re: also unable to compile dosemu (was Re: unable to execute dosemu)
    By: Sprite to Rampage on Wed Dec 18 2019 14:39:42


    Thank you for all the help, I do appreciate the heck out of it.

    not a problem... i'm glad you got it figured out...

    FWIW: it was your uname output that told me you were running a debian... the version number pointed me to stretch ;)


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR