Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15836 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95968 invoked by uid 1010); 6 Apr 2005 00:42:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95676 invoked from network); 6 Apr 2005 00:42:43 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 6 Apr 2005 00:42:40 -0000 X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.4/2.6 Received: from ([80.91.229.2:37242] helo=ciao.gmane.org) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 2A/8D-19272-B5033524 for ; Tue, 05 Apr 2005 20:42:03 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DIya6-0005Wd-37 for internals@lists.php.net; Wed, 06 Apr 2005 02:39:42 +0200 Received: from 202.22.238.157 ([202.22.238.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2005 02:39:42 +0200 Received: from mjorda by 202.22.238.157 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2005 02:39:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Wed, 6 Apr 2005 11:41:16 +1100 Lines: 35 Message-ID: <1gukjuh.1c7o037qqmz1rN%mjorda@mls.nc> References: <1guiprq.tvimro1s8jbb4N%mjorda@mls.nc> <42514748.2040609@hristov.com> X-Gmane-NNTP-Posting-Host: 202.22.238.157 User-Agent: MacSOUP/2.6 (unregistered for 286 days) Sender: news Subject: Re: [PHP-DEV] Compiling a new library From: mjorda@mls.nc ((Michel JORDA)) Thanks for your help everybody ! it seems that the "better" way i found is cd 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 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