Błąd "nie można znaleźć bundlera"

Kiedy próbuję zrobić bundler update dostaję ten błąd:

.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
`to_specs': Could not find bundler (>= 0) amongst
[rake-0.8.7, rake-0.8.7, rubygems-update-1.8.4] (Gem::LoadError)

Jestem nowy w Ruby, czy ktoś może mi powiedzieć, co mogło to spowodować? Rake 0.8.7 jest zainstalowany.

Author: Michiel de Mare, 2011-05-29

13 answers

Upewnij się, że wprowadzasz aktualizację "pakiet", jeśli masz zainstalowany klejnot bundlera.

bundle update

Jeśli nie masz zainstalowanego bundlera, wykonaj gem install bundler.

 202
Author: ardavis,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-07-22 15:23:14

Miałem ten problem, potem zrobiłem:

gem install bundle
Zauważ ,że "bundle " nie" bundler " rozwiązał mój problem.

Następnie w folderze projektu wykonaj:

bundle install

A następnie możesz uruchomić swój projekt używając:

script/rails server
 55
Author: Dorian,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-10-21 00:35:55

Miałem ten sam problem. To mi się udało:

  1. Uruchom rvm / script / rvm, a także dodaj go do swojego .profil lub .bash_profile jak pokazano w https://rvm.io/rvm/install/

  2. Użyj pakietu bez sudo

 13
Author: bjelli,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-01-11 13:09:43

Jeśli używasz rvm, spróbuj wykonać następujące polecenie:

rvmsudo gem install bundler

Zgodnie z innym pytaniem: nie można znaleźć rails (>= 0) wśród [] (Gem::LoadError)

Hope it helped, Cheers

 9
Author: Andrew Khouzam,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-09-20 20:38:18

Komendą jest bundle update (nie ma "r" w "pakiecie").

Aby sprawdzić, czy bundler jest zainstalowany wykonaj : gem list bundler lub nawet which bundle i polecenie wyświetli albo wersję bundlera, albo ścieżkę do niego. Jeśli nic nie jest pokazane, zainstaluj bundler wpisując gem install bundler.

 8
Author: Zabba,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-05-29 05:35:05

Miałem ten sam problem .. coś się stało z moim profilem bash, który nie ustawiał poprawnie rzeczy RVM.

Upewnij się, że Twój profil bash ma następującą linię:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.

Potem uruchomiłem " źródło~/.bash_profile " i że przeładował wszystko, co było w moim profilu bash.

Wydawało mi się, że to naprawiło.
 7
Author: Brian Vitrue,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-07-21 07:27:50

Zgodnie z tą Odpowiedź na podobne pytanie powinno wystarczyć:

rvmsudo gem install bundler.

Cheers

 6
Author: Andrew Khouzam,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-05-23 11:47:29

Być może będziesz musiał najpierw zrobić coś w stylu "RVM use 1.9.2", aby użyć poprawnego ruby i gemset. Możesz sprawdzić, którego Rubiego używasz, wykonując "which ruby"

 4
Author: mgauthier,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2012-07-02 04:58:59

Dostałem to po aktualizacji do ruby 2.1.0. Mój PATH został ustawiony w moim skrypcie logowania na .gem/ruby/2.0.0/bin. Aktualizacja numeru wersji naprawiła to.

 2
Author: Thomas Leonard,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-02-08 11:46:46

System może działać "bez korzeni". Spróbuj ustawić zmienną firmware NVRAM boot-args na "rootless=0". Spróbuj uruchomić zestaw komend:

sudo nvram boot-args="rootless=0"; 
sudo reboot

Po zakończeniu restartu Uruchom:

sudo gem install bundler
 2
Author: Bogdan Ustyak,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-01-24 13:01:04

Może być związane z https://github.com/bundler/bundler-features/issues/34 jeśli uruchamiasz polecenie wewnątrz innego bundle exec. Spróbuj użyć Bundler.with_original_env jeśli tak jest.

 1
Author: brauliobo,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-04-21 00:25:13

Dla każdego napotkanego problemu z Capistrano: capistrano nie jest w stanie zlokalizować bundler. Powodem może być to, że zainstalowałeś bundlera pod jakimś innym gemset, Gdzie Capistrano nawet nie patrzy.

  1. Wymień swoje gemsety.

RVM gemset list

  1. użyj określonego gemsetu.

RVM use 'my_get_set'

  1. Zainstaluj bundlera pod tym gemsetem.

Gem install bundler

Następnie spróbuj ponownie z zadaniem deploy.

 1
Author: Nerve,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-08-14 10:57:48

W moim przypadku wydaje mi się, że w systemie pozostał Stary Ruby, Niezarejestrowany w rvm, i nawet jeśli zmienne ścieżki i lista gem były w porządku, nadal używałby starego Rubiego podczas wdrożeń z Capistrano

I wtedy zdałem sobie sprawę, że Ruby, który zainstalowałem z rvm, nie był ustawiony na domyślny. Running

rvm alias create default <rvm_registered_ruby>

Naprawiłem to.

 0
Author: Cyril Duchon-Doris,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-05-09 23:24:05