Hello Monks!

Here is my problem. I am using XML::LibXML in one of my scripts. I wanted to use the script on a server running IBM AIX, so I asked the admin to install the modules. He did so, installed everything. Problem is, only some of the users is able to use the module.

To be a little more specific: We are developing telecommunications software on the servers. Each instance of the telecommunications framework we are using has its own user. The developers have access to the module, but not to the data of the framework. Logging in as the framework user, I have access to the framework data, which I should be processing with my script, but not to the module, although the admin installed everything.

So they asked me to reinstall the perl modules somehow for the framework users, because they can't get it to work. Now running Makefile.PL only says it can't find libxml2. I tried just about everything and googled for days, but haven't found anything useful.

Libxml2, libxml2-devel, libz and libiconv are installed. This is what i get:

elink2@q4de3msya04:/projects/elink2/USERS/mor/XML-LibXML-1.70> perl Makefile.PL DEBUG=1
enable native perl UTF8
running xml2-config...xml2-config --version
xml2-config --libs
xml2-config --cflags
ok (2.6.23)
looking for -lxml2... perl Makefile.PL 'INC=-I/opt/freeware/include/libxml2' 'LIBS=-L/opt/freeware/lib -lxml2 -lz -lpthread -liconv -lm' 'DEFINE= -DHAVE_UTF8'
INC = -I/opt/freeware/include/libxml2
LIBS = -L/opt/freeware/lib -lxml2 -lz -lpthread -liconv -lm
DEFINE = -DHAVE_UTF8
Warning: PERL_LIB (/temp/cpt5hli/comptel_common/tmp_cpt5hli/install/AIX/perl/lib/5.8.9) seems not to be a perl library directory
(strict.pm not found) at /projects/elink2/common/current/perl/lib/5.8.9/ExtUtils/MM_Unix.pm line 1727.
Have /projects/elink2/common/current/perl/lib/5.8.9/aix-thread-multi-64all/Config.pm expected /temp/cpt5hli/comptel_common/tmp_cpt5hli/install/AIX/perl/lib/5.8.9/aix-thread-multi-64all/Config.pm
Your perl and your Config.pm seem to have different ideas about the architecture they are running on.
Perl thinks: aix-thread-multi-64all
Config says: aix-thread-multi-64all
This may or may not cause problems. Please check your installation of perl if you have problems building this extension.
Writing Makefile for Conftest
make test 'OTHERLDFLAGS='
make: 1254-002 Cannot find a rule to create target /temp/cpt5hli/comptel_common/tmp_cpt5hli/install/AIX/perl/lib/5.8.9/aix-thread-multi-64all/Config.pm from dependencies.
Stop.
system call to 'make test 'OTHERLDFLAGS='' failed at Makefile.PL line 470.
no
looking for -llibxml2... perl Makefile.PL 'INC=-I/opt/freeware/include/libxml2' 'LIBS=-L/opt/freeware/lib -lxml2 -lz -lpthread -liconv -lm' 'DEFINE= -DHAVE_UTF8'
INC = -I/opt/freeware/include/libxml2
LIBS = -L/opt/freeware/lib -lxml2 -lz -lpthread -liconv -lm
DEFINE = -DHAVE_UTF8
Warning: PERL_LIB (/temp/cpt5hli/comptel_common/tmp_cpt5hli/install/AIX/perl/lib/5.8.9) seems not to be a perl library directory
(strict.pm not found) at /projects/elink2/common/current/perl/lib/5.8.9/ExtUtils/MM_Unix.pm line 1727. Have /projects/elink2/common/current/perl/lib/5.8.9/aix-thread-multi-64all/Config.pm expected /temp/cpt5hli/comptel_common/tmp_cpt5hli/install/AIX/perl/lib/5.8.9/aix-thread-multi-64all/Config.pm
Your perl and your Config.pm seem to have different ideas about the architecture they are running on.
Perl thinks: aix-thread-multi-64all
Config says: aix-thread-multi-64all
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Writing Makefile for Conftest
make test 'OTHERLDFLAGS='
make: 1254-002 Cannot find a rule to create target /temp/cpt5hli/comptel_common/tmp_cpt5hli/install/AIX/perl/lib/5.8.9/aix-thread-multi-64all/Config.pm from dependencies.
Stop.
system call to 'make test 'OTHERLDFLAGS='' failed at Makefile.PL line 470.
no
libxml2 not found
Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are.
Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter to see the exact reason why the detection of libxml2 installation failed or why Makefile.PL was not able to compile a test program.



The libraries are there, the user has execute/read right for them. Someone wrote that to detect libxml2 the installer script needed libz, which is installed as well.

If anyone has any idea on this matter, it would be greatly appreciated! Thank you!


In reply to XML::LibXML installation on AIX by fgxy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.