Page 1 of 1

Linux version of ZX-IDE

Posted: Sat Oct 12, 2024 12:35 am
by David G
getting error message "command not found" when trying to execute FASM on Ubuntu WSL. Apparently there are many things that can cause this message in Ubuntu :) help ...

Code: Select all

dd@DESKTOP-7ADGKLL:/mnt/c/fasmw-zx/LINUX$ FASM
FASM: command not found
FASM is an ELF executable, so I think it should execute

Code: Select all

dd@DESKTOP-7ADGKLL:/mnt/c/fasmw-zx/LINUX$ file FASM
FASM: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, no section header
As you can see from that message, FASM does exist in the directory. I installed the 32-bit support but the message does not change. Install first libc6, with no change, then libc6-i386


This executable FASM is from PokeMon:
PokeMon wrote: Fri May 09, 2014 9:40 pmYou could load the source here:
http://board.flatassembler.net/topic.php?t=15062

... see attached file which contains a source.tar which contains the executable and the library (and source as well).
...

Re: Linux version of ZX-IDE

Posted: Sat Nov 16, 2024 9:45 am
by PROSM
On Ubuntu, for executables that aren't installed in the system path, you have to explicitly state which directory the executable is in. For example, if you're in the same folder as the executable, you type:

Code: Select all

./FASM
where "./" means "this directory".

Remember also that Ubuntu is case-sensitive, unlike Windows where you are free to mix capital letters and lowercase letters, so you must type in the program name exactly as it is on disk.

This is something that has tripped a lot of people up (including myself :) ) when they have tried moving from Windows to Linux.

Re: Linux version of ZX-IDE

Posted: Sat Nov 16, 2024 7:52 pm
by David G
Thank you

That solved the getting-started-with-FASM problem

Code: Select all

dd@DESKTOP-7ADGKLL:/mnt/c/fasmw-zx$ FASM
FASM: command not found

dd@DESKTOP-7ADGKLL:/mnt/c/fasmw-zx$ ./FASM
flat assembler  version 1.71.01m.Z80 02/2014 >> Zilog Z80 instruction set + ZX-BASIC + C <<
usage: fasm <source> [output]
optional settings:
 -m <limit>    set the limit in kilobytes for the available memory
 -p <limit>    set the maximum allowed number of passes
 -s <file>     dump symbolic information for debugging

PROSM wrote: Sat Nov 16, 2024 9:45 am On Ubuntu, for executables that aren't installed in the system path, you have to explicitly state which directory the executable is in. For example, if you're in the same folder as the executable, you type:

Code: Select all

./FASM
where "./" means "this directory".