Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

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 ]

[Page 1]  [Page 2]  


Comments:
RE: Unable to load dynamic library './php_minkctran01/17/05 11:26
FDB Files Free For the TakingMary11/26/02 21:31
RE: Unable to load dynamic library './php_ming.soExperttek11/18/02 23:26
RE: Unable to load dynamic library './php_minTjerk09/06/02 06:40
Como hago para:MAURICIO07/22/02 15:17
Unable to load dynamic library './php_ming.soFrancesco Moi06/18/02 16:44
can't find 'php_ming.so.gz' fileFrancesco Moi06/18/02 04:32
bumping text with mingdehian06/10/02 10:42
create scaling text with ming functionsdehian06/10/02 06:57
does anyone have any fdb file i could try?dehian06/10/02 05:03
ming & php mismatchdehian06/10/02 03:34
ming+win2kdehian06/07/02 05:40
MING for php 4.2.0 on WINNTnitin06/04/02 05:55
RE: Ming and PHP4.1.xLudo05/20/02 21:25
RE: ming dllyepps04/15/02 09:44
RE: ming dllRoman04/15/02 09:37
ming dllphil04/02/02 09:59
Ming and PHP4.1.xnick03/26/02 12:10
RE: The answer to: MING + Windows2KVAYKENT02/27/02 15:22
The answer to: MING + WindowsVAYKENT02/27/02 02:48
Ming-Binary for PHP4.1.1Mate Jovic02/11/02 03:42
Any suggestions? pleaserakesh01/28/02 20:18
Ming in PHP/WinEmperor01/22/02 13:40
RE: This is useless..Ridwan Ismoyo01/19/02 04:13
Ming in Debian unstableErich01/11/02 19:43
PHP module dieMariano C12/29/01 12:03
RE: look for de distrib of ming for winJoscha Feth12/26/01 14:59
look for de distrib of ming for winzenP12/21/01 11:26
RE: Configuring ming in php4.08 on windowsMads Østerby12/15/01 03:47
Help !I can't use the *.fdb in php4.1 !yang12/13/01 05:35
RE: Flash and MySql databaseYuri Mikhailkov11/30/01 18:48
RE: Flash and MySql databaseEmperor11/30/01 14:19
php4.06+apche 1.3.22+WinNt4.0(Help!!)Nguyen11/29/01 21:34
RE: Flash and MySql databaseSocratez11/28/01 18:12
WATS PHP AND HOW DO I START?Joker11/22/01 07:19
Flash and MySql databaseSuria Paulus Irawan11/20/01 09:46
make errorsjahmon11/10/01 04:23
aku nggak tau tentang PHP.bisa minta tolongazhis11/08/01 20:20
input text in mingLullabee11/06/01 08:45
RE: Configuring ming in php4.08 on windowsSpyros Kyrmitsis10/30/01 02:51
PHP/MingBasri Hasan10/26/01 01:25
Configuring ming in php4.08 on windowsRamesh10/16/01 03:17
php bagi pemulaprast10/06/01 02:10
Any Suggestions?Ben10/05/01 19:50
bantuin dongdaus10/03/01 08:01
Dimana dapetin sourcenya...?Arbyn Dungga10/02/01 06:06
RE: This is useless..Sig09/24/01 13:26
tentang php arief wuryanto09/20/01 08:52
Are there version for windows ?Alawi09/08/01 07:36
RE: What is Ming?CAshpoint09/05/01 19:51
What is Ming?TomG08/31/01 07:01
Aricle titleAndreas Bernhardsen08/24/01 00:17
PHP Info Wojciech Kalka08/19/01 20:16
Debian 3.0ß and Ming Wojciech Kalka08/19/01 20:11
Random database accessGeorge Wood08/17/01 10:55
Ming and Debian/unstableChristian Rishoej08/15/01 18:54
SWF output libraryMichael Tacelosky08/15/01 12:52
This is useless..Captain Proton08/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.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.