From: xoriant at yahoo dot com
Operating system: SunOS 5.10 Generic_118833-17 sun
PHP version: 5.2.1
PHP Bug Type: Apache2 related
Bug description: PHP installation problems
Description:
------------
I know these kind of bugs reported before.. but i am still stuck with it
and unable to move ahead. Trying to install PHP5 on Solaris10.
Installed related packages, apache, libxml2, etc. See the details below.
Pre PHP installation steps i followed:
Box using:
SunOS 5.10 Generic_118833-17 sun4u sparc SUNW,Ultra-80:
gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
LD_LIBRARY_PATH=/usr/local/lib:/usr/openwin/lib/X11:/usr/openwin/lib:/usr/local:/usr/bin/perl:/usr/lib:/oracle/product/10.2/lib:/usr/dt/lib
PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/sfw/bin:/usr/ucb:/usr/dt/bin:/svn/bin
installed
libtool-1.5
neon-0.25.5
open ssl failed to make using above path!
PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/sfw/bin:/usr/local/bin:/usr/ucb:/usr/dt/bin:/svn/bin:/home/sjadhav/bin:/oracle/product/10.2/bin:/usr/local/bin
openssl-0.9.8e
CC="gcc" ./config --prefix=/www/apache2/openssl
--openssldir=/www/apache2/openssl
./make
./make install
httpd-2.2.4.tar
CC="gcc" ./configure \
--prefix=/www/apache2 \
--enable-dav \
--enable-dav-fs \
--enable-dav-lock \
--enable-deflate \
--enable-rewrite \
--enable-so=so \
--enable-speling \
--enable-ssl \
--with-ssl=/www/apache2/openssl \
--enable-info \
--enable-cgi \
--enable-rewrite \
--enable-speling \
--enable-usertrack \
--enable-mime-magic
I have not done SSL CERT part yet (certificates) so only apache works but
not with https.
libxml2-2.6.26
./configure
./make
./make install
but xml2-config --version gives
2.6.10
then I removed all old 2.6.10 references from path.
PHP:
./configure \
--with-apxs2=/www/apache2/bin/apxs \
--prefix=/www/apache2/php \
--with-config-file-path=/www/apache2/php \
--enable-force-cgi-redirect \
--disable-cgi \
--with-zlib \
--with-gettext \
--enable-libxml \
--with-libxml-dir=/usr/local
make
make install
Actual result:
--------------
Installing PEAR environment: /www/apache2/php/lib/php/
ld.so.1: php: fatal: relocation error: file
/source/php-5.2.1/sapi/cli/php: symbol
xmlParserInputBufferCreateFilenameDefault: referenced symbol not found
*** Error code 137
The following command caused the error:
/source/php-5.2.1/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0
-dopen_basedir= -derror_reporting=E_ALL -dmemory_limit=-1
-ddetect_unicode=0 pear/install-pear-nozlib.phar -d
"/www/apache2/php/lib/php" -b "/www/apache2/php/bin"
make: Fatal error: Command failed for target `install-pear-installer'
Current working directory /source/php-5.2.1
*** Error code 1
The following command caused the error:
if test -f pear/install-pear-nozlib.phar && /source/php-5.2.1/build/shtool
mkdir -p /www/apache2/php/lib/php; then \
make -s install-pear-installer; \
else \
cat /source/php-5.2.1/pear/install-pear.txt; \
fi
make: Fatal error: Command failed for target `install-pear'
then I tried without pear:
-------------------------
PHP:
./configure \
--with-apxs2=/www/apache2/bin/apxs \
--prefix=/www/apache2/php \
--with-config-file-path=/www/apache2/php \
--enable-force-cgi-redirect \
--disable-cgi \
--with-zlib \
--with-gettext \
--enable-libxml \
--with-libxml-dir=/usr/local
make
make install
./apachectl -k start
httpd: Syntax error on line 53 of /www/apache2/conf/httpd.conf: Cannot
load /www/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal:
relocation error: file /www/apache2/modules/libphp5.so: symbol
xmlParserInputBufferCreateFilenameDefault: referenced symbol not found
I am not an expert but I tried with other options as well, but getting the
same error. Definitely I must be missing something..
Your help/solution is highly appreciated!
--
Edit bug report at http://bugs.php.net/?id=40902&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40902&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40902&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40902&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40902&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40902&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40902&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40902&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40902&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40902&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40902&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40902&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40902&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40902&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40902&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40902&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40902&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40902&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40902&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40902&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40902&r=mysqlcfg