Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running make on HPUX

Status
Not open for further replies.

oingoboingo

Technical User
Dec 8, 2003
4
AU
Hi.
I have been trying to get my perl script to understand the expat perl module. It's been a long journey unfortunately.
Anyway, I would like some confirmation on whether I am compiling things correctly and libraries are being put into the correct places.
Okay, the readme states that I run the configure command.
I do this and everything seems to pass fine. I am now using gcc compiler.
Once I have done this, I run the /usr/bin/make command but it does not execute anything. It just returns me to the next line.

However, prior to getting gcc installed on the system - and using cc, after running configure, I would run the make command it would actually produce something like the following:


/bin/sh ./libtool --silent --mode=compile cc -g -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
cpp: "lib/xmlparse.c", line 75: warning 2013: Unknown preprocessing directive.
cpp: "lib/xmlparse.c", line 855: error 4065: Recursion in macro "parsing".
*** Error exit code 1


Which is why I went to using gcc - from searches I had done on recommended using this on HPUX.

So my questions are 1. why doesnt make do anything anymore. and 2. do i have to copy the .o or .h files to a perl lib directory or something so that when I run my perl script, I don't get the following message:

Can't locate loadable object for module XML::parser::Expat in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC2.0 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .) at /opt/perl5/lib/5.6.1/XML/Parser.pm line 15
Compilation failed in require at /opt/perl5/lib/5.6.1/XML/Parser.pm line 15.
BEGIN failed--compilation aborted at /opt/perl5/lib/5.6.1/XML/Parser.pm line 19.
Compilation failed in require at ./wdmdumpprf_2_report.pl line 28.
BEGIN failed--compilation aborted at ./wdmdumpprf_2_report.pl line 28.

Hope you can help.....been going on too long...
 
I am not sure if it works but try,(after all you got nothing o loose)

Download the XML-Parser-2.34.tar.gz and unzip it, and go into the folder XML-Parser-2.34

Then run Makefile.pl like this
Code:
> perl Makefile.pl

you gonna get this output

Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser

then run make like this
Code:
> make

you gonna get ouput like this
.........
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
..........

then run make install like this

Code:
> make install

and you gonna get ouput like this
.............
Installing /usr/lib/perl5/site_perl/5.8/XML/Parser.pm
Installing /usr/lib/perl5/site_perl/5.8/XML/Parser/Expat.pm
Installing /usr/lib/perl5/site_perl/5.8/XML/Parser/LWPExternEnt.pl
Installing /usr/lib/perl5/site_perl/5.8/XML/Parser/Encodings/big5.enc
Installing /usr/lib/perl5/site_perl/5.8/XML/Parser/Encodings/euc-kr.enc
Installing /usr/lib/perl5/site_perl/5.8/XML/Parser/Encodings/iso-8859-2.enc
..............
and hopefully your module will be installed and ready to use


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top