Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82872 invoked by uid 1010); 6 Apr 2005 06:11:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82857 invoked from network); 6 Apr 2005 06:11:06 -0000 Received: from unknown (HELO jumpy.it) (127.0.0.1) by localhost with SMTP; 6 Apr 2005 06:11:06 -0000 X-Host-Fingerprint: 80.168.8.116 iko.gotobg.net Linux 2.4/2.6 Received: from ([80.168.8.116:42572] helo=iko.gotobg.net) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 84/EA-19272-87D73524 for ; Wed, 06 Apr 2005 02:11:04 -0400 Received: from p54a0c93f.dip.t-dialin.net ([84.160.201.63] helo=[192.168.0.41]) by iko.gotobg.net with esmtpa (Exim 4.43) id 1DJ3kj-000168-F1; Wed, 06 Apr 2005 09:11:01 +0300 Message-ID: <42537D70.5000209@hristov.com> Date: Wed, 06 Apr 2005 08:10:56 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050219 MIME-Version: 1.0 To: Michel JORDA CC: internals@lists.php.net References: <1guiprq.tvimro1s8jbb4N%mjorda@mls.nc> <42514748.2040609@hristov.com> <1gukjuh.1c7o037qqmz1rN%mjorda@mls.nc> In-Reply-To: <1gukjuh.1c7o037qqmz1rN%mjorda@mls.nc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Compiling a new library From: php@hristov.com (Andrey Hristov) You definitely need header files Andrey Michel JORDA wrote: > 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 > >