Where to find 64-bit based perl module like XML::Parser::Expat?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Where to find 64-bit based perl module like XML::Parser::Expat?
# 1  
Old 07-06-2010
Where to find 64-bit based perl module like XML::Parser::Expat?

Q: Where to get a 64 bit Expat.so?

I run a perl script and got this error:
Code:
Can't load '/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/XML/Parser/Expat/Expat.so' for module XML:parser::Expat: ld.so.1:myPerl: fatal: /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/XML/Parser/Expat/Expat.so: wrong ELF class: ELFCLASS32 at /home/lilili07/perl-5.8.4/built/sol-amd64-ss/lib/5.8.4/i86pc-solaris-thread-multi/DynaLoader.pm line 230

which means the 32bit Expat.so in /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/XML/Parser/Expat is not compatible with the 64bit perl which called it.

so to get a 64 bit Expat.so I downloaded source code from http://www.cpan.org/modules/by-modul...er-2.36.tar.gz and tried to compile it myself, but failed to do that. I think the reason is the paths in the make files is still for 32 bit verson. see the make file here:
Code:
...
CCCDLFLAGS = -KPIC
CCDLFLAGS = -R /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE
DLEXT = so
DLSRC = dl_dlopen.xs
...
OSNAME = solaris
OSVERS = 2.10
RANLIB = :
SITELIBEXP = /usr/perl5/site_perl/5.8.4
SITEARCHEXP = /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int
SO = so
EXE_EXT =
FULL_AR = /usr/ccs/bin/ar
VENDORARCHEXP = /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int
VENDORLIBEXP = /usr/perl5/vendor_perl/5.8.4
....

In fact I do not even know how these paths in the make file come. the begining of the make file shows this:
Code:
# It was generated automatically by MakeMaker version# 6.17 (Revision: 1.133) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.

Which means I should not change the path. and in fact I not even have all these paths...

Anyway. My Question is how/Where to get a 64 bit Expat.so? It will be better if sb. can show me the link of existing 64 bit Expat.so for solaris. I could not find it from Internet so far. Thanks,

Last edited by pludi; 07-07-2010 at 02:08 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl to run different parser based on digit

The perl parser below works as expected assuming the last digit in the NC_ before the . is a single digit. perl -ne 'next if $. == 1; if(/.*del(+)ins(+).*NC_0{4}(+).*g\.(+)_(+)/) # indel { print join("\t", $3, $4, $5, $1, $2), "\n"; } ' out_position.txt > out1.txt ... (8 Replies)
Discussion started by: cmccabe
8 Replies

2. Shell Programming and Scripting

HTML to XML parser

Hello forum, I am having problems to write a bash script. I am trying to get some information from a web page, I want to format it to XMLTV. This is web page: Programación de las cadenas etb1, etb2, etb3, canal vasco y etb sat | EITB Televisión I want to get something like this: <programme... (1 Reply)
Discussion started by: jlazkano
1 Replies

3. AIX

Perl Module (XML:DOM) dependency

Hi All, I am facing dependency on AIX :confused:.I am trying to run an script which requires PERL MODULE (XML::DOM) to be installed. Please find the attached file which shows the error i am getting (cant locate XML/DOM.pm in @INC). Please let me know how to install PERL MODULE (XML::DOM) ... (3 Replies)
Discussion started by: srivatsa86
3 Replies

4. Shell Programming and Scripting

Help required in Building an XML using SAX Parser in perl

I want to use sax parser for my application as i have 5 Lakhs of data. I have the xml file like this <Nodes> <Node> <NodeName>Company</NodeName> <File>employee_details.csv</File> <data>employee_data.txt</data> <Node> <NodeName>dummy</NodeName> ... (8 Replies)
Discussion started by: vanitham
8 Replies

5. Shell Programming and Scripting

Facing problem in XML::parser module in PERL

HI, I have XML file which is having values as Spanish character (UTF-8 encoding). I am using XML::parser module but my code is not able to read those characters. I did goggling but not able to find suitable solution. Anybody please help me out. XML file having characters like: ñ I am... (1 Reply)
Discussion started by: jatanig
1 Replies

6. UNIX for Advanced & Expert Users

XML parser to generate Tuxedo UD files

Hi, My requirement is like this. I have an XML file which needs to be converted to Tuxedo UD files(param name and param value). Does anybody have a sample perl xml parser script for this? (0 Replies)
Discussion started by: guruprasadpr
0 Replies

7. Shell Programming and Scripting

Perl - problem with CPAN module XML::Simple

Hi All, I am trying to run the following program #!/usr/bin/perl # use module use XML::Simple; use Data::Dumper; # create object $xml = new XML::Simple; # read XML file $data = $xml->XMLin("dump.xml"); # print output print Dumper($dump); At first i had the error mesage saying... (5 Replies)
Discussion started by: userscript
5 Replies

8. Shell Programming and Scripting

xml-parser with perl

Hello I want to write an xml- parser with perl an i use the libary XML::LibXML. I have a problem with the command getElementsByTagName. If there is an empty tag, the getElementsByTagName method returns a NodeList of length zero. how can i check if this is a nodelist of lenght zero?? i... (1 Reply)
Discussion started by: trek
1 Replies

9. Shell Programming and Scripting

Perl XML:Parser help

I am very new to XML. Really I have an excel file that I am trying to read w/ Perl on a Linux machine. I don't have a mod for reading excel files so I have to convert the excel file to xml to be able to read it. I can read the file and everything is ok except...the Number style is being dropped... (0 Replies)
Discussion started by: vincaStar
0 Replies

10. Shell Programming and Scripting

xml parser in perl

hi all i want to read xml file in perl i am using XML::Simple for this. i am not getting how to read following file removing xml file due to some reason (1 Reply)
Discussion started by: zedex
1 Replies
Login or Register to Ask a Question