Step 1 I had to install mercurial, easy with my new Debian install,
I even have a little HP PIII 664.561 Mhz processor as a 32bit test area, nice and quiet compared to the Dual Opteron next to it!
#apt-get install mercurial
; hg clone http://code.kix.in/hg/web9
ack, no idea how to compile a PHP5 module
try this http://uk2.php.net/manual/kr/zend.creating.php
maht@rod:~/web9/php9p$ cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. -I../Zend -c -o ixp ixp.c
In file included from ixp.c:28:
php_ixp.h:35:17: error: php.h: No such file or directory
maht@rod:~/web9/php9p$ locate php.h
maht@rod:~/web9/php9p$
ok so now I need php source code
; cd /usr/local/lib
; apt-get source php5
; rm php5_*
; cd php5-5.2.0
; ./configure
lex: command not found
# apt-get install lex
E: Couldn't find package lex
great, I need to find a compatible lex
This gives me the chance to show off my Firefox bookmark for searching Debian packages.
I have a bookmark with this Location (with open in sidebar ticked)
javascript: deb_srch = prompt('Debian package search'); if(deb_srch !='') window.location='http://packages.debian.org/cgi-bin/search_packages.pl?exact=0&searchon=names&suite=all&case=insensitive§ion=all&keywords=' + escape(deb_srch) + '&arch=any';
which I though was a useful thing to know when I found out
Oh yeah, flex, that's the one
# apt-get install flex
back to the php5
configure: error: xml2-config not found. Please check your libxml2 installation.
this was only ever fun when you didn't know what the words meant
# apt-get install libxml2
libxml2 is already the newest version.
the excitement is building, I'll surrender and read the docs
nope, nothing useful there
; ./configure --disable-all
configure: error: xml2-config not found. Please check your libxml2 installation.
great disable all doesn't do that
I ended up with :
; ./configure --disable-all --disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --disable-pear --enable-fastcgi --enable-discard-path --enable-force-redirect '--with-config-file-path=/etc/php5'
; time make
Build complete.
real 9m10.632s
#make install
ixp nowhere to be seen, this isn't working out
Anant showed up and helped me out
; cd $home/web9/php9p
; phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
; ./configure --enable-ixp
; make
# make install
# echo 'extension=ixp.so' >> /etc/php5/cgi/php.ini
# /etc/init.d/lighttpd restart
# php -m
[PHP Modules]
date
ixp
Reflection
standard
[Zend Modules]
yay DONE IT
Record of some of the computer tech I deal with so that it's documented at least somewhere.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment