Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41983 invoked by uid 1010); 4 Apr 2005 13:55:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41087 invoked from network); 4 Apr 2005 13:55:30 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 4 Apr 2005 13:55:30 -0000 X-Host-Fingerprint: 80.168.8.116 iko.gotobg.net Linux 2.4/2.6 Received: from ([80.168.8.116:40302] helo=iko.gotobg.net) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 8D/DA-19272-05741524 for ; Mon, 04 Apr 2005 09:55:29 -0400 Received: from p54a0e42a.dip.t-dialin.net ([84.160.228.42] helo=[192.168.0.41]) by iko.gotobg.net with esmtpa (Exim 4.43) id 1DIS34-0004wC-Ut for internals@lists.php.net; Mon, 04 Apr 2005 16:55:27 +0300 Message-ID: <42514748.2040609@hristov.com> Date: Mon, 04 Apr 2005 15:55:20 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050219 MIME-Version: 1.0 CC: internals@lists.php.net References: <1guiprq.tvimro1s8jbb4N%mjorda@mls.nc> In-Reply-To: <1guiprq.tvimro1s8jbb4N%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) 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