Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:35 21 Apr 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBASIC on Raspberry PI

Author Message
GrahamC
Newbie

Joined: 20/04/2026
Location: Canada
Posts: 3
Posted: 01:13pm 20 Apr 2026
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 1848
Posted: 01:24pm 20 Apr 2026
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4302
Posted: 01:29pm 20 Apr 2026
Copy link to clipboard 
Print this post

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 States
Posts: 3742
Posted: 01:43pm 20 Apr 2026
Copy link to clipboard 
Print this post

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: Canada
Posts: 3
Posted: 03:59pm 20 Apr 2026
Copy link to clipboard 
Print this post

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: Canada
Posts: 3
Posted: 04:02pm 20 Apr 2026
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 1848
Posted: 06:32pm 20 Apr 2026
Copy link to clipboard 
Print this post

Don't forget that we also have the CMM2 (nice!)
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026