-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD: zrepl status => infocmp not found in $PATH error #428
Comments
I'm not sure I'm following. Did installing the
zrepl doesn't deal with @cobber could you try out #297 ? It's the new status UI which is built using |
Thanks for the quick reply! I'm using the Initially, my I then found your post, noticed that you were checking As for I think that's also the cause, from tcell/terminfo/README.md
Which implies, that since FreeBSD only has As for #297, I don't have a go environment setup - that's beyond me :-( ... but this is quickly turning into a rabbit hole... |
cc @woodsb02 (the zrepl FreeBSD port maintainer): maybe we should just add ncurses as a dependency?
You can use the CI binaries, e.g. https://minio.cschwarz.com/minio/zrepl-ci-artifacts/07f2bfff6a9d9309cceb5bff08921c2958cb414b-pipeline-2111/quickcheck-go-amd64-freebsd-1.16/ Make sure to read 0.3 and 0.3.1 changelog at https://zrepl.github.io/changelog.html |
Thanks for reporting this. I just committed an update to the sysutils/zrepl port on FreeBSD to add ncurses as a runtime dependency. Note that since a new version of zrepl 0.3.1 was committed to the latest ports branch in January, I didn't mark this commit as one to be merged back to quarterly, which has the version 0.2.1 you are using. So this issue should be fixed for you by the first ports run in April, with the workaround being to manually install ncurses until then. Does that work for you @cobber? |
Closing due to inactivity, I assume @woodsb02 's fix will be sufficient. |
When I run
zrepl status
I get the errorexec: "infocmp": executable file not found in $PATH
Platform:
FreeBSD 12.2
Installed via:
pkg install zrepl
(expectation: all dependencies are also installed)After some searching, I finally discovered this comment on issue #204 (already closed) which only mentioned this error as a side-note.
The first solution offered was "install ncurses" followed by "this is an edge case, so I wouldn't add ncurses as a hard dependency of the package on FreeBSD"
huh? "you need ncurses, but ncurses should not be a dependency"?
isn't that a contradiction?
But installing curses is only treating the symptom, it doesn't help identify the problem!
This may be "an edge case", but by not specifying what the expected environment should or could be, it's a pretty bad user experience for anyone who happens to get caught on that edge. (i.e. anyone logging into a server via ssh with the TERM setting for their client terminal - which could be anything!)
The cause, however, appears to be that
zrepl
only has limited$TERM
support.However, this is not documented in the manpage or even https://zrepl.github.io, except for a very indirect hint in the Changelog section where it mentions "zrepl status now supports TERM=screen (tmux on FreeBSD / FreeNAS)".
What other TERM settings are supported? Which TERM settings are not supported? Why does it even fall back to infocmp at all?
If I hadn't noticed the
echo $TERM
lines in @problame's comment, I may never have found the cause.Suggestion:
Provide an error such as: "$TERM=<...> not supported. Please use or install ncurses" if the user's
$TERM
is not set andzrepl status
tries to startinfocmp
and also fails.Of course, some information along those lines in the manpage and/or online documentation would also be very helpful.
Cheers and thanks
The text was updated successfully, but these errors were encountered: