# Pebble SDK won't build under WSL2?

**URL:** <https://forum.repebble.com/t/pebble-sdk-wont-build-under-wsl2/317>\
**Category:** Watchapp/Face Developers Corner\
**Created:** [February 25, 2026, 10:56pm UTC](https://forum.repebble.com/t/pebble-sdk-wont-build-under-wsl2/317 "2026-02-25T22:56:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastastealth](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.repebble.com/mastastealth/32/257_2.png) [@mastastealth](https://forum.repebble.com/u/mastastealth)\
**Post date:** [February 25, 2026, 10:56pm UTC](https://forum.repebble.com/t/pebble-sdk-wont-build-under-wsl2/317/1 "2026-02-25T22:56:48Z")

</div>

Has anyone tried to install the SDK under WSL2? I can get through all the steps but when I build a freshly made Alloy app I immediately get this:

```auto
Running Moddable prebuild.
Running mcrun -m ./src/embeddedjs/manifest.json -f x -p pebble/emery -t build -o ./build/mods/emery/mcrun -s tech.moddable.pebble

-p pebble/emery

Error in Moddable prebuild: [Errno 2] No such file or directory: ‘./build/mods/emery/mcrun/bin/pebble/release/embeddedjs/mc.xsa’

```

---

<div class="post-metadata">

**Author:** ![Flynn](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.repebble.com/flynn/32/73_2.png) [@Flynn](https://forum.repebble.com/u/Flynn)\
**Post date:** [February 25, 2026, 11:08pm UTC](https://forum.repebble.com/t/pebble-sdk-wont-build-under-wsl2/317/2 "2026-02-25T23:08:02Z")

</div>

There was one person that had the same issue, their solution was to set it up in a regular Linux installation then copy over all the files 😅 what happens if you uninstall the SDK and install it again?

---

<div class="post-metadata">

**Author:** ![nzbr](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.repebble.com/nzbr/32/745_2.png) [@nzbr](https://forum.repebble.com/u/nzbr)\
**Post date:** [June 28, 2026, 11:54pm UTC](https://forum.repebble.com/t/pebble-sdk-wont-build-under-wsl2/317/3 "2026-06-28T23:54:39Z")

</div>

I ran into the same problem and it turned out to be missing dependencies for me.  
If the `make` command is missing on the system, the build will fail with exactly this error. After installing the basic development tools / C(++) SDK on my distro, I am now able to build my watchface.

On openSUSE that was  
`sudo zypper install -t pattern devel_basis`

If you’re on Debian or Ubuntu, the equivalent would be  
`sudo apt install build-essential`

---

<div class="post-metadata">

**Author:** ![Staindk](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Staindk](https://forum.repebble.com/u/Staindk)\
**Post date:** [June 29, 2026, 9:01pm UTC](https://forum.repebble.com/t/pebble-sdk-wont-build-under-wsl2/317/4 "2026-06-29T21:01:42Z")

</div>

Don’t believe you have the same issue I had - but maybe this still helps you or someone else.

I couldn’t build apps via WSL the other day, turns out my WSL itself needed to be updated.

I believe I just ran `wsl --update` in CMD and when I launched WSL again everything pretty much worked.
