Thankyou to all responded to my query about how to get PHP 4.1.1 compiled
sucessfully on Tru64 UNIX 5.1A. I sent my original query at 10pm on a
Saturday night (!) and within 5 mins had 3 replies including an answer
which solved my problem from Michael Crowley. The level of expertise on
this list never ceases to amaze me!
----------------------------- problem ---------------------------------------
>Hi admins,
>
>Has anyone successffuly compiled PHP 4.1.1 (or even 4.0.6) on
>Tru64 UNIX 5.1, 5.1A ? I have had little success in getting it
>to compile. I have tried a compaq cc/make environment, and a GNU gcc/gmake
>environment. If anyone has been able to get it to compile, I would
>appreciate finding out how you did it.
>
>Thanks
>
>Paul
-----------------------------------------------------------------------------
The solution was to cut out the GNU stuff entirely. I have a lot of GNU
programs, make, tar, autoconf, etc installed in my /usr/local tree. Even
though I specified to use the compaq compiler and compaq make in the
build, the GNU programs in /usr/local were the problem. Once I removed
these from the path I could compile sucessfully with a pure compaq compile
environment.
setenv CC cc
./configure --prefix=/usr/local/apache/php --with-apxs=/usr/local/apache/bin/apxs
make
make install
I recieved many good replies which are listed below.
--------------------------- replies ---------------------------------------------
>From mcrowley_at_mtholyoke.edu Tue Jan 15 15:22:16 2002
Date: Sat, 12 Jan 2002 18:16:50 -0500 (EST)
From: Michael A. Crowley <mcrowley_at_mtholyoke.edu>
To: Paul Reilly <pareilly_at_tcd.ie>
Subject: Re: PHP 4.1.1. on Tru64 5.1A ?
On tu51 pk4, this works:
#!/bin/sh
# Related to php source.
./configure --with-apache=../apache \
--with-gettext=/local \
--with-xml \
--with-imap=/lsys/ftp/pub/far/pine/imap/imap
The imap is not compiled with ssl. Apache is apache_1.3.22
There are many places for this to not work. For example,
I had a libc-client.a in /local/lib that I didn't know about
and it found it _before_ the c-client lib that I thought
I was pointing at in the above lines.
-mike
-----------------------------------------------------------------------------
Michael A. Crowley Director of Networking
mcrowley_at_mtholyoke.edu 216 Dwight Hall, Mount Holyoke College
413-538-2140 fax: 413-538-2331 South Hadley, MA 01075-6415
http://www.mtholyoke.edu/~mcrowley http://www.mtholyoke.edu/lits/network
-----------------------------------------------------------------------------
=============================================================================================
=============================================================================================
>From tyler_h_at_bellsouth.net Tue Jan 15 15:22:24 2002
Date: Sat, 12 Jan 2002 18:16:39 -0500
From: Tyler Hall <tyler_h_at_bellsouth.net>
To: Paul Reilly <pareilly_at_tcd.ie>
Subject: Re: PHP 4.1.1. on Tru64 5.1A ?
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
I compiled 4.0.6 with apache on a 5.1a 433au. I don't remember there being
too many snags.. I believe I still have the build dir if you want the
binaries, etc.
Tyler
=============================================================================================
=============================================================================================
Date: Sun, 13 Jan 2002 13:37:04 -0500 (EST)
From: cartom01_at_endeavor.med.nyu.edu
To: Paul Reilly <pareilly_at_tcd.ie>
Subject: Re: PHP 4.1.1. on Tru64 5.1A ?
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Hi Paul,
I just configured php 4.1.1 on Tru64 5.1 rev 732.
Here's my configure script.
./configure --with-apache=/usr/local/src/apache/apache_1.3.14/ --with-
mysql=/usr/local/mysql --enable-track-vars --with-ldap=/usr/local --with-
imap=/usr/localpwd --with-gettext --enable-versioning
I also noticed that there is a binary called "shtool" in /php-4.1.1/build/
When I untar'd the php tar, it didn't make this file executable, and it was
failing but not bad enough to show in any logs, except the config.log.
Make sure that file is executable and it should build ok.
Thanks,
Mike Cartoscelli
Senior Systems Administrator
New York University School of Medicine.
mikec_at_med.nyu.edu
=============================================================================================
=============================================================================================
>From xavier_at_bru-noc.net Tue Jan 15 15:23:06 2002
Date: Sun, 13 Jan 2002 21:14:07 +0100 (CET)
From: Xavier Mertens <xavier_at_bru-noc.net>
To: Paul Reilly <pareilly_at_tcd.ie>
Subject: Re: [Tru64] PHP 4.1.1. on Tru64 5.1A ?
Hi Paul,
PHP 4.0.6 installed successfully on Tru64 5.1.
Here is my "configure" script:
#!/bin/sh
/usr/local/bin/make distclean
./configure --enable-track-vars --with-informix=yes --with-gd --with-pdflib=/usr/local/lib --with-tiff-dir=/usr/local --with-png-dir=/usr/local/lib --without-mysql --with-zlib
Note: GNUname used and standard cc.
Is there any specific error message?
Xavier
=============================================================================================
=============================================================================================
>From KAtchins_at_bw.edu Tue Jan 15 15:23:18 2002
Date: Mon, 14 Jan 2002 02:29:42 -0500
From: Kenneth Atchinson <KAtchins_at_bw.edu>
To: 'Paul Reilly ' <pareilly_at_tcd.ie>
Subject: RE: PHP 4.1.1. on Tru64 5.1A ?
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Paul,
I got PHP 4.1.1 to compile on Tru64 UNIX 5.1 with patches. You will
probably get some errors in the linking phase, of which you follow the
directions in the INSTALL on linking manual using "libtool".
You can also modify the libtool script, taking out the references to
"-Wl..." which is where the problem lies.
=============================================================================================
=============================================================================================
Date: Mon, 14 Jan 2002 14:06:43 -0500
From: Greg Freemyer <freemyer_at_NorcrossGroup.com>
To: Paul Reilly <pareilly_at_tcd.ie>
Subject: re: PHP 4.1.1. on Tru64 5.1A ?
Paul
Have you looked into the "Compaq Secure Server" that comes on the associated products CD.
>From what I understand this is a preconfigured Apache/PHP/SSL/Tomcat environment and I believe it is supported by Compaq.
Unfortunately, I don't know which version of PHP, or anything else, it uses. Maybe someone else on the list can answer that.
A brief description can be found in the "WEB SERVER" section of
http://www.tru64unix.compaq.com/docs/iass/OSIS_57/documents/readme/osis_spd.html
But again, it does not give version numbers.
Greg Freemyer
Internet Engineer
Deployment and Integration Specialist
The Norcross Group
www.NorcrossGroup.com
=============================================================================================
=============================================================================================
Received on Tue Jan 15 2002 - 16:28:06 NZDT