6 ms·
$ git clone git@github.com:ghostty-org/ghostty.git $ cd ghostty $ zig build -Doptimize=ReleaseFast $ ./zig-out/bin/ghostty
by mrjbq7 2y ago
$ git clone git@github.com:ghostty-org/ghostty.git
$ cd ghostty
$ zig build -Doptimize=ReleaseFast
$ ./zig-out/bin/ghostty
- beanjuiceII 2y agotried this doesn't work do i need some specific zig version?
- javierhonduco 2y agoZig 0.13 is required according to https://ghostty.org/docs/install/build https://ghostty.org/docs/install/build
- eddythompson80 2y ago0.13.0 https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/build.zig#L30 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.xz 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
- tlhunter 2y agoLooks 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.
- AndyKelley 2y agoIt'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.
- eddythompson80 2y agoGood point. I’m on pacman, but I remember installing adwaita last year when I started using Ghostty.
- autarch 2y agoIt also seems to need a fairly new gtk4. At least the version in Ubuntu 22.04 is too old.
- sundarurfriend 2y agoFunny to see a "doesn't work" response even on Hacker News, with no details or error messages.