sage compiler cannot find required perl module

68 views
Skip to first unread message

Mike

unread,
Mar 22, 2023, 10:52:31 PM3/22/23
to sage-support
Running "$ MAKE='make -j40' make" gives the error message
=====
The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* package:         openssl-3.0.5
  last build time: Mar 22 18:43
  log file:        /home/millermj/sage-9.8/logs/pkgs/openssl-3.0.5.log
  build directory: /home/millermj/sage-9.8/local/var/tmp/sage/build/openssl-3.0.5
=====

and /home/millermj/sage-9.8/logs/pkgs/openssl-3.0.5.log says

=====
Can't locate IPC/Cmd.pm in @INC (@INC contains: /home/millermj/sage-9.8/local/var/tmp/sage/build/openssl-3.0.5/src/util/perl /home/millermj/sage-9.8/local/lib/perl5 /usr/local/amber20/lib/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/millermj/sage-9.8/local/var/tmp/sage/build/openssl-3.0.5/src/external/perl/Text-Template-1.56/lib)
=====

Locating the required file with "$ find / -name Cmd.pm 2>/dev/null"
/usr/share/perl5/Net/Cmd.pm

Copying to a directory in @INC:
$ mkdir /home/millermj/sage-9.8/local/var/tmp/sage/build/openssl-3.0.5/src/util/perl/IPC
$ cp /usr/share/perl5/Net/Cmd.pm /home/millermj/sage-9.8/local/var/tmp/sage/build/openssl-3.0.5/src/util/perl/IPC
$ ls /home/millermj/sage-9.8/local/var/tmp/sage/build/openssl-3.0.5/src/util/perl/IPC
Cmd.pm

Then running
./configure
MAKE='make -j40' make

results in the same "Can't locate IPC/Cmd.pm" error message as above.

So, how can I help the compiler find that module?
(Note: I don't have root access to the machine.)

Running CentOS Linux release 7.9.2009 (Core), if that helps.

Jan Groenewald

unread,
Mar 22, 2023, 11:45:00 PM3/22/23
to sage-s...@googlegroups.com
Hi

Can you do this?

perl -MCPAN -e 'install IPC::Cmd'

(works for me on debian)

Regards,
Jan


--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6ca2dcd0-85dd-4bca-a122-716e7d41b10cn%40googlegroups.com.

Mike

unread,
Mar 23, 2023, 1:59:17 PM3/23/23
to sage-support
Dear Jan,

The perl module is already installed (as /usr/share/perl5/Net/Cmd.pm).  I'm trying to help the sage compiler locate it, either

1) by copying it to someplace that the compiler will look (which I already tried, without success, as documented above) or

2) by telling the compiler where on my system to look for it (which I can't figure out how to do, but may be the better option, in case the compiler needs other perl modules).

Thanks,
Mike
Reply all
Reply to author
Forward
Message has been deleted
0 new messages