gem - Getting remove_entry_secure error while using ruby application -
i trying split pdf files images using docsplit. appears have issues ruby installation. maintain getting next error every time:
/usr/lib/ruby/1.8/fileutils.rb:694:in `remove_entry_secure': parent directory world writable
here total command line output:
$ docsplit images pdf-test.pdf /usr/lib/ruby/1.8/fileutils.rb:694:in `remove_entry_secure': parent directory world writable, fileutils#remove_entry_secure not work; abort: "/tmp/d20130207-6739-1f9i6b" (parent directory mode 42777) (argumenterror) /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:51:in `convert' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:19:in `extract' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:19:in `each' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:19:in `extract' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `each_with_index' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:18:in `each' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:18:in `each_with_index' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:18:in `extract' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:16:in `each' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit/image_extractor.rb:16:in `extract' /var/lib/gems/1.8/gems/docsplit-0.6.4/lib/docsplit.rb:63:in `extract_images' /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/../lib/docsplit/command_line.rb:44:in `run' /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/../lib/docsplit/command_line.rb:37:in `initialize' /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/docsplit:5:in `new' /var/lib/gems/1.8/gems/docsplit-0.6.4/bin/docsplit:5 /usr/bin/docsplit:19:in `load' /usr/bin/docsplit:19
any ideas on how prepare this?
it turns out there problem /tmp
folder permissions. next fixed problem:
steps followed are:
user@host-$: chmod 777 -r /tmp user@host-$: chmod o+t -r /tmp user@host-$: ls -l tmp drwxrwxrwt 2 user grouping 4096 2009-11-21 17:01 tmp
ruby gem ubuntu-10.04 docsplit
No comments:
Post a Comment