ВНИМАНИЕ: у вас нет в вашем PATH, исполняемые файлы gem не запускаются

Я установил пакет инструментов, рекомендованный моим другом, и это то, что я продолжаю получать, когда пытаюсь выполнить обновление. Моя система также начала зависать после того, как я установил инструменты.

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)
7
задан 25 March 2014 в 08:20

2 ответа

PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"

источник: https://wiki.archlinux.org/index.php/ruby#Setup

0
ответ дан 25 March 2014 в 08:20

Первое сообщение:

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"

Вторая ошибка может быть связана или не связана с этим. Задайте новый вопрос с содержанием файла, указанного в сообщении «Результаты вошли в» . Иначе никто не сможет вам помочь.

0
ответ дан 25 March 2014 в 08:20

Другие вопросы по тегам:

Похожие вопросы: