Executables.pl

From EPrints Documentation
Revision as of 19:10, 12 February 2022 by Drn@ecs.soton.ac.uk (talk | contribs) (Added executables.pl page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.