Issues with Installing EPrints on Ubuntu 18.04

From EPrints Documentation
Revision as of 09:55, 1 April 2019 by (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

epadmin script errors with Perl version

When trying to run epadmin you will may see a couple of error messages that prevents you from creating an archive, especially if you are using the 3.4.0 tarball from

Experimental keys on scalar is now forbidden at EPRINTS_PATH/bin/epadmin line 384

To fix this add the following line at the top of the epadmin file just after the use lines:

no if $] >= 5.017011, warnings => 'experimental::smartmatch';

A second error message you may see is:

Type of arg 1 to keys must be hash or array (not single ref constructor) at /usr/share/eprints/bin/epadmin line 384, near "};"

Go to the line number reported and change it to:

my @flavours = keys %{$conf->{flavours}};

You should now be able to run "epadmin create" without issue.