Re: Compiling a new library
| From: | (Michel JORDA) | Date: | Wed, 06 Apr 2005 00:41:16 +0000 |
| Subject: | Re: Compiling a new library | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15836@lists.php.net to get a copy of this message | ||
Thanks for your help everybody ! it seems that the "better" way i found
is
cd <mydirectory>
phpize
autoconf
./configure
make
make install
assuming that php is installed in the machine. I dont think the src are
needed.
Thanks for your help
Michel
Andrey Hristov <php@hristov.com> wrote:
> 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