每当我尝试运行bundle install时,Bundler :: GemfileNotFound

Bra*_*iam 7 ruby bundler

我正在使用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.
Run Code Online (Sandbox Code Playgroud)

我继续跑,bundle install但随后出现Bundler::GemfileNotFound错误.

Kali默认使用ruby,用于使用宝石.该软件不需要任何其他软件包,但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
Run Code Online (Sandbox Code Playgroud)

Aje*_*jey 20

当我试图在bundle install没有意识到我不在项目目录中时,我遇到了同样的问题.确保您位于当前项目目录中.


Bra*_*iam 2

问题是,由于某些奇怪的动机,Ruby 没有检测到bundler已安装,尽管包管理器是这么说的。

$ apt-cache policy bundler
  bundler:
Installed: 1.3.5-2
Candidate: 1.3.5-2
$ bundle --version
Bundler::GemfileNotFound
Run Code Online (Sandbox Code Playgroud)

我只需在工具根路径中以 root 身份运行,一切就都正常了gem install bundlerbundler install