Help: tmux binary with bin-gem-node #391
-
I recently updated all my plugins to use bin-gem-node for the convenient shims. However, I'm having a lot of different issues with tmux. The original line was
This still works fine. However, it seems like it's recommended to move to an updated syntax that uses the
With
and they all give some form of error. In the Recipes for popular programs Wiki, the command they give is
However, this immediately runs into an error with not finding the right version. Deleting the Question 1: What's the point of the complicated tmux recipe? Is there any advantage of compiling from scratch? |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 3 replies
-
Hi @albertfgu, Those are good questions and I can provide answers since I have added all the recipes.
The recipe compiles Tmux because the binary provided does not support macOS. Additionally, compiling Tmux takes a relatively short time, so I chose to add a recipe that would work for more users. Finally, I couldn't find a repository with pre-compiled macOS binaries.
Let me get back to you on this in a day or two. |
Beta Was this translation helpful? Give feedback.
-
I see, thanks! However, as mentioned in the original post I thought that the command
does actually still work and grab a correct binary on macOS. It just doesn't use the sbin shim, which I can't figure out how to do. |
Beta Was this translation helpful? Give feedback.
-
@albertfgu, We recently added a zinit for \
as'null' \
configure'--disable-utf8proc --prefix=$PWD --quiet' \
make'PREFIX=$PWD --quiet install'\
sbin \
@tmux/tmux |
Beta Was this translation helpful? Give feedback.
-
@albertfgu Pinging |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response and sorry for the delay in following up! On one of my computers, the new command works beautifully. Thanks a lot! On my other computer however (macOS Monterey 12.6.1, it's still being set up but I'm not sure which programs if any are missing...), I'm running into an error:
I also noticed that on this computer, |
Beta Was this translation helpful? Give feedback.
-
@albertfgu I think youre missing Try running: sudo xcode-select --install It'll install or output the following: ᐳ sudo xcode-select --install
Password:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates If you get the above, if you use Homebrew, you can run: brew install pkg-config |
Beta Was this translation helpful? Give feedback.
-
I followed that and also had to |
Beta Was this translation helpful? Give feedback.
-
Glad it works for you now. Thanks for using Zinit! |
Beta Was this translation helpful? Give feedback.
-
I recently tried installing on a new Linux machine and ran into the following output:
All the output messages are warnings, so I would have expected it to still compile, but it seems to hang here. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Sorry for not clarifying, I used the exact same command that @vladdoster showed above:
|
Beta Was this translation helpful? Give feedback.
-
Try the following: zinit for \
as'null' \
configure"--disable-utf8proc --prefix=$ZINIT[PLUGINS_DIR]/tmux --quiet" \
id-as \
make"PREFIX=$ZINIT[PLUGINS_DIR]/tmux --quiet install"\
lbin'!' \
@tmux/tmux Context about the ices used:
If you are interested, @psprint and I don't quite agree on whether to use the plugin dir or $ZPFX as the prefix. See #458 for details. IMO, it makes cleanup much more straightforward and ensures $ZPFX is not polluted with random compilation artifacts. Chime in if you have any opinions. |
Beta Was this translation helpful? Give feedback.
-
I tried this command on a new machine and ran into the following message, which seems to have crashed my connection to the machine as well
|
Beta Was this translation helpful? Give feedback.
-
As of v3.13.0, if [[ $OSTYPE =~ 'darwin*' ]]; then
zinit configure'--disable-utf8proc' make for @tmux/tmux
else
zinit build for @tmux/tmux
fi |
Beta Was this translation helpful? Give feedback.
@albertfgu, We recently added a
configure
ice, so this works: