Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 计划';gem&x27;可以在以下Windows Bash软件包中找到_Ruby On Rails_Windows 10 - Fatal编程技术网

Ruby on rails 计划';gem&x27;可以在以下Windows Bash软件包中找到

Ruby on rails 计划';gem&x27;可以在以下Windows Bash软件包中找到,ruby-on-rails,windows-10,Ruby On Rails,Windows 10,我已经在WindowsInsiderBuild(UbuntuBash)上通过RVM安装了Ruby。RVM安装成功,ruby也安装成功 我还安装了带有“gem安装bundler”的bundler。更新了一些宝石和东西。但是现在它在ruby-v cooldudeabhi@ACERASPIRE:~$ ruby -v The program 'ruby' can be found in the following packages: * ruby * ruby1.8 Try: sudo apt-ge

我已经在WindowsInsiderBuild(UbuntuBash)上通过RVM安装了Ruby。RVM安装成功,ruby也安装成功

我还安装了带有“gem安装bundler”的bundler。更新了一些宝石和东西。但是现在它在
ruby-v

cooldudeabhi@ACERASPIRE:~$ ruby -v
The program 'ruby' can be found in the following packages:
 * ruby
 * ruby1.8
Try: sudo apt-get install <selected package>
cooldudeabhi@ACERASPIRE:~$ gem
The program 'gem' can be found in the following packages:
 * ruby
 * rubygems
Try: sudo apt-get install <selected package>
cooldudeabhi@ACERASPIRE:~$ 
cooldudeabhi@ACERASPIRE:~$ruby-v
程序“ruby”可在以下软件包中找到:
*红宝石
*卢比1.8
尝试:sudo-apt-get-install
cooldudeabhi@ACERASPIRE:~$gem
程序“gem”可在以下软件包中找到:
*红宝石
*rubygems
尝试:sudo-apt-get-install
cooldudeabhi@ACERASPIRE:~$ 
我怀疑这是一个路径问题,但我不确定它是否真的是?如果是路径问题,我不知道在bashrc文件中设置什么,请告诉我。谢谢

我在stackoverflow上也发现了类似的情况,但在Windows上没有帮助


另外,
/usr/local/bin
为空,这很奇怪

将此行添加到您的配置文件设置(.bashrc或.bash\u profile)

答复引自

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*