Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread René Moonen

snip

 Yes.  Since 4.1.x at least.  But for XSLT you need to get expat and 
 Sablotron and link them into the compile (with the appropriate 
 ./configure options).

/snip

Hum, I did spent some time yesterday on exactly that, but with no 
success (yet).

I'm using
Linux RedHat 7.1.
Expat 1.95.3
Sablotron 0.95-1
PHP 4.2.1

Compiling and installing Expat and Sablotron works fine (so it seems) 
but after that I get errors compiling PHP with XSLT options. Compiling 
without the XSLT options works just fine. These are the PHP options I use:

--prefix=/usr/local/php
--with-config-file-path=/usr/local/php
--with-apxs=/usr/sbin/apxs
--enable-track-vars
--enable-magic-quotes
--enable-debugger
--enable-xslt
--with-xslt-sablot

The last two are the ones that I have added to allow for XSLT


Am I missing something?


René


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread Erik Price


On Thursday, June 27, 2002, at 03:14  AM, René Moonen wrote:

 Compiling and installing Expat and Sablotron works fine (so it seems) 
 but after that I get errors compiling PHP with XSLT options. Compiling 
 without the XSLT options works just fine. These are the PHP options I 
 use:

--prefix=/usr/local/php
--with-config-file-path=/usr/local/php
--with-apxs=/usr/sbin/apxs
--enable-track-vars
--enable-magic-quotes
--enable-debugger
--enable-xslt
--with-xslt-sablot

 The last two are the ones that I have added to allow for XSLT


 Am I missing something?

This is a command history from when I added XSLT to my dist.  It's older 
(PHP 4.1.2) but it should still work with newer PHP distributions:


2002-03-11 XSLT upgrade log for PHP

At this time, the /usr/local/src directory has the following directories 
(all expanded from tarballs):
apache_1.3.22/
expat-1.95.2/
mysql-3.23.46-pc-linux-gnu-i686/
php-4.1.2/
Sablot-0.90/
tarballs/

/usr/local/apache/bin/apachectl stop
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
(shuts down the daemons so we can work on them)

cd /usr/local/src/
(this is where we start)

pushd expat-1.95.2/ (enter the expat source directory)
less README
./configure --help
./configure
make
make install
popd (back to /usr/local/src)
(always good economy to read the docs and see what ./configure options 
there are, though none were actually chosen)

pushd Sablot-0.90/ (enter the Sablotron source directory)
less README
./configure --help
./configure
make
make install
popd (back to /usr/local/src)
(same as for expat)

pushd apache_1.3.22/ (enter the Apache source directory)
rm config.cache
make clean
pushd ./src/modules/php4/ (enter the php4 module source directory within 
the Apache source directory)
rm config.cache
make clean
popd (return to the Apache source directory)
(the rm and make clean commands were probably not necessary, but I 
wanted to be sure not to use any old data)

./configure --prefix=/usr/local/apache
(execute the ./configure script to show Apache where to be installed, 
but do not make yet)

pushd ../php-4.1.2/ (jump out of the Apache source directory to 
/usr/local/src/php-4.1.2)
rm config.cache
make clean
(clean up the php-4.1.2 source directory)
./configure --with-apache=/usr/local/src/apache_1.3.22/ \
--with-mysql=/usr/local/mysql/ \
--enable-sockets \
--with-zlib \
--with-xmlrpc \
--enable-xslt \
--with-xslt-sablot

make
make install
popd (back to the Apache source directory [/usr/local/src/apache_1.3.22])
(create the PHP binary with the ./configure options for using MySQL 
[requires zlib on RH 7.2], socket functions, XML-RPC, and XSLT with 
Sablotron, and then install the binary into the modules source 
directory in the Apache source directory)

./configure --activate-module=src/modules/php4/libphp4.a \
--enable-module=so \
--enable-shared=max

(run the Apache ./configure script again, this time specifying that PHP 
is to be installed as a static module and that Apache should be compiled 
to accept later dynamic shared object modules [no, the libphp4.a file 
does not exist yet but ./configure it anyway])
pushd ./src/modules/php4/
make
(compile the PHP module into Apache, no 'make install' necessary)
popd (back to the Apache source directory, /usr/local/src/apache_1.3.22)
make
make install
(final compile and install of Apache with the now-embedded PHP module)
popd (back to /usr/local/src)
cd /usr/local/mysql/
./bin/safe_mysqld --user=mysqladm 
(start mysql daemon, safe_mysqld can only be executed from 
/usr/local/mysql)
/usr/local/apache/bin/apachectl start
(start Apache)

Then test to make sure that MySQL and Apache are working by requesting a 
phpinfo() page or MySQL-generated page.






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread James Clifford

On Thu, Jun 27, 2002 at 09:14:32AM +0200, René Moonen wrote:
 snip
 
 Yes.  Since 4.1.x at least.  But for XSLT you need to get expat and 
 Sablotron and link them into the compile (with the appropriate 
 ./configure options).
 
 /snip
 
 Hum, I did spent some time yesterday on exactly that, but with no 
 success (yet).
 
 I'm using
Linux RedHat 7.1.
Expat 1.95.3
Sablotron 0.95-1
PHP 4.2.1

I had the same problem yesterday afternoon, trying to compile PHP with
Sablotron 0.95. Last week, I did a compile with Sablotron 0.90 and everything
was good, so I downgraded 0.95 to 0.90 and was able to successfully build
PHP.

 Compiling and installing Expat and Sablotron works fine (so it seems) 
 but after that I get errors compiling PHP with XSLT options. Compiling 
 without the XSLT options works just fine. These are the PHP options I use:
 
--prefix=/usr/local/php
--with-config-file-path=/usr/local/php
--with-apxs=/usr/sbin/apxs
--enable-track-vars
--enable-magic-quotes
--enable-debugger
--enable-xslt
--with-xslt-sablot
 
 The last two are the ones that I have added to allow for XSLT
 
 
 Am I missing something?
 
 
 René
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
James Clifford
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread René Moonen

snip

I had the same problem yesterday afternoon, trying to compile PHP with
Sablotron 0.95. Last week, I did a compile with Sablotron 0.90 and everything
was good, so I downgraded 0.95 to 0.90 and was able to successfully build
PHP.
  

/snip

That did it for me also... thanks

René


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Compiling PHP with XML????

2002-06-26 Thread Scott Fletcher

I looked in the ./configure --help for the xml support.  It didn't say but
show some options such as disabling xml, using xml with different stuffs.
Nothing is being mentioned about enabling xml or something.  So, is xml in
php supported automatically?

Thanks,
 Scott



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compiling PHP with XML????

2002-06-26 Thread Erik Price


On Wednesday, June 26, 2002, at 11:57  AM, Scott Fletcher wrote:

 I looked in the ./configure --help for the xml support.  It didn't 
 say but
 show some options such as disabling xml, using xml with different 
 stuffs.
 Nothing is being mentioned about enabling xml or something.  So, is xml 
 in
 php supported automatically?

Yes.  Since 4.1.x at least.  But for XSLT you need to get expat and 
Sablotron and link them into the compile (with the appropriate 
./configure options).


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compiling PHP with XML????

2002-06-26 Thread Scott Fletcher

Cool!  Just finished compiling PHP before I read your post.  :-)  I took the
risk and include hte --enable-xml option even though it is not included
and it compiled successfully.  But with a lot of warning though.   Thanks!
Scott

Erik Price [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 On Wednesday, June 26, 2002, at 11:57  AM, Scott Fletcher wrote:

  I looked in the ./configure --help for the xml support.  It didn't
  say but
  show some options such as disabling xml, using xml with different
  stuffs.
  Nothing is being mentioned about enabling xml or something.  So, is xml
  in
  php supported automatically?

 Yes.  Since 4.1.x at least.  But for XSLT you need to get expat and
 Sablotron and link them into the compile (with the appropriate
 ./configure options).


 Erik




 

 Erik Price
 Web Developer Temp
 Media Lab, H.H. Brown
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php