|
Forum Index : Microcontroller and PC projects : MMBASIC on Raspberry PI
| Author | Message | ||||
| GrahamC Newbie Joined: 20/04/2026 Location: CanadaPosts: 3 |
Good day all, I know this subject has been discussed before and there are existed topics on the subject, namely: https://www.thebackshed.com/forum/ViewTopic.php?TID=9487 and it's continuation here: https://www.thebackshed.com/forum/ViewTopic.php?TID=9823 Plus other bits and pieces scattered about in various discussions. However, I have been trying to get MMBASIC working on a Raspberry Pi. The biggest stumbling block is that I keep getting a "bash: ./mmbasic: cannot execute: required file not found" error. Tried on both an older RPi 3B and much newer RPi 5 OS in both cases is the latest 64bit Raspberry PI OS LITE based on Debian Trixie. pigpio has been successfully installed, expect I get an error with the RPi 5 in that pigpio does not recognize the RPi 5 as a Raspberry Pi. Not a big deal as I will sort that out later. In the meantime I have been concentrating on the RPi 3B. I have latest ( I think ) MMBASIC image from the second of above noted topics, specifically 2017-09-22_142121_mmbasic.zip So, still scratching my head, what "required file not found" is missing? Will I need to go back to using an older 32bit Rasperry PI OS? I have been messing about with MMBASIC on a PI PICO since I first discovered this a number of years ago and am hoping I can get it working on a bog standard RPi 3 or RPi 5. Although, I might also consider a PI ZERO but first I want to use what I have on hand. cheers, Graham |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1848 |
If you hit a road block, I can recommend SmallBASIC It's a really nice BASIC but nowhere near the support that we have with MMBasic. |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4302 |
Do check whether pigpio is available or at least exactly which OS versions it works with. For already-compiled MMBasic maybe see output from ldd to see what libs it wants. If it happens to want older libs than you have, you may be able to get away with symlinks to the ones present on your OS. If you can, build it from source? It's my impression that various developers have omitted to stick with the original design philosophy of shared libs and instead had a go at replicating DLL hell, with far too much success... John Edited 2026-04-20 23:31 by JohnS |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3742 |
Why wouldn't MMB4L work for you? I haven't tried it lately, but in the past I have had it run on a Pi Zero. This is not a full PicoMite MMBasic, and it especially lacks pin control other than through the deprecated sysfs method with SYSTEM calls or the not integrated into MMB4l libgpiod. (Latest Raspbian (or whatever it's called now) is supposed to have the latest libgpiod.) PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| GrahamC Newbie Joined: 20/04/2026 Location: CanadaPosts: 3 |
That was fast, a handful of helpful suggestions. ldd wasn't helpful but objdump -p mmbasic | grep NEEDED provided this list of needed libs NEEDED libm.so.6 NEEDED libncurses.so.5 NEEDED libtinfo.so.5 NEEDED libpigpio.so NEEDED librt.so.1 NEEDED libpthread.so.0 NEEDED libc.so.6 which are all available on my RPi 3B except libncurses.so.5 and libtinfo.so.5 but I do have libncurses.so.6.5 and libtinfo.so.6.5 for which I have created symlinks for the .so.5 versions pigpio compiles and install without issue and pigpiod starts and runs. Still no luck. Still getting that "required file not found" error. I know there are other options with respect to getting a BASIC running on the RPi but it would have been really nice to get MMBASIC running. And of course the question is always "Why bother?" Well, I do like MMBASIC and it has proven very handy on the PI PICO. Perhaps I should explore MMBASIC on the PI PICO 2W rather than mess around with the RPi 3B. Nothing specific in mind, it is just something that caught my fancy and once I got started I just find myself a bit obsessed with getting running. cheers, Graham |
||||
| GrahamC Newbie Joined: 20/04/2026 Location: CanadaPosts: 3 |
I think perhaps I need to take deeper look at mmb4l https://github.com/thwill1000/mmb4l/blob/main/README.md#2-how-do-i-install-it- cheers, Graham |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1848 |
Don't forget that we also have the CMM2 (nice!) |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |