2013-02-07 11 views
6

Sto cercando di suddividere i file PDF in immagini usando docsplit. Ma sembra che abbia problemi con la mia installazione di ruby. Continuo a ricevere il seguente errore ogni volta:Errore di remove_entry_secure durante l'utilizzo dell'applicazione ruby ​​

/usr/lib/ruby/1.8/fileutils.rb:694:in `remove_entry_secure': parent directory is world writable 

Ecco la completa uscita di linea di comando:

$ docsplit images pdf-test.pdf 
/usr/lib/ruby/1.8/fileutils.rb:694:in `remove_entry_secure': parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/tmp/d20130207-6739-1f9i6b" (parent directory mode 42777) (ArgumentError) 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:51:in `convert' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:19:in `extract' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:19:in `each' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:19:in `extract' 
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `each_with_index' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:18:in `each' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:18:in `each_with_index' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:18:in `extract' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:16:in `each' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:16:in `extract' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit.rb:63:in `extract_images' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/../lib/docsplit/command_line.rb:44:in `run' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/../lib/docsplit/command_line.rb:37:in `initialize' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/docsplit:5:in `new' 
    from /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/docsplit:5 
    from /usr/bin/docsplit:19:in `load' 
    from /usr/bin/docsplit:19 

Tutte le idee su come risolvere questo problema?

risposta

32

Si è verificato un problema con le autorizzazioni della cartella /tmp. Il seguente risolto il problema:

passaggi che ho seguito sono:

[email protected]$: chmod 777 -R /tmp 
[email protected]$: chmod o+t -R /tmp 
[email protected]$: ls -l tmp 
drwxrwxrwt 2 user group 4096 2009-11-21 17:01 tmp 
+1

stavo ottenendo questo errore quando si tenta di compilare passeggero per nginx via passeggero-install-nginx-modulo –

+4

stesso per me quando si tenta di installare 'passeggero-install-apache2-module' – Mikey