Skip to content

Commit

Permalink
INSTALL_PRETTYLIB.sh: Fix cpanm paths and cpanfile format
Browse files Browse the repository at this point in the history
  • Loading branch information
taskula authored and kivilahtio committed Apr 28, 2021
1 parent 5fedd54 commit 34a7a30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions INSTALL_PRETTYLIB.sh
Expand Up @@ -33,11 +33,12 @@ test $? != 0 && echo "Couldn't cd to app source code directory '$MMT_CODE', fail


echo "Installing Perl dependencies to the program dir '$MMT_CODE'"
cpanm -L extlib --installdeps .
echo "$MMT_CODE/transformer"
cpanm -L $MMT_CODE/transformer/extlib --installdeps $MMT_CODE/transformer
# Ubuntu 18 fails on one of the dependencies, unless --force is used...
if [ $? != 0 ]
then
echo "Perl dependencies install failed with error code '$?'. Using force." && cpanm -L extlib --force --installdeps .
echo "Perl dependencies install failed with error code '$?'. Using force." && cpanm -L $MMT_CODE/transformer/extlib --force --installdeps $MMT_CODE/transformer
test $? != 0 && echo "Perl dependencies install failed with error code '$?'. Force did not help." && exit 9
fi

Expand Down
4 changes: 1 addition & 3 deletions transformer/cpanfile
@@ -1,5 +1,6 @@
requires "Log::Log4perl";
requires "YAML::XS";
requires "YAML::LibYAML";
requires "Email::Valid";
requires "Getopt::OO";
requires "Carp::Always::Color";
Expand All @@ -14,6 +15,3 @@ requires "IPC::Cmd";
requires "Import::Into";
requires "Modern::Perl";
requires "DateTime::Format::MySQL";

libyaml-perl
libtext-csv-perl

0 comments on commit 34a7a30

Please sign in to comment.