|
Getting Started with PHP/Ming
Installing PHP/Ming on Debian GNU/Linux
Okay, I'll use $MINGINST to state Ming
installation directory. For example, in my computer, the
installation directory is /usr/apps/src/ming-0.1.1.
So, if I say $MINGINST/php_ext, it means
/usr/apps/src/ming-0.1.1/php_ext.
My initial (intuitive, again) step was trying to recompile
the source code to get the shared object. The README
stated that the first thing to do was simply typing
make
static. This produced $MINGINST/libming.a and
some object files under $MINGINST/src. Next, still
following the README, I changed directory to
$MINGINST/php_ext and typed make.
Whew... lots of errors. I read the error messages and they were
about header files being not found. Maybe you think that it
shouldn't be a problem if we have apt-got (err... perfect form
of apt-get...) install php4-dev (for your
information, I'm using the stable version). The fact is: it is,
and it is because of the Debian directory layout that
"confuses" php-config --includes being used inside
Makefile. The same thing also applies for
php-config --extension-dir.With such a condition, in such a "quick and dirty" way, I modified Makefile so it became like this: (includes wrapped for formatting for this example)
prefix=`php-config --prefix`
includes=-I /usr/include/php4/main -I /usr/include/php4/Zend \
-I /usr/include/php4/ext/standard -I /usr/include/php4 \
-I /usr/include/php4/TSRM
extension=/usr/lib/php4/apache
DEFINES = -DHAVE_MING -DCOMPILE_DL_MING -DZEND_NEW_ERROR_HANDLING
CFILES = ming.c
php_ming.so: ming.o
${CC} -shared -fpic ming.o ../libming.a -o php_ming.so -lm
ming.o: ${CFILES}
${CC} ${DEFINES} -c ming.c -I. -I.. ${includes}
clean:
rm -f php_ming.so
install:
cp php_ming.so ${extension}
echo "Don't forget to add 'extension=php_ming.so' to php.ini!"
Please notice the changes: two additional variables
(includes and extension) and a few
changes in the targets ming.o and
install.
[ Next Page ]
| Comments: | ||
| RE: Unable to load dynamic library './php_min | kctran | 01/17/05 11:26 |
| FDB Files Free For the Taking | Mary | 11/26/02 21:31 |
| RE: Unable to load dynamic library './php_ming.so | Experttek | 11/18/02 23:26 |
| RE: Unable to load dynamic library './php_min | Tjerk | 09/06/02 06:40 |
| Como hago para: | MAURICIO | 07/22/02 15:17 |
| Unable to load dynamic library './php_ming.so | Francesco Moi | 06/18/02 16:44 |
| can't find 'php_ming.so.gz' file | Francesco Moi | 06/18/02 04:32 |
| bumping text with ming | dehian | 06/10/02 10:42 |
| create scaling text with ming functions | dehian | 06/10/02 06:57 |
| does anyone have any fdb file i could try? | dehian | 06/10/02 05:03 |
| ming & php mismatch | dehian | 06/10/02 03:34 |
| ming+win2k | dehian | 06/07/02 05:40 |
| MING for php 4.2.0 on WINNT | nitin | 06/04/02 05:55 |
| RE: Ming and PHP4.1.x | Ludo | 05/20/02 21:25 |
| RE: ming dll | yepps | 04/15/02 09:44 |
| RE: ming dll | Roman | 04/15/02 09:37 |
| ming dll | phil | 04/02/02 09:59 |
| Ming and PHP4.1.x | nick | 03/26/02 12:10 |
| RE: The answer to: MING + Windows2K | VAYKENT | 02/27/02 15:22 |
| The answer to: MING + Windows | VAYKENT | 02/27/02 02:48 |
| Ming-Binary for PHP4.1.1 | Mate Jovic | 02/11/02 03:42 |
| Any suggestions? please | rakesh | 01/28/02 20:18 |
| Ming in PHP/Win | Emperor | 01/22/02 13:40 |
| RE: This is useless.. | Ridwan Ismoyo | 01/19/02 04:13 |
| Ming in Debian unstable | Erich | 01/11/02 19:43 |
| PHP module die | Mariano C | 12/29/01 12:03 |
| RE: look for de distrib of ming for win | Joscha Feth | 12/26/01 14:59 |
| look for de distrib of ming for win | zenP | 12/21/01 11:26 |
| RE: Configuring ming in php4.08 on windows | Mads Østerby | 12/15/01 03:47 |
| Help !I can't use the *.fdb in php4.1 ! | yang | 12/13/01 05:35 |
| RE: Flash and MySql database | Yuri Mikhailkov | 11/30/01 18:48 |
| RE: Flash and MySql database | Emperor | 11/30/01 14:19 |
| php4.06+apche 1.3.22+WinNt4.0(Help!!) | Nguyen | 11/29/01 21:34 |
| RE: Flash and MySql database | Socratez | 11/28/01 18:12 |
| WATS PHP AND HOW DO I START? | Joker | 11/22/01 07:19 |
| Flash and MySql database | Suria Paulus Irawan | 11/20/01 09:46 |
| make errors | jahmon | 11/10/01 04:23 |
| aku nggak tau tentang PHP.bisa minta tolong | azhis | 11/08/01 20:20 |
| input text in ming | Lullabee | 11/06/01 08:45 |
| RE: Configuring ming in php4.08 on windows | Spyros Kyrmitsis | 10/30/01 02:51 |
| PHP/Ming | Basri Hasan | 10/26/01 01:25 |
| Configuring ming in php4.08 on windows | Ramesh | 10/16/01 03:17 |
| php bagi pemula | prast | 10/06/01 02:10 |
| Any Suggestions? | Ben | 10/05/01 19:50 |
| bantuin dong | daus | 10/03/01 08:01 |
| Dimana dapetin sourcenya...? | Arbyn Dungga | 10/02/01 06:06 |
| RE: This is useless.. | Sig | 09/24/01 13:26 |
| tentang php | arief wuryanto | 09/20/01 08:52 |
| Are there version for windows ? | Alawi | 09/08/01 07:36 |
| RE: What is Ming? | CAshpoint | 09/05/01 19:51 |
| What is Ming? | TomG | 08/31/01 07:01 |
| Aricle title | Andreas Bernhardsen | 08/24/01 00:17 |
| PHP Info | Wojciech Kalka | 08/19/01 20:16 |
| Debian 3.0ß and Ming | Wojciech Kalka | 08/19/01 20:11 |
| Random database access | George Wood | 08/17/01 10:55 |
| Ming and Debian/unstable | Christian Rishoej | 08/15/01 18:54 |
| SWF output library | Michael Tacelosky | 08/15/01 12:52 |
| This is useless.. | Captain Proton | 08/13/01 16:43 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


