Error "No se pudo encontrar bundler"


Cuando intento hacer bundler update obtengo este error:

.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)

Soy nuevo en Ruby, ¿puede alguien decirme qué causaría esto? Rake 0.8.7 está instalado.

Author: Michiel de Mare, 2011-05-29

13 answers

Asegúrese de introducir la actualización "bundle", si tiene instalada la gema bundler.

bundle update

Si no tiene instalado bundler, haga 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-07-22 15:23:14

Tuve este problema, entonces lo hice:

gem install bundle

Aviso "bundle" no "bundler" resuelto mi problema.

Luego en tu carpeta de proyecto haz:

bundle install

Y luego puedes ejecutar tu proyecto usando:

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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-10-21 00:35:55

Yo tenía el mismo problema. Esto funcionó para mí:

  1. Ejecutar rvm / script / rvm y también añadirlo a su .perfil o.bash_profile como se muestra en https://rvm.io/rvm/install/

  2. Usar paquete sin 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-01-11 13:09:43

Si está utilizando rvm, pruebe el siguiente comando:

rvmsudo gem install bundler

Según otra pregunta: No se pudo encontrar rails (>=0) entre [] (Gem::LoadError)

Espero que haya ayudado, Salud

 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-09-20 20:38:18

El comando es bundle update (no hay "r" en el "bundle").

Para comprobar si bundler está instalado haga : gem list bundler o incluso which bundle y el comando listará la versión de bundler o la ruta a la misma. Si no se muestra nada, instale bundler escribiendo 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-29 05:35:05

Yo tenía el mismo problema .. algo le pasó a mi perfil de bash que no estaba configurando el RVM correctamente.

Asegúrese de que su perfil de bash tenga la siguiente línea:

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

Entonces corrí " source ~/.bash_profile " y que recargó todo lo que estaba en mi perfil de bash.

Eso parecía arreglarlo para mí.

 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-07-21 07:27:50

De acuerdo con esta respuesta a una pregunta similar, debería ser suficiente:

rvmsudo gem install bundler.

Salud

 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-23 11:47:29

Es posible que tenga que hacer algo como "rvm use 1.9.2" primero para que esté utilizando el rubí y el conjunto de gemas correctos. Puede comprobar qué ruby está utilizando haciendo"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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-02 04:58:59

Obtuve esto después de actualizar a ruby 2.1.0. Mi PATH se estableció en mi script de inicio de sesión para incluir .gem/ruby/2.0.0/bin. La actualización del número de versión lo arregló.

 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-02-08 11:46:46

El sistema podría estar ejecutando "rootless". Intente establecer la variable de firmware nvram boot-args en "rootless = 0". Intente ejecutar un conjunto de comandos:

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

Después de que se complete el reinicio, ejecute:

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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-01-24 13:01:04

Puede estar relacionado con https://github.com/bundler/bundler-features/issues/34 si está ejecutando el comando dentro de otro bundle exec. Intente usar Bundler.with_original_env si ese es el caso.

 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-04-21 00:25:13

Para cualquiera que encuentre este problema con Capistrano: capistrano no puede localizar el bundler. La razón podría ser que ha instalado bundler bajo algún otro gemset donde el Capistrano ni siquiera está mirando.

  1. Enumere sus conjuntos de gemas.

Lista de conjuntos de gemas Rvm

  1. Utilice un conjunto de gemas en particular.

Rvm use'my_get_set'

  1. Instale el bundler bajo ese conjunto de gemas.

Instalación de gema bundler

Luego, inténtelo de nuevo con la tarea 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-14 10:57:48

En mi caso creo que tenía un antiguo Ruby restante en el sistema, no registrado en rvm, e incluso si las variables de ruta y la lista de gemas estaban bien, todavía usaría el antiguo Ruby durante los despliegues con Capistrano

Y luego me di cuenta de que el Ruby que había instalado con rvm no estaba configurado como predeterminado. Corriendo

rvm alias create default <rvm_registered_ruby>

Lo arreglé.

 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-05-09 23:24:05