PATH="'ruby -e 'puts Gem.user_dir''/bin:$PATH"
fonte: link
Eu instalei um pacote de ferramentas que meu amigo recomendou e é isso que sempre recebo quando tento fazer upgrade. Meu sistema também começou a congelar depois que eu instalei as ferramentas.
ryan1@ryan1:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
\Setting up wpscan (1.1-bt3) ...
WARNING: You don't have /home/ryan1/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Successfully installed mime-types-2.0
1 gem installed
Installing ri documentation for mime-types-2.0...
Installing RDoc documentation for mime-types-2.0...
WARNING: You don't have /home/ryan1/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require'
from extconf.rb:4:in '<main>'
Gem files will remain installed in /home/ryan1/.gem/ruby/1.9.1/gems/ffi-1.9.3 for inspection.
Results logged to /home/ryan1/.gem/ruby/1.9.1/gems/ffi-1.9.3/ext/ffi_c/gem_make.out
WARNING: You don't have /home/ryan1/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Successfully installed xml-simple-1.1.3
1 gem installed
Installing ri documentation for xml-simple-1.1.3...
Installing RDoc documentation for xml-simple-1.1.3...
/var/lib/dpkg/info/wpscan.postinst: line 7: svn: command not found
dpkg: error processing wpscan (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
wpscan
E: Sub-process /usr/bin/dpkg returned an error code (1)
Primeira mensagem:
WARNING: You don't have /home/ryan1/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Isso é claro como água. Você precisa adicionar o diretório à sua variável de ambiente PATH:
export PATH="/home/ryan1/.gem/ruby/1.9.1/bin:$PATH"
O segundo erro pode ou não estar relacionado a isso. Faça uma nova pergunta com o conteúdo do arquivo apontado pela mensagem "Resultados registrados para" . Caso contrário, ninguém será capaz de ajudá-lo.
Tags ruby