我安装了朋友推荐的工具包,每次尝试升级时都会出现这种情况。安装这些工具后,我的系统也开始冻结。
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)
答案1
添加到您的~/.profile
或~/.bashrc
:
export PATH=$PATH:$(ruby -e 'print Gem.user_dir')/bin
答案2
第一条消息:
WARNING: You don't have /home/ryan1/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
您需要将目录添加到 PATH 环境变量中:
export PATH="/home/ryan1/.gem/ruby/1.9.1/bin:$PATH"
第二个错误可能与此有关,也可能无关。