Remi PHP-FPM Dbase

时间:2013-03-12 07:31:43

标签: linux centos php dbase

我需要打开一些* .dbf文件。我知道PHP有哪些模块可以轻松使用这些文件,但我如何将该模块添加到php-fpm?

[root@mcs-team tmp]# pecl install dbase
downloading dbase-5.1.0.tgz ...
Starting to download dbase-5.1.0.tgz (14,112 bytes)
.....done: 14,112 bytes
12 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

另外,

* Sun Aug 10 2008 Remi Collet <rpms@famillecollet.com> 5.3.0-0.1.alpha2-dev.200808101630.fc9.remi
  - new snapshot (5.3.0alpha2-dev) 
  - no more dbase extension

为什么,以及如何获得它?

[root@mcs-team tmp]# php -v
PHP 5.4.12 (cli) (built: Feb 20 2013 14:41:12)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

[root@mcs-team tmp]# uname -a
Linux mcs-team.tld 2.6.32-042stab063.2 #1 SMP Tue Oct 23 16:24:09 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux

[root@mcs-team ~]# cat /etc/*elease*
CentOS release 6.4 (Final)

1 个答案:

答案 0 :(得分:1)

yum install php-dev*
pecl install dbase