Closed andys8 closed 4 years ago
Hi @andys8 , why did you close this? I have the same problem - what is the solution? Did you just alter the Makefile?
Many thanks, Dom
@DomHudson You should be able to get around this by changing the PREFIX to /usr, ie sudo make PREFIX=/usr install
edit: For context, the error is caused by programs defaulting to an install location of /usr/local (the idea is that packaged programs install to /usr, so unpackaged installs should have a separate location)
I closed this because I wasn't sure if it's my mistake and I started created an st
fork myself so I wouldn't really be able to verify fixes or answer follow up questions. So I closed it to avoid bothering maintainers with it. But it wasn't the best idea that I skipped adding an explanation why I closed it.
@neeasade Cool. Maybe it's worth adding these instructions to the README file.
I switched from a different build of st to xst and I couldn't get it to work properly without setting the termname to st-256color. I installed it from the AUR, the PKGBUILD sets the PREFIX to /usr. In my case I don't know where xst-256color (or xst's st-256color) is if it exists. I think ncurses is using an old terminfo file from my previous build of st. Anyone know where to find the terminfo file? My package manager isn't showing it and I couldn't find it in /usr/share/terminfo/x.
Edit: I found out that I didn't have the terminfo files because the PKGBUILD runs make install
instead of make clean install
. I cloned the repo and ran tic -sx st.info
to generate the xst term info files and now it works fine.
PKGBUILD runs make install instead of make clean install
fixed
For some reason terminfo files still aren't generated. I don't know why because the tic call is in the install target in the makefile and I have tic in my path. The readme says to make clean before installing which the PKGBUILD does. Everything works after running sudo tic -sx st.info
.
Running st
If you did not install st with make clean install, you must compile the st terminfo entry with the following command:
tic -sx st.info
See the man page for additional details.
EDIT: terminfo files were generated by the PKGBUILD locally at ~/.terminfo/ instead of /usr/share/terminfo/
terminfo files were generated by the PKGBUILD locally at ~/.terminfo/ instead of /usr/share/terminfo/
pkgbuild runs only make
commands, so the Makefile should be fixed for that
I tested revision 11, it generates the terminfo files at /usr/share/terminfo. I had to delete existing xst terminfo files I generated with tic at /usr/share/terminfo to install with PKGBUILD.
Issue
After cloning the repository and running
sudo make install
.terminfo is copied to
/usr/local/share/terminfo
. All other terminfo is in/usr/share/terminfo
System
Mint 19.1 tessa, fish, version 3.0.2
Result
(not sure if
xst-256color
orst-256color
is the right choice)But maybe this is expected or a system setting I'm not aware of :)