开发者

Ruby: strange error while installing the bundler gem

开发者 https://www.devze.com 2023-02-10 10:02 出处:网络
I just wanted to install the bundler gem. I have no problems installing it. But when I install it and hit \"bundle \", I get \"command \'bundle\' not found\". When I then enter again \"gem install bu

I just wanted to install the bundler gem.

I have no problems installing it. But when I install it and hit "bundle ", I get "command 'bundle' not found". When I then enter again "gem install bundler" it installs bundler again, without saying it'd be already installed.

I can install it again and again and again, but cannot use/access it.

I have no clue what'开发者_高级运维s up with rubygems.

Yours, Joern.


Joe, that happens when gem installs the binary file in a folder that it's not in the path. try doing this to know where it was installed (it might take a few minutes)

find . | egrep "/bundle$"

and then add that folder to your path.


I just tracked down my solution to the same problem above not referenced elsewhere so I'm putting it here. In addition to adding the path to bundler gem, on Ubuntu 10.10 I had to use the shell command $ export RUBYOPT=rubygems in order for this to work.

0

精彩评论

暂无评论...
验证码 换一张
取 消