AIX Open Source

 View Only
  • 1.  How to manually install Perl's CPAN module

    Posted Mon June 03, 2024 06:06 AM
    Hi teams,
     
    With the renewal of the AIX system, we have introduced the Perl module.
     
    Although we have installed it based on the AIXToolkit module, there were some modules that were missing, so we are considering manual installation of additional CPAN modules.
    (The Perl version introduced by AIXToolkit is 5.34.1.) )
    Since this environment is not connected to the Internet, it is assumed that it will be downloaded from the CPAN site and installed manually offline.
     
    ■ Flow of introduction
    (1) Unzip the file downloaded from the CPAN site
    (2) Create a Makefile with perl Makefile.pl
    (3) Execute the make command
    (4) Preview the installation with make test
    (5) Install with make install
    The flow of introduction is assumed to be the above, but please check some unclear points.
     
    - Question 1: In step (2), the Makefile.pl file does not exist in the current environment, do I need to download and install it from the CPAN site? (Please tell me the procedure in that case.) )
     
    ・Question 2: When executing the make command in step (3), is it necessary to install a separate build tool such as XLC as a prerequisite on the target server?
    (Perl's Build.pl module does not exist in the current environment.) )
     
    Thank you.


    ------------------------------
    Takanori Nezu
    ------------------------------


  • 2.  RE: How to manually install Perl's CPAN module

    Posted Mon June 03, 2024 07:57 AM

    cpan is part of the main perl distribution AFAIK...i recommend cpanminus anyway



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: How to manually install Perl's CPAN module

    Posted Mon June 03, 2024 08:58 AM

    1) Almost all standard modules from CPAN used to come with Makefile.PL. Not sure what are those modules in your case.

    2) You need C compiler if the perl module has XS/C code. "perl -V" will show the compiler which will be used by perl. AIX base perl (/usr/bin/perl) uses xlc compiler whereas Toolbox perl (/opt/freeware/bin/perl) uses gcc compiler.



    ------------------------------
    Ayappan P
    ------------------------------



  • 4.  RE: How to manually install Perl's CPAN module

    Posted Mon June 03, 2024 09:05 PM
    Edited by 孝典 祢津 Mon June 03, 2024 09:05 PM

    Thanks for your response. I'll take a look.



    ------------------------------
    Takanori Nezu
    ------------------------------



  • 5.  RE: How to manually install Perl's CPAN module

    Posted 29 days ago
    Edited by 孝典 祢津 29 days ago
    I have an additional question.
     
    When I ran the make and make commands, I got an error that a dependent module was missing.
    It seems to be a module that doesn't appear in the dependency graph on the meta::cpan website.
     
    How do I if I want to see the total amount of dependent modules?



    ------------------------------
    Takanori Nezu
    ------------------------------