mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.7k stars 705 forks source link

[QUESTION] Text file busy make: *** [Makefile:181: install] Error 1 #5162

Open nonumeros opened 2 months ago

nonumeros commented 2 months ago

Question

The latest installation of kak would not let me continue and returned a

cp: cannot create regular file '/usr/local/bin/kak': Text file busy
make: *** [Makefile:181: install] Error 1

All the kak sessions had to be killed off before continuing with the installation. (Thought of mentioning it as it hadn't happened before. This is the first time actually).

Screwtapello commented 2 months ago

"Text file busy" is the standard POSIX error for when something tries to write to a program while it's running, or run a program while it's being written to.

make install might be able to work around this by using cp -f (which will delete the destination file and try again), but in general it's a bad idea to have version mismatches between Kakoune clients, Kakoune servers, and the standard library. Quitting all Kakoune sessions before an upgrade is a much better way to go about it.