I solved my problem, which was due to my misunderstanding of perl.

In case someone comes across this in the future, the perl module Net/Cmd.pm 
is entirely different from the perl module IPC/Cmd.pm, as one can verify by 
looking at the code.  I had mistakenly assumed that different systems just 
used different paths to the same module.

So, the fix was to ask (I don't have root access) for perl-IPC-Cmd to be 
installed.

On Thursday, March 23, 2023 at 1:59:17 PM UTC-4 Mike wrote:

> 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
>
> On Wednesday, March 22, 2023 at 11:45:00 PM UTC-4 Jan Groenewald wrote:
>
>> Hi
>>
>> Can you do this?
>>
>> perl -MCPAN -e 'install IPC::Cmd'
>>
>> (works for me on debian) 
>>
>> Regards,
>> Jan
>>
>>
>> On Thu, 23 Mar 2023 at 04:52, Mike <mill...@gmail.com> wrote:
>>
>>> 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.
>>>
>>> -- 
>>> 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
>>>  
>>> <https://groups.google.com/d/msgid/sage-support/6ca2dcd0-85dd-4bca-a122-716e7d41b10cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ae9fec32-e23f-48c7-9f5f-aaec293215c2n%40googlegroups.com.

Reply via email to