2013-03-12 42 views
1

我需要打開一些* .dbf文件。我知道PHP有哪些模塊可以輕鬆地處理這些文件,但我怎樣才能將該模塊添加到php-fpm中?Remi PHP-FPM Dbase

[[email protected] 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 <[email protected]> 5.3.0-0.1.alpha2-dev.200808101630.fc9.remi 
    - new snapshot (5.3.0alpha2-dev) 
    - no more dbase extension 

爲什麼,以及如何我能得到它?

[[email protected] 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 

[[email protected] 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 

[[email protected] ~]# cat /etc/*elease* 
CentOS release 6.4 (Final) 
+0

+1 FAP FAP FAP FAP! – sbaaaang 2013-04-11 10:40:18

回答

1
yum install php-dev* 
pecl install dbase