Installation

Installation, checking module dependencies

Installation, checking module dependencies

by Jason Cowell -
Number of replies: 4

Hello, I am going through the Installation Manual for 2.17 on Ubuntu - I am using Ubuntu 20.04.5

When I get to Installation of Other Perl Modules with cpanm I get this;

wwadmin@webwork2:~$ sudo cpanm Statistics::R::IO SQL::Abstract::Classic
[sudo] password for wwadmin:
--> Working on Statistics::R::IO
Fetching http://www.cpan.org/authors/id/D/DA/DAVOR/Statistics-R-IO-1.0002.tar.gz ... OK
Configuring Statistics-R-IO-1.0002 ... OK
==> Found dependencies: Class::Tiny::Antlers
--> Working on Class::Tiny::Antlers
Fetching http://www.cpan.org/authors/id/T/TO/TOBYINK/Class-Tiny-Antlers-0.024.tar.gz ... OK
Configuring Class-Tiny-Antlers-0.024 ... OK
! Can't configure the distribution. You probably need to have 'make'. See /root/.cpanm/work/1671724015.1585/build.log for details.
! Installing the dependencies failed: Module 'Class::Tiny::Antlers' is not installed
! Bailing out the installation for Statistics-R-IO-1.0002.
--> Working on SQL::Abstract::Classic
Fetching http://www.cpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-Classic-1.91.tar.gz ... OK
Configuring SQL-Abstract-Classic-1.91 ... OK
==> Found dependencies: Test::Deep
--> Working on Test::Deep
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-1.130.tar.gz ... OK
Configuring Test-Deep-1.130 ... OK
! Can't configure the distribution. You probably need to have 'make'. See /root/.cpanm/work/1671724015.1585/build.log for details.
! Installing the dependencies failed: Module 'Test::Deep' is not installed
! Bailing out the installation for SQL-Abstract-Classic-1.91.

I didn't realize this happened....then when I get to Checking Module Dependencies I see this;

   SOAP::Lite found and loaded
   Socket found and loaded
** Statistics::R::IO not found in @INC
   String::ShellQuote found and loaded
   Template found and loaded
   Text::CSV found and loaded
   Text::Wrap found and loaded
   Tie::IxHash found and loaded
   Time::HiRes found and loaded
   Time::Zone found and loaded
   Types::Serialiser found and loaded
   URI::Escape found and loaded
** UUID::Tiny not found in @INC
   XML::Parser found and loaded
** XML::Parser::EasyTree not found in @INC
   XML::Simple found and loaded
   XML::Writer found and loaded
   XMLRPC::Lite found and loaded
   YAML::XS found and loaded
   Apache2::Request found and loaded
   Apache2::ServerRec found and loaded
   Apache2::ServerUtil found and loaded

 checking for SQL::Abstract

You have version 1.86 of SQL::Abstract installed.  This will be used

I'm not sure how to fix this, can someone please help,

thanks,


In reply to Jason Cowell

Re: Installation, checking module dependencies

by Glenn Rice -

You need to have make installed.  Run "sudo apt install make".  You might have missed that package.  It is in the list of packages to install on the installation manual page.  You should check that you have everything in that list installed.  You are also missing libuuid-tiny-perl and libxml-parser-easytree-perl.

Also, you do not need to install SQL::Abstract::Classic on Ubuntu 20.04.  The version of SQL::Abstract on Ubuntu 20.04 is not new enough to have issues with WeBWorK.  Although, if you want to install it you can.  I recommend that if you do, you install it from the Ubuntu repositories, and not from cpan.  It is in the Ubuntu package libsql-abstract-classic-perl.

In reply to Glenn Rice

Re: Installation, checking module dependencies

by Jason Cowell -
yes, thanks, I figured it out.
In the install guide in the command to install all packages, near the beginning - it seems there is a missing back slash (maybe) ?
not sure if this is in-error.  but anyways, I installed make manually, and then it all worked.

Attachment Screenshot 2022-12-22 121003.png
In reply to Glenn Rice

Re: Installation, checking module dependencies

by Jason Cowell -
If I try to install libsql-abstract-classic-perl. it says Unable to locate package
20.04

Here is my module_check now

  Checking your $PATH for executables required by WeBWorK...
$PATH=      /usr/local/sbin
      /usr/local/bin
      /usr/sbin
      /usr/bin
      /sbin
      /bin
      /usr/games
      /usr/local/games
      /snap/bin
      /opt/webwork/webwork2/bin

   convert found at /usr/bin/convert
   curl found at /usr/bin/curl
   dvisvgm found at /usr/bin/dvisvgm
   mkdir found at /usr/bin/mkdir
   mv found at /usr/bin/mv
   mysql found at /usr/bin/mysql
   node found at /usr/bin/node
   tar found at /usr/bin/tar
   git found at /usr/bin/git
   gzip found at /usr/bin/gzip
   latex found at /usr/bin/latex
   pdf2svg found at /usr/bin/pdf2svg
   pdflatex found at /usr/bin/pdflatex
   dvipng found at /usr/bin/dvipng
   giftopnm found at /usr/bin/giftopnm
   ppmtopgm found at /usr/bin/ppmtopgm
   pnmtops found at /usr/bin/pnmtops
   pnmtopng found at /usr/bin/pnmtopng
   pngtopnm found at /usr/bin/pngtopnm

Checking your @INC for modules required by WeBWorK...
@INC=     /etc/perl
     /usr/local/lib/x86_64-linux-gnu/perl/5.30.0
     /usr/local/share/perl/5.30.0
     /usr/lib/x86_64-linux-gnu/perl5/5.30
     /usr/share/perl5
     /usr/lib/x86_64-linux-gnu/perl/5.30
     /usr/share/perl/5.30
     /usr/local/lib/site_perl
     /usr/lib/x86_64-linux-gnu/perl-base

   Archive::Zip found and loaded
   Array::Utils found and loaded
   Benchmark found and loaded
   Carp found and loaded
   CGI found and loaded
   CGI::Cookie found and loaded
   Class::Accessor found and loaded
   Data::Dump found and loaded
   Data::Dumper found and loaded
   Data::UUID found and loaded
   Date::Format found and loaded
   Date::Parse found and loaded
   DateTime found and loaded
   DBD::mysql found and loaded
   DBI found and loaded
   Digest::MD5 found and loaded
   Digest::SHA found and loaded
   Email::Address::XS found and loaded
   Email::Sender::Simple found and loaded
   Email::Sender::Transport::SMTP found and loaded
   Email::Stuffer found and loaded
   Errno found and loaded
   Exception::Class found and loaded
   File::Copy found and loaded
   File::Fetch found and loaded
   File::Find found and loaded
   File::Find::Rule found and loaded
   File::Path found and loaded
   File::Spec found and loaded
   File::stat found and loaded
   File::Temp found and loaded
   GD found and loaded
   Getopt::Long found and loaded
   Getopt::Std found and loaded
   HTML::Entities found and loaded
   HTML::Scrubber found and loaded
   HTML::Tagset found and loaded
   HTML::Template found and loaded
   HTTP::Async found and loaded
   IO::File found and loaded
   IO::Socket::SSL found and loaded
   Iterator found and loaded
   Iterator::Util found and loaded
   JSON found and loaded
   JSON::MaybeXS found and loaded
   Locale::Maketext::Lexicon found and loaded
   Locale::Maketext::Simple found and loaded
   LWP::Protocol::https found and loaded
   MIME::Base64 found and loaded
   Net::IP found and loaded
   Net::LDAPS found and loaded
   Net::OAuth found and loaded
   Net::SMTP found and loaded
   Net::SSLeay found and loaded
   Opcode found and loaded
   PadWalker found and loaded
   Path::Class found and loaded
   PHP::Serialization found and loaded
   Pod::Usage found and loaded
   Pod::WSDL found and loaded
   Safe found and loaded
   Scalar::Util found and loaded
   SOAP::Lite found and loaded
   Socket found and loaded
   Statistics::R::IO found and loaded
   String::ShellQuote found and loaded
   Template found and loaded
   Text::CSV found and loaded
   Text::Wrap found and loaded
   Tie::IxHash found and loaded
   Time::HiRes found and loaded
   Time::Zone found and loaded
   Types::Serialiser found and loaded
   URI::Escape found and loaded
   UUID::Tiny found and loaded
   XML::Parser found and loaded
   XML::Parser::EasyTree found and loaded
   XML::Simple found and loaded
   XML::Writer found and loaded
   XMLRPC::Lite found and loaded
   YAML::XS found and loaded
   Apache2::Request found and loaded
   Apache2::ServerRec found and loaded
   Apache2::ServerUtil found and loaded

 checking for SQL::Abstract

 You have SQL::Abstract::Classic installed. This package will be used if either
 the installed version of SQL::Abstract is version > 1.87 or if that package is not installed.

am I ok to proceed now with the rest of the guide? https://webwork.maa.org/wiki/Installation_Manual_for_2.17_on_Ubuntu
In reply to Jason Cowell

Re: Installation, checking module dependencies

by Glenn Rice -
You should be good to proceed.

Thanks for pointing out the missing backslash. I added it.

It seems the libsql-abstract-classic-perl package is not available on Ubuntu 22.04. Largely because it isn't needed. As I said, the version of SQL::Abstract in the repositories for Ubuntu will work fine, so you didn't need to install SQL::Abstract::Classic. The SQL::Abstract::Class library is just provided for applications like WeBWorK that need compatibility with the older versions of SQL::Abstract when a newer version is installed.