Michel JORDA wrote:
Hi everybody
I Have to compile a library (namely, a payment library) and the bank
release a .c source. Therefore I need to make and compile it, but they
mention that
"you need to install the php-devel package in order to compile"...
what should I download
- on my macosx
- and on my linux
to compile that ?
Thanks for your help
MJ
Hi,
you may get PHP sources from www.php.net . Then untar in some directory.
Then you need to create the skeleton of your extension by either executing
ext/ext_skel.sh or using PEAR's module for doing that.
Then you need to edit your config.m4 which will be under ext/xyz/config.m4
(xyz is the name of the extension). Then re-run ./buidlconf . After that
just use configure (configure --help | less should show your extension).
For compiling - make. Every time you change sth in config.m4 you have to re-run
buildconf. There is a way to build only a specific directory with phpize but
then you need to have this php-devel package or to have installed from source
with make install.
HTH,
Andrey
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php