This question about Configuration: More info required

The following critical dependencies are missing: ubuntu AWS problem

Hello,

I am trying to install and configure the Foswiki on the AWS ubuntu server. I followed pretty much the entire installation procedure from the webpage, and all went fine (at least I haven't see any obvious errors). However, when it comes to the configuring part, I am getting this error [1] at */bin/view. The other user reported a similar problem in this support list but for the Windows server, but the responses there didn't help my case.
I would appreciate it if anyone can give me some hint on what to look at for the solution. I am not that familiar with perl/foswiki.

For the additional info:
I ran the perl tool/dependencies and didn't observe any obvious problem [2] so I am not sure what I am missing in the installation/configuration part. Also, the output of perl -V is below [3].

I feel that there is some silly issue hidden somewhere that I am missing; any help is very much appreciated.

Thanks,

Nik



[1] https://*/bin/view

**** ERROR ****
The following critical dependencies are missing from your installation:
... Crypt::PasswdMD5: Can't locate Crypt/PasswdMD5.pm in @INC
... Error: Can't locate Error.pm in @INC
... File::Copy::Recursive: Can't locate File/Copy/Recursive.pm in @INC
... JSON: Can't locate JSON.pm in @INC


Please install these modules and then ensure all dependencies are installed by either:
- viewing the PerlDependencyReport in your local Foswki, or
- running the CLI shell script tools/dependencies from your server's command line.
You can get a complete list of Perl module dependencies by viewing SystemRequirements
on your local system or at http://foswiki.org/System/SystemRequirements.

Foswiki will not operate correctly unless the required dependencies are installed.

Your current library search path @INC contains:

/var/www/foswiki/lib
/etc/perl
/usr/local/lib/perl/5.18.2
/usr/local/share/perl/5.18.2
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.18
/usr/share/perl/5.18
/usr/local/lib/site_perl
.
/var/www/foswiki/lib/CPAN/lib

You can adjust the search path by editing bin/LocalLib.cfg



[2] perl tool/dependencies


/var/www/foswiki$ perl tools/dependencies
AUTOCONFIG: Bootstrap Phase 1: $ENV1 = {
'HOME' > '/home/ubuntu',
        'LANG' => 'en_US.UTF-8',
        'LESSCLOSE' => '/usr/bin/lesspipe %s %s',
        'LESSOPEN' => '| /usr/bin/lesspipe %s',
        'LOGNAME' => 'ubuntu',
        'LS_COLORS' => 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:',
        'MAIL' => '/var/mail/ubuntu',
        'OLDPWD' => '/home/ubuntu',
        'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games',
        'PWD' => '/var/www/foswiki',
        'SHELL' => '/bin/bash',
        'SHLVL' => '1',
        'SSH_CLIENT' => '*',
        'SSH_CONNECTION' => '*',
        'SSH_TTY' => '/dev/pts/1',
        'TERM' => 'xterm-256color',
        'USER' => 'ubuntu',
        'XDG_RUNTIME_DIR' => '/run/user/1000',
        'XDG_SESSION_ID' => '1',
        '_' => '/usr/bin/perl'
      };
AUTOCONFIG: Found Bin dir: /var/www/foswiki/tools, Script name: dependencies using FindBin
AUTOCONFIG: LocalesDir = /var/www/foswiki/locale
AUTOCONFIG: TemplateDir = /var/www/foswiki/templates
AUTOCONFIG: DataDir = /var/www/foswiki/data
AUTOCONFIG: ScriptDir = /var/www/foswiki/bin
AUTOCONFIG: WorkingDir = /var/www/foswiki/working
AUTOCONFIG: ToolsDir = /var/www/foswiki/tools
AUTOCONFIG: PubDir = /var/www/foswiki/pub
AUTOCONFIG: Set initial {Site}{Locale} to en_US.UTF-8
AUTOCONFIG: Store configured for PlainFile
AUTOCONFIG: Detected grep (GNU grep) 2.16
AUTOCONFIG: {Store}{SearchAlgorithm} set to Forking
AUTOCONFIG: WARNING: Unable to detect Normalization.
AUTOCONFIG: Detected OS UNIX: DetailedOS: linux
Use of uninitialized value $set in concatenation (.) or string at /var/www/foswiki/lib/Foswiki/Macros/PERLDEPENDENCYREPORT.pm line 228.
  * Perl version: 5.018002
Perl modules used by Foswiki:
  Win32::Console   Win32::Console is not installed.
      Optional required on Windows platforms if {UserInterfaceInternationalisation} is enabled in configuration.  


Extensions and Perl modules used by installed Extensions:


[3] perl -V

Summary of my perl5 (revision 5 version 18 subversion 2) configuration:

Platform:
  osname=linux, osvers=3.13.0-79-generic, archname=x86_64-linux-gnu-thread-multi
  uname='linux lgw01-37 3.13.0-79-generic #123-ubuntu smp fri feb 19 14:27:58 utc 2016 x86_64 x86_64 x86_64 gnulinux '
  config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Dldflags
-Wl,-Bsymbolic-functions -Wl,-z,relro -Dlddlflags=-shared -Wl,-Bsymbolic-functions -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.18 -Darchlib=/usr/lib/perl/5.18 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.18.2 -Dsitearch=/usr/local/lib/perl/5.18.2 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.18.2 -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags '-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O2 -g',
  cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include'
  ccversion='', gccversion='4.8.2', gccosandvers=''
  intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
  alignbytes=8, prototype=define
Linker and Libraries:
  ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
  libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
  libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
  perllibs=-ldl -lm -lpthread -lc -lcrypt
  libc
, so=so, useshrplib=true, libperl=libperl.so.5.18.2
gnulibc_version='2.19'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Locally applied patches:
DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
DEBPKG:debian/db_file_ver - http://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
DEBPKG:debian/enc2xs_inc - http://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
DEBPKG:debian/errno_ver - http://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
DEBPKG:debian/libperl_embed_doc - http://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
DEBPKG:fixes/respect_umask - Respect umask during installation
DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
DEBPKG:debian/extutils_set_libperl_path - EU:MM: Set location of libperl.a to /usr/lib
DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
DEBPKG:debian/prefix_changes - Fiddle with *PREFIX and variables written to the makefile
DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
DEBPKG:debian/module_build_man_extensions - http://bugs.debian.org/479460 Adjust Module::Build manual page extensions for the Debian Perl policy
DEBPKG:debian/prune_libs - http://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
DEBPKG:fixes/net_smtp_docs - [rt.cpan.org #36038] http://bugs.debian.org/100195 Document the Net::SMTP 'Port' option
DEBPKG:debian/perlivp - http://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
DEBPKG:debian/cpanplus_definstalldirs - http://bugs.debian.org/533707 Configure CPANPLUS to use the site directories by default.
DEBPKG:debian/cpanplus_config_path - Save local versions of CPANPLUS::Config::System into /etc/perl.
DEBPKG:debian/deprecate-with-apt - http://bugs.debian.org/702096 Point users to Debian packages of deprecated core modules
DEBPKG:debian/squelch-locale-warnings - http://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
DEBPKG:debian/skip-upstream-git-tests - Skip tests specific to the upstream Git repository
DEBPKG:debian/patchlevel - http://bugs.debian.org/567489 List packaged patches for 5.18.2-2ubuntu1.1 in patchlevel.h
DEBPKG:debian/skip-kfreebsd-crash - http://bugs.debian.org/628493 [perl #96272] Skip a crashing test case in t/op/threads.t on GNU/kFreeBSD
DEBPKG:fixes/document_makemaker_ccflags - http://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
DEBPKG:debian/find_html2text - http://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
DEBPKG:debian/hurd_test_skip_stack - http://bugs.debian.org/650175 Disable failing GNU/Hurd tests dist/threads/t/stack.t
DEBPKG:fixes/manpage_name_Test-Harness - http://bugs.debian.org/650451 [rt.cpan.org #73399] cpan/Test-Harness: add NAME headings in modules with POD
DEBPKG:debian/makemaker-pasthru - http://bugs.debian.org/660195 [rt.cpan.org #28632] Make EU::MM pass LD through to recursive Makefile.PL invocations
DEBPKG:debian/perl5db-x-terminal-emulator.patch - http://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
DEBPKG:debian/cpan-missing-site-dirs - http://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
DEBPKG:fixes/memoize_storable_nstore - [rt.cpan.org #77790] http://bugs.debian.org/587650 Memoize::Storable: respect 'nstore' option not respected
DEBPKG:fixes/net_ftp_failed_command - [rt.cpan.org #37700] http://bugs.debian.org/491062 Net::FTP: cope gracefully with a failed command
DEBPKG:fixes/perlbug-patchlist - [3541c11] http://bugs.debian.org/710842 [perl #118433] Make perlbug look up the list of local patches at run time
DEBPKG:fixes/module_metadata_security_doc - [68cdd4b] CVE-2013-1437 documentation fix
DEBPKG:fixes/module_metadata_taint_fix - [bff978f] http://bugs.debian.org/722210 [rt.cpan.org #88576] untaint version, if needed, in Module::Metadata
DEBPKG:fixes/IPC-SysV-spelling - http://bugs.debian.org/730558 [rt.cpan.org #86736] Fix spelling of IPC_CREAT in IPC-SysV documentation
DEBPKG:fixes/fix-undef-source -
DEBPKG:fixes/CVE-2013-7422.patch - [PATCH] [perl #119505] Segfault from bad backreference
DEBPKG:fixes/CVE-2014-4330.patch - [PATCH] don't recurse infinitely in Data::Dumper
DEBPKG:fixes/CVE-2016-2381.patch - [PATCH 1/2] remove duplicate environment variables from environ
Built under linux
Compiled at Mar 1 2016 17:15:04
@INC:
/etc/perl
/usr/local/lib/perl/5.18.2
/usr/local/share/perl/5.18.2
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.18
/usr/share/perl/5.18
/usr/local/lib/site_perl
.

-- NikolozSkhirtladze - 31 Mar 2017

From the errors reported when you run bin/view, it looks like the perl dependencies are not installed. On an Ubuntu system, you need to run the following:

     apt-get install libalgorithm-diff-perl libarchive-tar-perl libauthen-sasl-perl libcgi-pm-perl libcgi-session-perl libcrypt-passwdmd5-perl libdigest-sha-perl libemail-mime-perl libencode-perl liberror-perl libfile-copy-recursive-perl libhtml-parser-perl libhtml-tree-perl libio-socket-ip-perl libio-socket-ssl-perl libjson-perl liblocale-maketext-perl liblocale-maketext-lexicon-perl liblocale-msgfmt-perl libwww-perl liblwp-protocol-https-perl liburi-perl libversion-perl 

This is all detailed in the "Ubuntu and other Debian" section of SystemRequirements.

I'm not sure why perl tools/dependencies is not reporting anything. There is so much missing that it's failing somehow. Either that or the perl from the command line is running a different perl than the apache server.

-- GeorgeClark - 31 Mar 2017

One more question - do you know what version of ubuntu is installed in AWS? I've tried to recreate the issue you encountered, but have not succeeded.

-- GeorgeClark - 31 Mar 2017

Hi George,

Thank you for the feedback. I am looking at your responses now... Actually, all the dependencies above (apt-get install * ) were done successfully (see below). Maybe there indeed is some problemswith perl? I am looking into this, but is there a best way to fix this?

I use v14 ubuntu: Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-107-generic x86_64)

Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'perl-modules' instead of 'libarchive-tar-perl' Note, selecting 'perl-modules' instead of 'liblocale-maketext-perl' libalgorithm-diff-perl is already the newest version. libauthen-sasl-perl is already the newest version. libcrypt-passwdmd5-perl is already the newest version. liberror-perl is already the newest version. libfile-copy-recursive-perl is already the newest version. libhtml-parser-perl is already the newest version. libhtml-tree-perl is already the newest version. libio-socket-ssl-perl is already the newest version. libjson-perl is already the newest version. liburi-perl is already the newest version. libwww-perl is already the newest version. libcgi-pm-perl is already the newest version. libcgi-session-perl is already the newest version. libdigest-sha-perl is already the newest version. libemail-mime-perl is already the newest version. libencode-perl is already the newest version. libio-socket-ip-perl is already the newest version. liblocale-maketext-lexicon-perl is already the newest version. liblocale-msgfmt-perl is already the newest version. libversion-perl is already the newest version. liblwp-protocol-https-perl is already the newest version. perl-modules is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.

-- NikolozSkhirtladze - 02 Apr 2017

At this point I have no idea. If the modules are all installed and available via the shell, somehow apache must be using a different perl. Did you make any changes to the bin/LocalLib.cfg file (copied from bin/LocalLib.cfg.txt?) That's all I can think of off hand that would possibly impact library loading on perl. Though that should also impact the shell execution of Foswiki as well.

All I can suggest is to check if apache is somehow using a different perl. Maybe someone else will jump in with other ideas.

-- GeorgeClark - 02 Apr 2017

No, I haven't made any changes in the LocalLib.cfg.txt. Thanks for your feedback, I will try to dig into this. If anyone has any suggestions, please let me know. Thanks!

-- NikolozSkhirtladze - 03 Apr 2017
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 2.1.3
Status More info required
Related Topics
Topic revision: r5 - 03 Apr 2017, NikolozSkhirtladze
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy