AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  perl 5.28: could not find ParserDetails.ini

    Posted Mon December 09, 2019 03:24 PM

    Originally posted by: janhar


    This issue was reported in an AIX case. The Toolbox team has already been investigating this, but I'm adding this to the forum so customers can exchange info with the Open Source team.

    Perl scripts using this the simple xml parser complain with an warning message: could not find ParserDetails.ini in /usr/opt/perl5/lib/site_perl/5.28.1/XML/SAX

     

    Latest request from the customer in the AIX case:

     

    Just get rid of the warning message that's generated when a perl program is using the XML modules.

    To me it looks far easier to just copy the file back instead of modifing the perl code to not show the warning anymore... but this is up to you.

     

    I will advise him of this thread so he can engage directly with the team if he prefers.



  • 2.  Re: perl 5.28: could not find ParserDetails.ini

    Posted Tue December 10, 2019 10:42 AM

    Originally posted by: armink


    Subscribe.... hopefully this problem will be fixed before developerworks is closing :-)

     



  • 3.  Re: perl 5.28: could not find ParserDetails.ini

    Posted Tue December 10, 2019 10:54 AM

    Originally posted by: janhar


    Hello, Armin

    This forum is the official support channel for AIX Open Source, including the AIX Toolbox for Linux applications. This site will be sunset, however, the plan is to host the forum on a different community. Those plans are still being finalized.  These plans include redirect for the new site.  Once they have details, they will announce the new location on this forum.



  • 4.  Re: perl 5.28: could not find ParserDetails.ini

    Posted Tue December 17, 2019 06:38 AM

    Originally posted by: Nitish Mishra


    Hi !

    I don't see that Perl::XML::SAX module is providing XML/SAX/ParserDetails.ini file in this version. It was available in earlier version (5.20) though. I will dig more on this.

    However, this is how one can create the ParserDetails.ini file:

    Run the following command/script:

    1.  /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser('XML::SAX::PurePerl')->save_parsers()"
        The above command will show a message reading "could not find ParserDetails.ini in /usr/opt/perl5/lib/site_perl/5.28.1/XML/SAX" , but that is because it was not able to find ParserDetails.ini file as it is not
    present. But from here onwards the file ParserDeatils.ini is created at location: /usr/opt/perl5/lib/site_perl/5.28.1/XML/SAX/ParserDetails.ini, and it would be having a content like this:

    [XML::SAX::PurePerl]
    http://xml.org/sax/features/namespaces = 1

    Now we need to add two more entries as it was in the earlier version. To add these entries run two more command scripts as below:

    2. /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX::Parser')->save_parsers()"

    3. /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX')->save_parsers()"

    Finally the content of the file /usr/opt/perl5/lib/site_perl/5.28.1/XML/SAX/ParserDetails.ini, will be like this:

    [XML::SAX::PurePerl]
    http://xml.org/sax/features/namespaces = 1

    [XML::LibXML::SAX::Parser]
    http://xml.org/sax/features/namespaces = 1

    [XML::LibXML::SAX]
    http://xml.org/sax/features/namespaces = 1



  • 5.  Re: perl 5.28: could not find ParserDetails.ini

    Posted Tue January 28, 2020 12:41 PM

    Originally posted by: janhar


    This file will be included in a future AIX package, the release is TBD.

    Please note, The perl shipped with AIX in the perl.rte fileset is intended for sole use by the operating system.  The version may introduce deprecations, and it may not be the latest level of Perl, due to the release cycles for the AIX images.  Custom modules installed to this perl installation will not be migrated during an update.  IBM recommends that customers install their required perl rpm package from the AIX Toolbox for Linux. The perl package will install to a different location, giving them control over any perl updates which could impact your environment.

     

    See "AIX Perl Updates and Support for perl.rte" for more details:

    https://www.ibm.com/support/pages/node/885927