php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40902 PHP installation problems
Submitted: 2007-03-23 10:49 UTC Modified: 2007-03-26 03:21 UTC
From: xoriant at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.1 OS: SunOS 5.10 Generic_118833-17 sun
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xoriant at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-03-23 10:49 UTC] xoriant at yahoo dot com
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!




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-23 11:01 UTC] tony2001@php.net
You have two different libxml2 installed, see:
http://www.opensubscriber.com/message/php-install@lists.php.net/5943507.html
 [2007-03-23 11:05 UTC] xoriant at yahoo dot com
Thanks a lot for your quick reply.
Yes I noticed that too... but I removed references of old libxml, i mean i just renamed it... do I need to uninstall it or can I delete the files and folders which have old libxml? Sorry for asking dumb question..
 [2007-03-23 11:09 UTC] tony2001@php.net
>do I need to uninstall it or can I delete the files and folders which have old libxml? 
Can you delete a part of your system? I don't know if any other components depend on it, so you better ask on some Solaris support forum.
 [2007-03-26 03:21 UTC] xoriant at yahoo dot com
Thanks a alot.
Problem I noticed was with gcc version.
I have upgraded it to 3.4.6 and it worked!
Thanks again for your kind help!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 08:01:26 2024 UTC