Ubuntu 22.04 - trying to run emulator

I am trying to run the emulator locally.

git clone https://github.com/Moddable-OpenSource/pebble-examples.git
cd pebble-examples/hellopebble/
pebble build
pebble install --emulator basalt

but I’m getting an error:

$ pebble install --emulator basalt
Couldn't launch emulator:
qemu-pebble: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by qemu-pebble)

versions:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

$ pebble --version
Pebble Tool v5.0.29 (active SDK: v4.9.127)

It worked for me previously on Ubuntu 24, but unfortunately I had to downgrade/re-install to Ubuntu 22 because of some issue with my computer freezing pretty constantly.

A bit of googling says, it might be possible for yous to release a versionless file:

https://old.reddit.com/r/linux4noobs/comments/1bycyya/running_into_a_version_glibc_238_not_found_error/kyiwprw/

Or I’m also open to self-compiling the SDK or whatever on my local machine but I would need clear steps.

Or I’m also open to using a Dockerfile that uses Ubuntu 24 but I didn’t figure out how to do that.

1 Like

Are you running Ubuntu natively? Like, not through WSL? The easiest way in that case will be to set up a Docker container like you said. You could also use Cloudpebble (though the emulator is super slow last I checked), or you can try to diagnose your issues with the computer freezing. Last time I had issues like that I tried upgrading my kernel version and that fixed it. I think I also ended up switching to Fedora after a while and that defaulted to the higher kernel version. But it really depends on what your specific issue was :person_shrugging:

2 Likes

Hi Flynn, thanks for your help.

In the end, I did a total install-over of Ubuntu 24. (so making an install USB, and installing over my system partition.)

All I can say, is for my Dell laptop it was pretty glitchy, but I then tried again and unchecked the install third party drivers settings when installing the OS.

from my point of view this thread is finished.

1 Like