Original Message:
Sent: Mon November 18, 2024 01:21 PM
From: Greg O'Keefe
Subject: Migrating custom installed perl modules
Getting away from the 'make install' and back to the 'make' . . .when I looked at what 'make' was doing, it just copied DBUG.pm to another directory. Do I need to tell it to make DBUG.so? I looked at the documentation and saw OBJECT described as the thing that 'make' is going to build, but when I ran it, a file-not-found error was returned. I don't understand why that would happen, unless I misunderstood the nature of OBJECT in Makefile.PL. What is the right way to compile a .pm file into an .so?
____
with OBJECT line in Makefile.PL:
use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'DBUG',
'OBJECT' => 'DBUG.so'
);
# perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for DBUG
Writing MYMETA.yml and MYMETA.json
# make
Running Mkbootstrap for DBUG ()
chmod 644 DBUG.bs
rm -f blib/arch/auto/DBUG/DBUG.so
ld -bhalt:4 -G -bI:/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/perl.exp -bE:DBUG.exp -bnoentry -lpthreads -lc -lm DBUG.so -o blib/arch/auto/DBUG/DBUG.so
ld: 0706-005 Cannot find or open file: DBUG.so
ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
Stop.
____
without OBJECT line:
use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'DBUG', # Name of your module
);
# perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for DBUG
Writing MYMETA.yml and MYMETA.json
# make
[no output]
# find . -name 'DBUG*'
./blib/arch/auto/DBUG
./blib/lib/auto/DBUG
# find . -name 'DBUG.*'
[no output]
------------------------------
Greg O'Keefe
------------------------------
Original Message:
Sent: Fri November 15, 2024 03:34 AM
From: RESHMA KUMAR
Subject: Migrating custom installed perl modules
To do a 'make install' in /usr/opt/perl5/lib/site_perl/5.34.1, one needs root access. With root access, you can run 'make install' again.
------------------------------
RESHMA KUMAR
Original Message:
Sent: Thu November 14, 2024 04:10 PM
From: Greg O'Keefe
Subject: Migrating custom installed perl modules
Thanks for the reply!
I did a quick build of the custom modules (perl Makefile.PL, make, make install). The 'make install' failed due to permissions. If I get temporary root access, do I just complete the failed file copy? Or is there more to it?
Thanks, Greg
--------------------------------
ERROR: Can't create '/usr/opt/perl5/lib/site_perl/5.34.1'
Do not have write permissions on '/usr/opt/perl5/lib/site_perl/5.34.1'
------------------------------
Greg O'Keefe
Original Message:
Sent: Fri November 08, 2024 02:47 PM
From: Stephen Ulmer
Subject: Migrating custom installed perl modules
Did you reinstall your local modules with the new version of Perl? That would be the first thing I would try, especially with that large of a version difference.
--
Stephen Ulmer
Sent from a mobile device; please excuse auto-correct silliness.