-
Notifications
You must be signed in to change notification settings - Fork 420
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
I get error 127 when trying to install. #67
Comments
I am using cygwin and had the same problem. This worked for me:
|
@vascoosx can you explain why? |
@jbnicolai I do not know. |
I get the same error, It doesn't seem to download the plugins at all. Weirdly it seems to work normally on babun, don't know what they are doing differently... Edit: The only difference I can see is that cygwin's tmux is 64bit while babun's is 32bit. |
For everyone get 127 error, make I'm using a mac, and install tmux use homebrew, it will be installed at
|
I too was having this issue on OpenBSD 5.9 and 6.0 on 64bit. For me this was as simple as installing bash as only sh is installed by default. |
In newer versions of macOS you can't write to
For anyone else having this problem you need to reboot your mac and press ⌘+R when booting up. Then go into Utilities > Terminal and type the following commands:
This is a result of System Integrity Protection. And it is not recommended to disable it. |
@luisdavim did you find any other workaround or is disabling the System Integrity Protection the only solution? |
@smurex I've got this fixed. This problem is because tmux's A better solution is shown the next comment, please ignore this one.
|
A better way to get around with this is to insert the following line:
before the first |
See issue tmux-plugins#67 for more discussion
@shouya is this solution supposed to work if we add the line at the top of |
@akashagarwal7 You might need to restart tmux server for the changed config to apply. |
I too have got a 127 error, but that is solely due to my mistake: I did not fetch the
|
@akashagarwal7 make sure you do not have |
I'm getting this on OpenBSD 6.5 with the OpenBSD stock tmux. The reason is because this runs $HOME/.tmux/plugins/tpm which runs $HOME/.tmux/plugins/scripts/check_tmux_version.sh. That script contains at call to tmux -V on line 52. The OpenBSD version of tmux does not have the -V flag. Not sure of the right solution though, still too new to tmux to know if the OpenBSD version has the features you require. |
I can finally use tmux-fingers again! I was getting `'~/.tmux/plugins/tpm/tpm' returned 127` when source the tmux.conf but it was just because I'm stupid. tmux-plugins/tpm#67 (comment) solved the issue. Note that this actual `-b` change is just copied from https://github.com/tmux-plugins/tpm instructions and haven't checked if it makes any difference. I also took the chance to upgrade all plugins.
Cygwin users: You can get further insight by executing the installation script directly with Looks like there was a possible conflict between "Git for Windows" and Git through Cygwin's package manager. I resolved this problem by adding the Finally, I still get code 127 by pressing
Possibly related is the space in my user profile path? |
I got the error simply because of wrong path |
I have the same problem, verify if the ~/.tmux/plugins/tpm exist or clone it. |
this problem still exists (at least in my machine), tmux 3.1c, zsh 5.3, macOS Mojave, and cloning the non-existing tpm plugin fixed it! |
Thanks for the suggestion. Unfortunately that doesn't resolve the issue on Cygwin. |
If you are using Homebrew >3.0.0, you'll need to add this to your
Notice |
Fixes from: - tmux/tmux#754 - tmux/tmux#1689 - tmux/tmux#230 - tmux-plugins/tpm#67 (And probably others...)
Hello! I still have this error.
|
Does the path to your home directory have any spaces? |
|
I should have mentioned earlier, this is in hyper terminal as well as macOS terminal |
As a testament to how good this plugin manager is, I rarely have to deal with it. As a result, I seem to have forgotten a few things when getting my MI MacPro up and running. The mistake was evident when I got the Just to share what I should have remembered to perhaps benefit the next:
The command generates a message with a list of all of the installed plugins, and an option to update any one of them by name or "all". You may need to run this twice in order to get the full list. pdating all plugins! [0/0]
"tmux-yank" update success
"tmux-resurrect" update success
"tmux-sensible" update success
"tmux-battery" update success
"tpm" update success
TMUX environment reloaded.
Done, press ENTER to continue. I hope this helps. |
Moved to WSL2 with Ubuntu-20.04 This is my environment: > tmux -V
tmux 3.0a This is my TPM config in
This is what I get when running the install script:
This plugin manager never worked for me. |
Hi, I recently had a similar issue in WSL2 with Ubuntu-20.04. Reloading the tmux config was giving me the original error from this issue:
In my case, it turned out that the problem was not with tpm itself, but with my git configuration.
I tried to execute any of them manually, and I realized they were all failing for the same reason: they had CRLF endings. I have "autocrlf = true" in my .gitconfig. Changing the value isn't an option for me, so I changed my git attributes file instead: ~/.gitconfig
~/.config/git/gitattributes
After deleting all my plugins and using tpm to download them again, everything worked perfectly. I didn't even need to keep the line "set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"" in my tmux.conf. I hope this helps. |
I got the same error on Debian. |
See issue tmux-plugins#67 for more discussion
this operation solved my 127 error, but then I have a 1 error
|
Just tried installing TPM from a fresh FreeBSD 13 installation, using |
This was my issue -- Thank you! |
@devnoot i get the same issue, can u share any solution ?? |
@kamalkech see @sarahlagh 's comment and check your git settings. I fixed my issue by removing the |
@devnoot i get the same issue, add code |
im on wsl ubuntu 22.04 tmux: 3.3a and my tmux confix whenever i source/restart tmux gives me 127 error but i dont really have anything in it besides this
and it doesnt allow for gaps in the conf at all |
I ran into this issue on OpenWRT. Turns out tpm needs bash to function since it is a bash script, just install bash even if you don't use it yourself. |
Same issue, whether I have plugins referenced or not, always getting error 127. Recently upgraded to Ubuntu 22.04.2 LTS for WSL2 I'm almost certain that's the issue but no solutions referenced here fix the issue. Edit of shame: although I thought my ansible script had cloned the tpm repo, it hadn't, I simply didn't have tpm cloned... |
Hi, I encountered the same problem when I install tpm via home-brew in my MacBook (macOS 13.5) last night. I solved my problem by including
inside my However, there were some unusual things happened when I was configuring my tmux. The first thing was that if I did not include |
Hi I encounted the problem using WSL windows running Ubuntu. I am not exactly sure how I solved the issue but it was a combination of running the following:
Then if the some plugins appear installed then, I tried to create a symbolic link as per @wd first comment
Then I noticed that I get an "tmux tpm returned 1" Next I checked since running WSL that git is installed on the Ubunutu instance and then installed git using homebrew. I then removed the symbolic link and checked again if the plugins could be installed or not
After this I then changed the run command at the bottom of the .tmux.conf After doing all these steps tom stopped returning 127 and stopped returning 1. |
Had this issue recently. I tried a number of solutions listed here but none worked. I had to kill all running tmux sessions with |
I had this issue on M3 MacOS 14.3.1 |
I'm kind of stuck in this. I'm using MacOS 14.3.1 with iTerm2 and tmux 3.3a. I've tried all the solutions above, including the last one that should perfectly fit my case, without success (although the last one from @ArykLAnderson is the one that produced some improvement). I'm at the point where my configuration correctly reloads and installs the plugins (but I'm not sure if this really worked, as I have a theme installed but it doesn't show up), but then, if I try to reload it again or I open a new session, I get:
I would like to avoid uninstalling and reinstalling iTerm2, and I think this should be fixable even without uninstall/reinstall stuff. Clearly there's something in my setup that doesn't work or I did something wrong at some point. Does anyone have any advice for me? Here is my
Thanks a lot! |
for Chimera Linux I need to install |
Installed by tmux and tpm via homebrew on a 2021 M1 Mac. When trying to run Just wanted to throw in another experience in case it helps. |
I am using WSL Ubuntu and I felt like I tried everything... In the end changing the path in the conf (run '$HOME/.tmux/plugins/tpm/tpm') worked. So glad. |
I encountered this again after setting up on a new computer and I found that I had blindly copied the instructions to clone the tpm repository to |
Pressing
prefix + I
gives me this message:I have the prerequisites installed
This is my tmux.conf
The text was updated successfully, but these errors were encountered: