Subject | Fwd: [firebird-php] Firebird and PHP-Interbase extension on a Mac (bsd) |
---|---|
Author | Graeme Bryan |
Post date | 2005-08-19T02:40:15Z |
Hi everybody
Its OK I have found the error producing config command and removed it (
'--with-pgsql=/Library/PHP4'). The compile has completed. I will let
you know how I go from here.
The reason this is happening is because I installed Complete PHP on Mac
OS X and they crammed as many extensions in as they thought was useful
so that no-one had to do much. I obviously do not have the right files
to complete the build for certain extensions
--
regards
Graeme Bryan
MindWars.
Begin forwarded message:
Its OK I have found the error producing config command and removed it (
'--with-pgsql=/Library/PHP4'). The compile has completed. I will let
you know how I go from here.
The reason this is happening is because I installed Complete PHP on Mac
OS X and they crammed as many extensions in as they thought was useful
so that no-one had to do much. I obviously do not have the right files
to complete the build for certain extensions
--
regards
Graeme Bryan
MindWars.
Begin forwarded message:
> From: Graeme Bryan <grae@...>[Non-text portions of this message have been removed]
> Date: 19 August 2005 12:03:18 PM
> To: firebird-php@yahoogroups.com
> Subject: Re: [firebird-php] Firebird and PHP-Interbase extension on a
> Mac (bsd)
>
> Hi Nige
>
> I am up to
>
>> 2.
>> Download the source for the version of PHP you're running(so things
>> have a
>> better chance of working) Expand it out somewhere(doesn't really
>> matter
>> where), cd into the directory, and just run the ./configure command
>> you got
>> from the previous step.
>
> It compiles fine until it starts trying to configure extensions. I
> have removed the first few that I have come across and moved on
> accordingly. However I am not sure what to do with this one...
>
> checking for PostgreSQL support... yes
> configure: error: Cannot find libpq.so. Please specify correct
> PostgreSQL installation path
>
> I do not need PostgreSQL support. So I am happy to turn this off. What
> should I do to stop this configure error?
>
> This is the original ./configure command pasted directly from the
> phpinfo page...
>
> './configure' '--prefix=/Library/PHP4'
> '--with-apxs2=/Library/Apache2/bin/apxs' '--with-openssl=/usr'
> '--with-zlib=/usr' '--enable-calendar' '--enable-shared'
> '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex'
> '--enable-session' '--enable-sockets' '--enable-tokenizer'
> '--enable-wddx' '--with-xml' '--enable-yp' '--enable-versioning'
> '--enable-trans-id' '--enable-track-vars' '--with-mysql=/Library/PHP4'
> '--with-ldap=/usr' '--with-iodbc=/Library/PHP4' '--with-gd'
> '--with-jpeg-dir=/Library/PHP4' '--with-png-dir=/Library/PHP4'
> '--enable-xslt' '--with-xslt-sablot=/Library/PHP4'
> '--with-pdflib=/Library/PHP4' '--with-tiff-dir=/Library/PHP4'
> '--with-pgsql=/Library/PHP4' '--with-iconv'
> '--with-sybase=/Library/PHP4' '--with-mcrypt=/Library/PHP4'
> '--with-curl=/usr' '--with-freetype-dir=/Library/PHP4'
> '--with-ttf=/Library/PHP4' '--with-gettext=/Library/PHP4'
> '--with-xmlrpc' '--with-mime-magic' '--with-pspell=/Library/PHP4'
> '--with-expat-dir=/Library/Apache2' '--with-t1lib=/Library/PHP4'
> '--enable-dbx' '--with-imap=/Library/PHP4' '--with-imap-ssl=/usr'
> '--enable-cli' '--without-xpm-dir' '--enable-dbase' '--with-bz2=/usr'
> '--enable-cgi' '--with-pear' '--with-java' '--with-dom=/Library/PHP4'
> '--with-dom-xslt=/Library/PHP4' '--with-dom-exslt=/Library/PHP4'
> '--with-snmp=/Library/PHP4' '--enable-ucd-snmp-hack'
> '--with-mhash=/Library/PHP4' '--with-ming=/Library/PHP4' '--with-pear'
> '--enable-shmop' '--with-mcal=/Library/PHP4'
> '--with-gmp=/Library/PHP4' '--enable-dio' '--enable-bcmath'
> '--enable-ctype' '--enable-dba' '--with-cdb' '--enable-gd-native-ttf'
> '--with-zip=/Library/PHP4'
>
> This is the adjusted ./configure command...
>
> './configure' '--prefix=/Library/PHP4'
> '--with-apxs2=/Library/Apache2/bin/apxs' '--with-openssl=/usr'
> '--with-zlib=/usr' '--enable-calendar' '--enable-shared'
> '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex'
> '--enable-session' '--enable-sockets' '--enable-tokenizer'
> '--enable-wddx' '--with-xml' '--enable-yp' '--enable-versioning'
> '--enable-trans-id' '--enable-track-vars' '--with-mysql=/Library/PHP4'
> '--with-ldap=/usr' '--with-iodbc=/Library/PHP4' '--with-gd'
> '--with-jpeg-dir=/Library/PHP4' '--with-png-dir=/Library/PHP4'
> '--enable-xslt' '--with-xslt-sablot=/Library/PHP4'
> '--with-pdflib=/Library/PHP4' '--with-tiff-dir=/Library/PHP4'
> '--with-pgsql=/Library/PHP4' '--with-iconv'
> '--with-sybase=/Library/PHP4' '--with-mcrypt=/Library/PHP4'
> '--with-curl=/usr' '--with-freetype-dir=/Library/PHP4'
> '--with-ttf=/Library/PHP4' '--with-gettext=/Library/PHP4'
> '--with-xmlrpc' '--with-mime-magic' '--with-pspell=/Library/PHP4'
> '--with-expat-dir=/Library/Apache2' '--with-t1lib=/Library/PHP4'
> '--enable-dbx' '--with-imap=/Library/PHP4' '--with-imap-ssl=/usr'
> '--enable-cli' '--without-xpm-dir' '--enable-dbase' '--enable-cgi'
> '--with-pear' '--with-java' '--with-dom=/Library/PHP4'
> '--with-dom-xslt=/Library/PHP4' '--with-dom-exslt=/Library/PHP4'
> '--with-snmp=/Library/PHP4' '--enable-ucd-snmp-hack'
> '--with-mhash=/Library/PHP4' '--with-ming=/Library/PHP4'
> '--enable-shmop' '--with-gmp=/Library/PHP4' '--enable-dio'
> '--enable-bcmath' '--enable-ctype' '--enable-dba' '--with-cdb'
> '--enable-gd-native-ttf' '--with-zip=/Library/PHP4'
>
> --
> regards
> Graeme Bryan
> MindWars
>
> On 19/08/2005, at 8:55 AM, Nigel Weeks wrote:
>
>>>
>>> It's part of PHP source code. You can the compiling
>>> instructions there too.
>>
>> Here's a post I did a few months back. We can start with that:
>>
>>
>>
>> Steps are:
>> 1.
>> Start by finding the ./configure line that was used when building PHP
>> the
>> first time - you can get this from the php_info() function in a small
>> php
>> script inside your webserver root, and open it in a browser:
>> <?php
>> php_info();
>> ?>
>>
>> 2.
>> Download the source for the version of PHP you're running(so things
>> have a
>> better chance of working) Expand it out somewhere(doesn't really
>> matter
>> where), cd into the directory, and just run the ./configure command
>> you got
>> from the previous step.
>>
>> 3.
>> If the previous one worked, and all dependencies are found ok, do the
>> ./configure again, but add the --enable-interbase=/path/to/firebird.
>> (I'm not sure where Firebird will be on OSX, but a `which isql`
>> should tell
>> you)
>> If this works ok, and it can find all the dependencies, you're ready
>> to
>> compile.
>>
>> 4.
>> Build PHP
>> Type `make`.
>> This will build PHP, but won't install it. Now, find the
>> module(without the
>> backticks):
>> `find . -name "interbase.so"`
>> It's usually inside an 'ext' directory.
>>
>> 5.
>> Copy this file to your PHP extensions directory. On a Fedora machine
>> I have
>> access to, this is '/usr/lib/php4/'. On FreeBSD, it's
>> '/usr/local/lib/php/20040412/'
>>
>> 6.
>> Tell PHP about the new extension. In your 'php.ini', uncomment/add
>> the line
>> 'extension=interbase.so'.
>> On FreeBSD, this is in '/usr/local/etc/php.ini'
>> My Fedora machine has a directory in '/etc/php.d/' that contains an
>> 'interbase.ini' file the above line in it - might be an installation
>> specific thing, I dunno. Just letting you know! :-)
>>
>>
>> You're done. Restart the webserver, and you should be away.
>>
>>
>>
>> ------------------------ Yahoo! Groups Sponsor
>> --------------------~-->
>> <font face=arial size=-1><a
>> href="http://us.ard.yahoo.com/SIG=12h0rq107/
>> M=362329.6886308.7839368.1510227/D=groups/S=1705007183:TM/Y=YAHOO/
>> EXP=1124412937/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/
>> page.php?page_id=1992
>> ">Fair play? Video games influencing politics. Click and talk
>> back!</a>.</font>
>> --------------------------------------------------------------------
>> ~->
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>