Operating System - HP-UX
1748333 Members
3499 Online
108762 Solutions
New Discussion юеВ

Will webalizer binary for 11.00 execute on 10.20 ?

 
SOLVED
Go to solution
Ralph Grothe
Honored Contributor

Will webalizer binary for 11.00 execute on 10.20 ?

Hi,

this is related to my latest posting here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=624009

Customer wish to run W3 stats of their webserver which is Apache running on HP-UX 10.20 vintage K-class box.

Because of lack of compiler for 10.20 I fetched binaries (only for 11.00) from HP-UX Porters http://hpux.asknet.de/hppd/hpux/Networking/WWW/webalizer-2.01.10/
Having installed this depot on a 11.00 box I sloppily just copied the binaries to the 10.20 box, where on execution of course this is happening

$ /usr/local/bin/webalizer
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory

$ ldd /usr/local/bin/webalizer
sh: ldd: not found.

Anyway, ldd-ing on the 11.00 box it shows these relationships

$ ldd /usr/local/bin/webalizer
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl
/usr/local/lib/libpng.sl.3 => /usr/local/lib/libpng.sl.3
/usr/local/lib/libgd.sl.2 => /usr/local/lib/libgd.sl.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl
/usr/local/lib/libpng.sl.3 => /usr/local/lib/libpng.sl.3
/usr/local/lib/hpux32/libfreetype.so => /usr/local/lib/hpux32/libfreetype.so


OK, since the libc.2 thing isn't present on the 10.20 box, would it suffice to copy required libs from 11.00 to 10.20 box as well?

Has anyone a download source for the webalizer stuff for 10.20?

Rgds.
Ralph
Madness, thy name is system administration
12 REPLIES 12
Robert-Jan Goossens
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

Ralph Grothe
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

Robert,

your link refers to just another mirror of the same HP-UX porting site.
There I could, as mentioned, only find depot for 11.00.

Defying the target mismatch, and attempting to install anyway fails.
(ok, I haven't tried the "-x allow_incompatible=true" switch yet, whatever this may yield?)


[root@merkur:/ROOT]
# swinstall -v -x mount_all_filesystems=false -s /tmp/webalizer.depot \*

======= 06/29/04 16:27:33 METDST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@merkur".

* Beginning Selection
* Target connection succeeded for "merkur:/".
WARNING: Invalid value defined for the keyword "data_model_revision",
at line 3. The value "2.40" is not a supported data model
revision. This release of the Software Distributor supports
the following values:

2.20 2.10 2.00
The SD product needs to be updated using the instructions in
the "Managing HP-UX With SD-UX" manual. Continuing to read
the file "/var/tmp/BAAa13663/catalog/INDEX" using the "2.20"
data model semantics. New attributes associated with the
"2.40" format will be ignored. Unrecognized attributes may
result in subsequent ERROR or WARNING messages. If errors
result from using the "2.20" semantics, you must update SD to
a version that supports the "2.40" "data_model_revision".
* "merkur:/tmp/webalizer.depot": This source is a tape device.
* "merkur:/tmp/webalizer.depot": Cannot open the logfile on
this target or source. Possibly the media is read-only or
there is a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.
ERROR: Could not apply the software selection "*" because there are
no product variations that are compatible with the destination
host(s). To select incompatible software, specify the "-x
allow_incompatible=true" option on the command line.
* Software selection failed for "merkur:/tmp/webalizer.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.



======= 06/29/04 16:27:36 METDST END swinstall SESSION
Madness, thy name is system administration
Manish Srivastava
Trusted Contributor
Solution

Re: Will webalizer binary for 11.00 execute on 10.20 ?

Hi,

11.00 binaries will not run on 10.20 boxes. Copying the libraries to 10.20 wont suffice.


manish
A. Clay Stephenson
Acclaimed Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

The general answer to your question is no; binary code is upwardly but not downwardly compatible. I've found a few exceptions (generally 32-bit statically linked 11.x binaries) but in your case the answer is no.

Plan B. Download the source and compile/link it.

Plan C. Migrate off the obsolete 10.20.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

No - as others have said you can't run 11.0 binaries on 10.20.

Just compile webalizer yourself:

http://www.mrunix.net/webalizer/


I prefer awstats:

http://awstats.sourceforge.net/

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
H.Merijn Brand (procura
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

--8<---
Because of lack of compiler for 10.20 I fetched binaries (only for 11.00) from HP-UX Porters http://hpux.asknet.de/hppd/hpux/Networking/WWW/webalizer-2.01.10/
Having installed this depot on a 11.00 box I sloppily just copied the binaries to the 10.20 box, where on execution of course this is happening
-->8---

You can get a pretty recent precompiled binary of GNU gcc for 10.20 from my site, which takes away that hurdle.

Additional needs may still be available (bison, flex, m4, gawk) since my 10.20 is still alive.

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ralph Grothe
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

Hello responders,

thanks for clarifying, actually that was what I already feared.

Geoff,

thanks for pointing me towards another webstat tool, which I will give a try.

Merijn,

thanks for listing the URLs of mirrors to your excellent site.
I will download your gcc build for 10.20
Apart, do you happen to have access to the HP-UX C++ compiler?
If so you could do me a great favour and build the MySQL libs for 11.00 and 11.11 for me, time permitting.
Please, have a look at
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=623440
Madness, thy name is system administration
H.Merijn Brand (procura
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

Sorry, we only have HP C-ANSI-C, no C++
We don't need it, and it's just too expensive to buy just for fun.

My gcc ports all include g++ (GNU gcc C++)
Would that suffice?

BTW mysql for HP-UX is available on the porting center: http://hpux.connect.org.uk/hppd/hpux/Development/Languages/mysql-4.0.15a/

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ralph Grothe
Honored Contributor

Re: Will webalizer binary for 11.00 execute on 10.20 ?

All binaries of MySQL for HP-UX I've come accross so far seem to have been built by GNU gcc.
We even received an Application CD set for HP-UX 11.00 March 2004 this morning, where they now put the MySQL binaries on CD4.
At the moment I have an swcopy job running that transfers this depot from the mounted CD to our depot server.
From an swlist's readme and description I couldn't find out how it was built, but I bet by gcc.

My problem is that I need to have instantiated database handles open for both DBMS Oracle, and MySQL simultanously.
You know better than me that DBD::Oracle is happier with an HP-UX C compiler than gcc on HP-UX, why my Perl was built with it.
On the other hand I of course couldn't install DBD::mysql with disparate Perl build and gcc built MySQL libs.
I would like to avoid separate Perl invocations in my DB scripts for the sake of "elegance".
Madness, thy name is system administration