LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-22-2011, 12:28 PM   #1
lfs_mm
Member
 
Registered: Nov 2011
Posts: 35

Rep: Reputation: Disabled
Compiling XML-Parser-2.41


Hello everybody

I try to compile the XML-Parser-2.41 on my lfs distribution. The library needs the EXPAT Packet which i successfully compiled/installed.
Then i tried to compile the xml parser with following statement:

Code:
perl Makefile.PM EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
But it comes to following error message:

Code:
/sources/avahi/XML-Parser-2.41 # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
/sources/avahi/XML-Parser-2.41/assertlibgXGHds5G: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

Expat must be installed prior to building XML::Parser and I can't find
it in the standard library directories. Install 'expat-devel' package with your
OS package manager. See 'README'.

Or you can download expat from:

http://sourceforge.net/projects/expat/

If expat is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

    EXPATLIBPATH=...  To set the directory in which to find libexpat

    EXPATINCPATH=...  To set the directory in which to find expat.h

For example:

    perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.

Checking if your kit is complete...
Looks good
Warning: prerequisite LWP 0 not found.
Have /tools/lib/perl5/5.12.1
Want /tools/lib/perl5/5.12.1/i686-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.12.1]
Config says: [i686-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Have /tools/lib/perl5/5.12.1
Want /tools/lib/perl5/5.12.1/i686-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.12.1]
Config says: [i686-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
the shared library is in the specified folder. Why should the program don't find it? Any suggestions?

Greetings.
 
Old 11-22-2011, 05:06 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
After you installed expat, did you run ldconfig and is /usr/local/lib in your library path?
 
Old 11-23-2011, 03:06 AM   #3
lfs_mm
Member
 
Registered: Nov 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Thx. I add the path to my ld.so.conf file and run a ldconfig.
Now the output is diffrent after running with the same command -> "perl Makefile.PM EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include" :

Code:
/sources/avahi/XML-Parser-2.41 # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
Warning: prerequisite LWP 0 not found.
Have /tools/lib/perl5/5.12.1
Want /tools/lib/perl5/5.12.1/i686-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.12.1]
Config says: [i686-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Have /tools/lib/perl5/5.12.1
Want /tools/lib/perl5/5.12.1/i686-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.12.1]
Config says: [i686-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
Why should perl think about another architecture? It didn't work anyway. After that i tried to install intltool but it complains that the
XML::Parser was not found.
The script above says something about "Writing Makefile for XML::Parser::Expat | Writing Makefile for XML::Parser". Where should these make files be?

Greetings
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for XML::Parser... configure: error: XML::Parser perl module is required for kornerr Linux - General 11 11-16-2008 07:24 AM
PHP XML Parser mindjet Programming 2 05-18-2008 12:43 PM
XML Parser... Prada Linux - Software 2 04-17-2007 11:26 AM
XML Parser bulkman Linux - Software 6 04-29-2005 07:01 AM
gDesklets and the xml parser doralsoral Linux - Software 1 05-08-2004 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration