Executables.pl

From EPrints Documentation
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects

executables.pl in lib/syscfg.d/ contains configuration for location of third-party executables EPrints might need to use. In particular it contains the following executable to filepath mappings:

my %executables = (
  'convert' => '/usr/bin/convert',
  'tar' => '/bin/tar',
  'rm' => '/bin/rm',
  'dvips' => '/usr/bin/dvips',
  'gunzip' => '/bin/gunzip',
  'sendmail' => '/usr/sbin/sendmail',
  'unzip' => '/usr/bin/unzip',
  'elinks' => '/usr/bin/elinks',
  'cp' => '/bin/cp',
  'latex' => '/usr/bin/latex',
  'perl' => $Config{perlpath},
  'pdftotext' => '/usr/bin/pdftotext',
  'wget' => '/usr/bin/wget',
  'antiword' => '/usr/bin/antiword',
  'ffmpeg' => '/usr/bin/ffmpeg',
  'file' => '/usr/bin/file',
  'doc2txt' => "$c->{base_path}/tools/doc2txt",
  'unoconv' => '/usr/bin/unoconv',
  'txt2refs' => "$c->{base_path}/tools/txt2refs",
  'ffprobe' => '/usr/bin/ffprobe',
);

It may be necessary to modify some of these if you install local versions of some executable or you use an operating system that does not install the executable in the expected location.