Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

XML::LibXML::Common libxml relocation

by primus (Scribe)
on Oct 22, 2003 at 05:53 UTC ( [id://301166]=perlquestion: print w/replies, xml ) Need Help??

primus has asked for the wisdom of the Perl Monks concerning the following question:

hail monks, i am trying to run the XML::LibXML::Common module out of my home directory in a private library directory, like
/home/me/lib/auto/XML/LibXML/Common/Common.so

i also had to put the libxml files there to:
/home/me/lib/include/libxml2/libxml/

the XML::libXML::Common compiled fine, as long as i added:
/home/me/lib/include/libxml2/libxml

to the Makefile, but when i say use XML::LibXML::Common in a try.pl file i get:
Can't load '/home/me/lib/auto/XML/LibXML/Common/Common.so' for module +XML::LibXML::Common: ld.so.1: perl: fatal: relocation error: file /ho +me/me/lib/auto/XML/LibXML/Common/Common.so: symbol xmlFree: reference +d symbol not found at /opt/local/packages/perl-5.6.1/lib/5.6.1/sun4-s +olaris/DynaLoader.pm line 206. at try.pl line 11 Compilation failed in require at try.pl line 11. BEGIN failed--compilation aborted at try.pl line 11.

and i do have:
use lib '/home/me/lib';

in my try.pl...
...i dont quite know what is wrong.. thanks for the help monks.

Replies are listed 'Best First'.
Re: XML::LibXML::Common libxml relocation
by suavebenny (Initiate) on Oct 22, 2003 at 14:07 UTC
    A few things.

    First, are you sure that the .so file is in the right place? Did the compile really work correctly?

    Also, were you messing around as root at some point, and forgot to change the permissions so your regular username can't access the .so file?

    Those get me all the time. Have you tried CPAN to do the install/makes of the new perl modules? I've found that CPAN helps tremendously with the build/install/config issues like this....

      well, i think it is in the right place, i mean i have compiled other .so files, and they seem to work... i also do not have root on the system, but the permissions are right.

      i dont know if using CPAN would work... i only have write permission to my ~me directory... thanks for the reply.

      EDIT

      also, is there a way that i can compile the .so file on my linux box for solaris?? i dont think so, but who knows...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://301166]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found