Can’t run ”gem install bundle’ in git bash terminal

僤鯓⒐⒋嵵緔 提交于 2019-12-21 02:59:10

问题


I'm new to Web development with Sinatra. I've been trying to run bundle install command in git-bash terminal, but it's says that:

I've then tried to install bundler but then I'm kept getting this error:

I can't even run gem install bundler command in git-bash terminal. Please tell me what to do ??

I'm working on windows 7 x64bit system.


回答1:


Make sure that:

  • ruby for Windows is installed
  • your %PATH% is modified to reference ruby (Advanced System Settings / Environment Variables / System Variables / Path: enter: C:\Path\to\Ruby\bin;)
  • rubygem is installed. (If you use rubyinstaller, that should be already the case)

Then open a new CMD session, and type bash (the bash from Git should open).
Then ruby should be available, including gem.



来源:https://stackoverflow.com/questions/41083819/can-t-run-gem-install-bundle-in-git-bash-terminal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!