note 31833 added to ref.ming
| From: | php-page at mailfilter dot com dot ar | Date: | Mon, 05 May 2003 19:55:27 +0000 |
| Subject: | note 31833 added to ref.ming | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47554@lists.php.net to get a copy of this message | ||
This is how I got MING compiled into PHP with Solaris 2.6/2.8:
First, I didn't use the latest version of Bison, which gave me many troubles. I started having
the following already up and running:
* gtar-sparc.gz (from http://www.sunfreeware.com/ , just
uncompress with gzip -d and copy to /usr/local/bin with 755 as permissions).
* Solaris cc compiler 4.2 (I don't have a gnu C with all the installed libraries).
* GNU C (I had to use GNU C anyway because MING itself doesn't compile with my version of
Solaris C).
If you have a full-working gnu C, along with the libraries, ignore all the CC=cc settings in the
following procedure.
These are the versions and products/libraries I used:
apache_1.3.27.tar.gz
bison-1.28.tar.gz
flex-2.5.4a.tar.gz
m4-1.4.tar.gz
ming-0.2a.tgz
php-4.3.1.tar.gz
I used gtar to extract all the files:
gtar xzf apache_1.3.27.tar.gz
gtar xzf bison-1.28.tar.gz
gtar xzf flex-2.5.4a.tar.gz
gtar xzf m4-1.4.tar.gz
gtar xzf ming-0.2a.tgz
gtar xzf php-4.3.1.tar.gz
Next, Apache (you may not need all these options):
cd apache_1.3.27
Cc=cc ./configure --with-layout=Apache \
--prefix=/u01/apache/server \
--without-execstrip \
--server-uid=nobody \
--server-gid=nogroup \
--disable-module=userdir \
--enable-module=unique_id \
--enable-module=expires \
--enable-module=headers \
--enable-module=include \
--enable-module=info \
--enable-module=status \
--enable-module=so
make
su (root password)
make install
^D
cd ..
Next, bison:
cd bison-1.28
CC=cc ./configure
make
su (root password)
make install
^D
cd ..
Next, m4:
cd m4-1.4
CC=cc ./configure
make
su (root password)
make install
^D
cd ..
Next, flex:
cd flex-2.5.4a
CC=cc ./configure
make
su (root password)
make install
^D
cd ..
Next, ming:
cd ming-0.2a
make static
mkdir lib include
cp libming.a lib/
cp ming.h include/
cd ..
Next, PHP (you may not need all these options):
cd php-4.3.1
CC=cc ./configure \
--with-ming=/u01/apache/products/ming-0.2a/ \
--with-apxs=/u01/apache/server/bin/apxs \
--enable-sigchild \
--enable-track-vars \
--with-xml
make
su (root password)
make install
^D
Got it.
--
http://www.php.net/manual/en/ref.ming.php
http://master.php.net/manage/user-notes.php?action=edit+31833
http://master.php.net/manage/user-notes.php?action=delete+31833
http://master.php.net/manage/user-notes.php?action=reject+31833