Bundle instala erro fatal

1

Estou migrando meu projeto para uma nova máquina e estou tendo problemas para executar a instalação do pacote na máquina que estou tentando usar. Quando eu corro:

bundle install

Eu recebo este erro:

Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:245:in 'mkdir': Permission denied - /home/zach/HandCoOp/project/HandCo-op/vendor/bundle/ruby/2.0.0 (Errno::EACCES)
    from /home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:245:in 'fu_mkdir'
    from /home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:219:in 'block (2 levels) in mkdir_p'
    from /home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:217:in 'reverse_each'
    from /home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:217:in 'block in mkdir_p'
    from /home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:203:in 'each'
    from /home/zach/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/fileutils.rb:203:in 'mkdir_p'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler.rb:294:in 'mkdir_p'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/installer.rb:325:in 'create_bundle_path'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/installer.rb:51:in 'run'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/installer.rb:15:in 'install'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/cli/install.rb:78:in 'run'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/cli.rb:145:in 'install'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/vendor/thor/command.rb:27:in 'run'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/vendor/thor/invocation.rb:121:in 'invoke_command'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/vendor/thor.rb:363:in 'dispatch'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/vendor/thor/base.rb:440:in 'start'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/cli.rb:9:in 'start'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/bin/bundle:20:in 'block in <top (required)>'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/lib/bundler/friendly_errors.rb:5:in 'with_friendly_errors'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.5/bin/bundle:18:in '<top (required)>'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/bin/bundle:23:in 'load'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/bin/bundle:23:in '<main>'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/bin/ruby_executable_hooks:15:in 'eval'
    from /home/zach/.rvm/gems/ruby-2.0.0-p451@global/bin/ruby_executable_hooks:15:in '<main>'

Eu executei o gem install bundler e ele foi executado com sucesso e certifiquei-me de que minha versão do ruby é igual à versão em que o projeto foi criado. Estou ficando sem ideias e estou perdido. Obrigado a todos que sabem o que está errado e que dedicam algum tempo para me ajudar.

output of ls -l:
total 20
drwxr-xr-x  2 root root 4096 Jul 24 17:52 bin
drwxr-xr-x  2 root root 4096 Jul 24 17:53 cache
drwxr-xr-x  2 root root 4096 Jul 24 17:51 doc
drwxr-xr-x 49 root root 4096 Jul 24 17:53 gems
drwxr-xr-x  2 root root 4096 Jul 24 17:53 specifications

cd .. ls -l:

total 4
drwxrwxr-x 7 root root 4096 Jul 24 17:51 1.9.1

espero que isso ajude! = D

    
por ZachyBear 28.07.2014 / 21:18

1 resposta

0

A execução desses comandos em um terminal deve corrigi-lo.

rm -rf ~/.bundle/ ~/.gem/
rm -rf $GEM_HOME/bundler/ $GEM_HOME/cache/bundler/
rm -rf .bundle/
rm -rf vendor/cache/
rm -rf Gemfile.lock
bundle install
    
por Pabi 28.07.2014 / 21:26