Hi All
With respect to https://forums.opensuse.org/t/where-is-ghostty/190930 if your interested this is how I built ghostty from source and installed into my user environment;
I did need to install blueprint-compiler and gtk4-layer-shell-devel, depending on your environment there may be others needed.
mkdir ghostty-build
cd ghostty-build
curl -o zig.tar.xz -L https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz
tar xf zig.tar.xz
git clone --depth 1 --branch tip https://github.com/ghostty-org/ghostty
cd ghostty/
../zig-x86_64-linux-0.15.2/zig build -p $HOME/.local -Doptimize=ReleaseFast \
-Dcpu=baseline \
-Dpie=true \
-Dstrip=false
Once build/install is finished, I then edited my ~/.bashrc and added;
##Ghostty shell integration for Bash. This should be at the top of your bashrc!
export GHOSTTY_RESOURCES_DIR=~/.local/share/ghostty
## ncurses: cannot initialize terminal type ($TERM="xterm-ghostty"); exiting
export TERM=xterm-256color
Created a simple config file;
## Config file
cat ~/.config/ghostty/config.ghostty
font-family=Adwaita
font-style=Mono
font-size=14
background-opacity=.85
shell-integration=bash
Open a terminal and launch, mainly to see output that all is functioning as expected, a desktop menu item should also be present.
Ref: https://codeberg.org/dode_badenov/ghostty-build-guide-tumbleweed
4 Likes
In your repo, you mention that the URL to fetch ghostty 1.2.3 returns a 404. The same day I opened my question, I built ghostty 1.2.3, and I just checked again and it seems like ghostty 1.2.3 is still available to be downloaded
Obviously, it’s possible that when this repo came into being 4 days ago, ghostty’s website was down or something, or that you were using the wrong URL. I can’t say because what URL you tried isn’t in the README.
wget https://release.files.ghostty.org/1.2.3/ghostty-1.2.3.tar.gz
That will make ghostty-1.2.3.tar.gz in your current directory.
The rest of the installation directions are the same, except that ghostty 1.2.3 won’t build with Zig 0.15.2, instead you need 0.14.1
@Akatama The developers use specific zig versions, so very hard to use the distribution versions as they are out of sync. To me if folks really want a specific version then building from source seems an easier solution…
Regarding what is available in repositories, what ever previously was built and published remains, unless the maintainer deletes binaries. So if a newer version fails to build, then the older published version will remain in the repositories.
I was referring to this statement in the repo you linked
At the time of writing, Ghostty version 1.2.3 cannot be built as the process involves fetching a URL which returns 404, thus this guide is for the tip branch.
The URL doesn’t return a 404, or at least doesn’t right now.
Anyway, the ghostty build was fixed by Marcus Rueckert on Build Service.
Strangely, the build is still showing as failed for OpenSUSE_Factory, but if you do this:
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:zig/openSUSE_Tumbleweed/devel:languages:zig.repo
Followed by this:
sudo zypper in ghostty
It will work. I had already built ghostty from source, but it was easy enough to remove all of the references so I could use this version. It was the same one I built, but I prefer to use the openSUSE repos if I can.
FWIW, I worked on getting the unstable / tip release working on OBS: https://build.opensuse.org/package/show/devel:languages:zig/ghostty-unstable
Ghostty recently started locking zig versions even to the minor release which makes it more difficult to package properly. Their next release is targeted for March so hopefully the latest release can get in the regular repos after that
1 Like