编译php-interbase

时间:2011-04-02 17:49:42

标签: php firebird

我在64位Linux上尝试编译PHP --with -interbase = / opt / firebird

这导致

checking for InterBase support... yes
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.

libfclient等在那里。查看config.log时,尝试检查interbase时会出现很多错误:

configure:50792: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden -pthread  -D_REENTRANT -L/opt/firebird//lib -L/usr/lib  -L/usr/local/lib conftest.c -lfbclient  $
/opt/firebird//lib/libfbclient.so: undefined reference to `std::bad_alloc::~bad_alloc()'
/opt/firebird//lib/libfbclient.so: undefined reference to `__cxa_pure_virtual'
/opt/firebird//lib/libfbclient.so: undefined reference to `__cxa_rethrow'
/opt/firebird//lib/libfbclient.so: undefined reference to `__gxx_personality_v0'
/opt/firebird//lib/libfbclient.so: undefined reference to `__cxa_throw'

2 个答案:

答案 0 :(得分:2)

问题似乎是由于PHP所需的libfbclient.so文件中的64位差异。我有同样的问题,并最终发现安装最新的Firebird AMD64版本的v2.1超级服务器就可以了。我通过RPM安装了这个,而不是在首次卸载任何以前的FB安装之后尝试从头开始构建,然后神奇地我的PHP配置成功完成。 HTH。

答案 1 :(得分:0)

为docker用户提供的提示:确保安装firebird-dev

RUN apt-get -y install firebird-dev
RUN docker-php-ext-install interbase
RUN docker-php-ext-enable interbase