rbenv icon indicating copy to clipboard operation
rbenv copied to clipboard

Bundler doesn't installed

Open skv-headless opened this issue 10 years ago • 14 comments

There is bundler in default_gems, but I have got error "The program 'bundle' is currently not installed".

skv-headless avatar Sep 29 '14 13:09 skv-headless

I have faced the same bug

viatcheslavmogilevsky avatar Oct 08 '14 10:10 viatcheslavmogilevsky

There is stderr from ansible verbose output after install ruby 2.1.2

Downloading ruby-2.1.2.tar.gz... http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635 Installing ruby-2.1.2... Installed ruby-2.1.2 to /home//.rbenv/versions/2.1.2 /home//.rbenv/plugins/rbenv-default-gems/etc/rbenv.d/install/default-gems.bash: line 37: gem: command not found rbenv: error installing gem `bundler'", "stdout

viatcheslavmogilevsky avatar Oct 08 '14 10:10 viatcheslavmogilevsky

Then I have changed the repo of rbenv-default-gems from sstephenson/rbenv-default-gems to my fork viatcheslavmogilevsky/rbenv-default-gems, where I made one change ( https://github.com/viatcheslavmogilevsky/rbenv-default-gems/commit/438e585f880bc66f9dc98f2447322caa7749cd64 ), and now bundler gem is successfully installed

viatcheslavmogilevsky avatar Oct 08 '14 11:10 viatcheslavmogilevsky

@viatcheslavmogilevsky Do you plan to do PR in sstephenson/rbenv-default-gems ?

zzet avatar Oct 08 '14 13:10 zzet

Not yet, I just commented this line in @sstephenson's commit where he issued 'rbenv-exec ...'.

viatcheslavmogilevsky avatar Oct 08 '14 13:10 viatcheslavmogilevsky

I used https://github.com/viatcheslavmogilevsky/rbenv-default-gems/commit/438e585f880bc66f9dc98f2447322caa7749cd64 and it did the trick - @viatcheslavmogilevsky any plans to send a PR upstream?

jakubpawlowicz avatar Jan 06 '15 11:01 jakubpawlowicz

@jakubpawlowicz for now I haven't plans for this

viatcheslavmogilevsky avatar Jan 08 '15 10:01 viatcheslavmogilevsky

The same problem

evserykh avatar Apr 16 '15 06:04 evserykh

Experiencing the same problem

TomNaessens avatar Jul 06 '15 15:07 TomNaessens

The same problem

tenaz3 avatar Jul 31 '16 11:07 tenaz3

Same problem

Kroid avatar Jun 01 '17 16:06 Kroid

@Kroid Role variable is not

  - { name: "rbenv-default-gems",
      repo: "https://github.com/rbenv/rbenv-default-gems.git",
      version: "v1.0.0" }

but

  - { name: "rbenv-default-gems",
      repo: "https://github.com/rbenv/rbenv-default-gems.git",
      version: "master" }

rbenv-default-gems v1.0.0 doesn't seems to be imported https://github.com/rbenv/rbenv-default-gems/commit/ead67889c91c53ad967f85f5a89d986fdb98f6fb.

mashan avatar Jun 15 '17 00:06 mashan

So... this issue will be resolved very nice with https://bugs.ruby-lang.org/issues/12733 :trollface:

zzet avatar Oct 26 '17 14:10 zzet

Using viatcheslavmogilevsky/rbenv-default-gems@438e585 didn't work for me. I had to add a task to install bundler.

https://stackoverflow.com/a/22121802/721065

- name: Install Bundler
  command: bash -lc "gem install bundler"
  become: yes
  become_user: whatever_user

cdmo avatar Aug 24 '18 12:08 cdmo