我正在使用 kali-linux(Linux 发行版女巫是 Back-Track 的延续,基于 Ubuntu,只是现在基于 Debian wheezy)进行一些渗透测试。一切正常,直到我决定更新我的系统工具。现在,每当我尝试运行基于 ruby 的工具时,它都会给我带来麻烦:
Could not find gem 'ruby-progressbar (>= 1.1.0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
我继续运行 bundle install
但随后出现了 Bundler::GemfileNotFound
错误。
Kali 默认使用 ruby,用于使用 gems。该软件不“需要”任何其他软件包,但 ruby 似乎没有针对手头的问题进行完全配置/安装。
$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux]
$ rvm
bash: rvm: command not found
$ rbenv
bash: rbenv: command not found
最佳答案
当我尝试 bundle install
时遇到了同样的问题,但没有意识到我不在项目目录中。确保您位于当前项目目录中。
关于ruby - Bundler::GemfileNotFound 每当我尝试运行 bundle install,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17539636/