I would like to install SwayWM on my Zorin 16 machine. To do that I need to compile wlroots and sway with meson and ninja. I ran into the problem that the version available through apt (0.53.2) is not the one required to perform the installation; 0.59.0 (or above) is.
What is the correct way to update to/install a newer version of meson in my case?
I have uninstalled the apt version, and reinstalled it with pip3
Through both these commands: pip3 install --user meson
and sudo pip3 install meson
(I read I wouldn't be able to run sudo ninja commands if I did not install it with sudo pip3
as well)
I have added export PATH=$HOME/.local/bin:$PATH
to my .profile
but I still get errors like this when running ninja -C build
:
/bin/sh: 1: /usr/bin/meson: not found
FAILED: build.ninja
/usr/bin/meson --internal regenerate /home/user/.sway-build/wlroots /home/user/.sway-build/wlroots/build --backend ninja
ninja: error: rebuilding 'build.ninja': subcommand failed
meson was installed to ~/local/bin
and /usr/local/bin
on my machine. I think it is looking for meson in the wrong folder?
Am I doing something wrong? Pointers would be greatly appreciated.
BTW this is the procedure I am (trying to) following.