workers-sdk: 🐛 BUG: Wrangler doesn't work on my system/OS (provide a static build of `workerd`)

Which Cloudflare product(s) does this pertain to?

Wrangler

What version of Wrangler are you using?

3

What operating system are you using?

N/A

Describe the Bug

Collection of issues related to Wrangler not working on specific systems/OSs which will be fixed by providing a static build of workerd.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 8
  • Comments: 31 (6 by maintainers)

Most upvoted comments

Hey everyone! 👋 We’ve just released a new beta version of Wrangler that should improve compatibility. Try it out with npx wrangler@beta dev.

On Linux, libc++ is now statically linked, and we target glibc 2.31 when building. This means any Linux distro providing glibc 2.31 or higher should be supported. The following OSes have been tested:

  • Ubuntu 20.04/22.04
  • Debian 11/12
  • Fedora 37/38/39
  • Arch Latest

Ubuntu 18.04 (which is now end-of-life) and Debian 10 will not be supported.

On macOS, we now target macOS 11 “Big Sur” when building. This means any version of macOS 11 or higher (Big Sur, Monterey, Ventura, Sonoma) should be supported.

I’m going to close this issue now, but please let us know if you encounter any issues. 🙂

@lakano As of this morning, this is no longer true. The default Codespaces image has been upgraded to Debian 12 Bookworm. If you haven’t changed your configuration, you should just be able to run ‘Codespaces: Rebuild Container’, otherwise you can upgrade the base image (usually either VARIANT in devcontainer.json, or by depending on ex. mcr.microsoft.com/vscode/devcontainers/javascript-node:20-bookworm in your Dockerfile).

For example, a minimum Codespaces setup is as follows:

.devcontainer/devcontainer.json

{
  "name": "workerd",
  "build": {
    "dockerfile": "Dockerfile"
  },
}

.devcontainer/Dockerfile

FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:20-bookworm

# Install `libc++-dev` for workerd to work
RUN apt-get update && apt-get -y install libc++-dev
npx wrangler@2.20.0 pages dev ./public ---persist-to ./pages --ip 127.0.0.1  --port 8111

Fedora users can install llvm-libunwind and it seems to fix the issue 😄

https://github.com/cloudflare/workerd/issues/46#issuecomment-1554321869

Hi It does not work either in Fedora Linux 38