简体   繁体   English

每次我在窗口上打开终端时都会出现`-bash: rbenv: command not found`。 我该如何解决?

[英]`-bash: rbenv: command not found` comes up every time I open a terminal on window. How do I fix this?

I have this bash: rbenv: command not found thing always coming up on my terminal whenever I open it and they appear four times as shown below.我有这个bash: rbenv: command not found东西总是出现在我的终端上,每当我打开它时,它们会出现四次,如下所示。

I am using windows, please, how do I fix this?请问我用的是windows,怎么解决? All solutions I have researched are tailored toward MacOs.我研究过的所有解决方案都是针对 MacO 量身定制的。

bash: rbenv: command not found
bash: rbenv: command not found
bash: rbenv: command not found
bash: rbenv: command not found

I am using windows, please, how do I fix this?请问我用的是windows,怎么解决? All solutions I have researched are tailored toward MacOs.我研究过的所有解决方案都是针对 MacO 量身定制的。

The error is coming from bash , a Unix shell.错误来自bash ,一个 Unix shell。 It's unclear how that's running on Windows (perhaps Windows Subsystem for Linux?) but the MacOS (really Unix) instructions should work.目前还不清楚它是如何在 Windows 上运行的(也许是 Linux 的 Windows 子系统?),但 MacOS(真正的 Unix)指令应该可以工作。

Presumably you installed rbenv in this Unix on Windows environment at some point and now it's gone.大概你在某个时候在这个 Unix on Windows 环境中安装了rbenv ,现在它已经消失了。 If you want it back, install it again .如果您想恢复它,请重新安装它

If you want it gone, follow the uninstall instructions .如果您希望它消失,请按照卸载说明进行操作 rbenv will add a line rbenv init to your shell startup configuration files. rbenv会将一行rbenv init添加到您的 shell 启动配置文件中。 In bash, look at your .bashrc and .bash_profile files in your home directory and remove anything to do with rbenv .在 bash 中,查看主目录中的.bashrc.bash_profile文件并删除与rbenv的任何内容。

If you don't know how to use bash, see Introduction to Bash for more.如果您不知道如何使用 bash,请参阅Bash 简介了解更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM