EMDIS-ECS
view release on metacpan or search on metacpan
(ecshome)$ ecs_setup
Alternatively, because "make install" typically requires root
privileges, it may be more convenient to install Perl ECS and related
modules into a local directory, e.g. using cpanminus.
$ mkdir locallib
$ cpanm --local-lib locallib Net::SMTP~3.05
$ cpanm --local-lib locallib Mail::IMAPClient~3.18
$ cpanm --local-lib locallib Net::POP3~3.06
$ cpanm --local-lib locallib IO::Socket::SSL~2.007
$ cpanm --local-lib locallib EMDIS-ECS-0.36.tar.gz
The ecs_setup script asks a series of questions and creates an ecs.cfg
file based on the answers given. If needed, it can also create the
required ECS_DAT_DIR subdirectories. The directory structure and script
names are similar to those described in the EMDIS ECS specification.
Of course, Perl ECS can also run under Windows, using Strawberry Perl
or ActivePerl.
Note: For Strawberry Perl (on MS Windows), the sequence of commands
docker/centos/Dockerfile view on Meta::CPAN
ENV HOME=/home/perlecs
# as perlecs user, install latest CPAN versions of some
# Perl modules into local-lib directory (because module
# versions provided by CentOS may not support SSL/TLS)
USER perlecs
WORKDIR ${HOME}
RUN mkdir ${HOME}/perl5lib
RUN cpanm --local-lib ${HOME}/perl5lib Net::SMTP~3.05 && \
cpanm --local-lib ${HOME}/perl5lib Net::POP3~3.06 && \
cpanm --local-lib ${HOME}/perl5lib IO::Socket::SSL~2.007
# install EMDIS::ECS into local-lib directory
RUN cpanm --local-lib ${HOME}/perl5lib EMDIS::ECS
# set PATH and PERL5LIB environment variables to use
# local-lib directory
ENV PATH=${HOME}/perl5lib/bin:${PATH} \
PERL5LIB=${HOME}/perl5lib/lib/perl5
#USER root
docker/dist/Dockerfile view on Meta::CPAN
ENV HOME=/home/perlecs
# as perlecs user, install latest CPAN versions of some
# Perl modules into local-lib directory (because module
# versions provided by CentOS may not support SSL/TLS)
USER perlecs
WORKDIR ${HOME}
RUN mkdir ${HOME}/perl5lib
RUN cpanm --local-lib ${HOME}/perl5lib Net::SMTP~3.05 && \
cpanm --local-lib ${HOME}/perl5lib Net::POP3~3.06 && \
cpanm --local-lib ${HOME}/perl5lib IO::Socket::SSL~2.007
# install Pod::LaTeX via CPAN
RUN cpanm --local-lib ${HOME}/perl5lib Pod::LaTeX
# set PATH and PERL5LIB environment variables to use
# local-lib directory
ENV PATH=${HOME}/perl5lib/bin:${PATH} \
PERL5LIB=${HOME}/perl5lib/lib/perl5
# overridable at Docker build time, via docker build --build-arg <varname>=<value>
ARG TAGGED_VERSION=0.44
( run in 0.561 second using v1.01-cache-2.11-cpan-4d50c553e7e )