Страница 1 из 1

Firebird+php

Добавлено: 2007-06-22 11:37:48
sergio
Немогу прикрутить firebird к php (FreeBSD 6.0)

Делаю:
cd /usr/ports/lang/php5-extensions
make config
В опциях вибираю поддержку
[X] INTERBASE Interbase 6 database support (Firebird)
make && make install

Код: Выделить всё

===>  Vulnerability check disabled, database not found
===>  Found saved configuration for php5-extensions-1.1
===>  Extracting for php5-extensions-1.1
===>   php5-extensions-1.1 depends on file: /usr/local/sbin/pkg_info - found
===>  Patching for php5-extensions-1.1
===>   php5-extensions-1.1 depends on file: /usr/local/include/php/main/php.h - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/bcmath.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/bz2.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/calendar.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ctype.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/curl.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/dba.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/dbase.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/dom.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/exif.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/fileinfo.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/filter.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ftp.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gd.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gettext.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gmp.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/hash.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/iconv.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imap.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/interbase.so - not found
===>    Verifying install for /usr/local/lib/php/extensions/no-debug-non-zts-20060613/interbase.so in /usr/ports/databases/php5-interbase
===>  Vulnerability check disabled, database not found
===>  Extracting for php5-interbase-5.2.3
=> MD5 Checksum OK for php-5.2.3.tar.bz2.
=> SHA256 Checksum OK for php-5.2.3.tar.bz2.
===>   php5-interbase-5.2.3 depends on file: /usr/local/sbin/pkg_info - found
===>  Patching for php5-interbase-5.2.3
===>   php5-interbase-5.2.3 depends on executable in : phpize - found
===>   php5-interbase-5.2.3 depends on file: /usr/local/bin/autoconf259 - found
===>   php5-interbase-5.2.3 depends on shared library: fbclient.2 - found
===>  PHPizing for php5-interbase-5.2.3
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
===>  Configuring for php5-interbase-5.2.3
configure: WARNING: you should use --build, --host, --target
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for i386-portbld-freebsd6.0-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking build system type... i386-portbld-freebsd6.0
checking host system type... i386-portbld-freebsd6.0
checking target system type... i386-portbld-freebsd6.0
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for InterBase support... yes, shared
checking for isc_detach_database in -lfbclient... no
checking for isc_detach_database in -lgds... no
checking for isc_detach_database in -lib_util... no
configure: error: libgds, libib_util or libfbclient not found! Check config.log for more information.
===>  Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/databases/php5-interbase/work/php-5.2.3/ext/interbase/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/databases/php5-interbase.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
Ругается что не найден libfbclient, хотя он там есть :

Код: Выделить всё

$ cd /usr/local/lib && ls -l | grep fb
lrwxr-xr-x   1 root  wheel        16 20 июн 12:41 libfbclient.so -> libfbclient.so.2
lrwxr-xr-x   1 root  wheel        20 20 июн 12:41 libfbclient.so.2 -> libfbclient.so.2.0.1
-rw-r--r--   1 grau  wheel    453258 21 июн 10:24 libfbclient.so.2.0.1
Где в каких местах он пытается его искать?

Пробовал собирать php не из портов - таже херь.
Вот /usr/ports/databases/php5-interbase/work/php-5.2.3/ext/interbase/config.log

Добавлено: 2007-06-22 12:40:17
Raven2000
Эта хрень ставится вообщето на простой php это набор расширений к php
А соб-нно php нужен для апача (при необходимости)
посмотри http://www.lissyara.su/?id=1461 там написанно что и в какой после-и ставится.
Немогу прикрутить firebird к php (FreeBSD 6.0)
а уж это вообще какую то туфту написал

Добавлено: 2007-06-22 13:07:19
sergio
Raven2000 писал(а): посмотри http://www.lissyara.su/?id=1461 там написанно что и в какой после-и ставится.
Там нет ни слова о firebird или interbase

Добавлено: 2007-06-22 13:12:40
Raven2000
Я сначала так понял что ты говорил о типа браузере :)
Сори щаз токо перечитал название ты говорил о СУБД :lol: