Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

tried this doesn't work do i need some specific zig version?


0.13.0

https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37...

The full script is pretty much:

$ wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0....

$ tar xvf zig-linux-x86_64-0.13.0.tar.xz

$ git clone git@github.com:ghostty-org/ghostty.git

$ cd ghostty

$ ../zig-linux-x86_64-0.13.0/zig build -Doptimize=ReleaseFast

$ ./zig-out/bin/ghostty


Looks like there are a few deps needed:

  sudo apt install libgtk-4-dev libadwaita-1-dev git
Otherwise you'll get this error:

  error: unable to spawn glib-compile-resources: FileNotFound
  Build Summary: 78/83 steps succeeded; 2 failed (disable with --summary none)
  install transitive failure
  └─ install ghostty transitive failure
     └─ zig build-exe ghostty ReleaseFast native transitive failure
        ├─ run glib-compile-resources (ghostty_resources.c) failure
        └─ run glib-compile-resources (ghostty_resources.h) failure
  error: the following build command failed with exit code 1:
  /home/tlhunter/Downloads/ghosttty/ghostty/.zig-cache/o/57acb02f2b1ccf1b03b9597a8c5f2d09/build /home/tlhunter/Downloads/ghosttty/zig-linux-x86_64-0.13.0/zig /home/tlhunter/Downloads/ghosttty/ghostty /home/tlhunter/Downloads/ghosttty/ghostty/.zig-cache /home/tlhunter/.cache/zig --seed 0xb4306e7d -Z11426c6f3a70c8b9 -Doptimize=ReleaseFast
```

I'm quite surprised they don't provide a .deb package as that checks off 90% of Linux users.


It's uncommon for upstream to provide .deb packages. That's not really how it's supposed to work. The Debian community creates Debian packages. Upstream's job is only to avoid making the Debian community's job more difficult than necessary. Unfortunately due to the decisions made by various popular Linux projects (mainly an obscene obsession with dynamic linking), it's not really feasible for upstreams to provide GUI applications on Linux. I hope someday this can change, but realistically there's not enough effort being put towards this goal.


Good point. I’m on pacman, but I remember installing adwaita last year when I started using Ghostty.


Funny to see a "doesn't work" response even on Hacker News, with no details or error messages.


Zig 0.13 is required according to https://ghostty.org/docs/install/build


It also seems to need a fairly new gtk4. At least the version in Ubuntu 22.04 is too old.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: