Pada zaman dahulu, eh… beberapa waktu yang lalu, saya berurusan dengan pembacaan data format dbf dengan PHP. Karena PHP yang terinstal adalah edisi garis lurus, ketika itu yang muncul ketika saya panggil fungsi dbase_open() adalah kalimat “Call to undefined function dbase_open()”. Selidik punya selidik, ternyata akar masalahnya adalah ekstensi PHP untuk mensuport database tipe dbase belum aktif.

Ketika itu saya masih menggunakan sistem operasi Windows, tepatnya Windows 8.1. Ternyata solusinya mudah, gunakan ekstensi yang sesuai dengan versi PHP, di sini: https://pecl.php.net/package/dbase/5.1.0/windows. Kopikan file ekstensi php_dbase.dll-nya ke folder ekstensi PHP, kemudian pada php.ini tambahkan ekstensi tersebut. Restart PHP. Sudah. Itu saja. Fungsi bisa jalan, alhamdulillaah. Semudah memasak Popmie, bukan? (no offense buat yang belum pernah masak popmie).

Nah, masalah muncul lagi ketika saya menggunakan sistem operasi Linux, tepatnya Linux Mint 17 Cinnamon. Pesan kesalahan seperti sebelumnya muncul lagi. Ubrak-ubrek ke sana ke mari di dunia maya, hasilnya tidak menggembirakan. Selain karena faktor bahasa Inggris penulis masih tingkat elementary, ternyata kemampuan menggunakan sistem operasi canggih ini (baca: Linux) masih tingkat ababil (baca: pra-nubie). Begitulah, akhirnya tutorial yang bagus-bagus, suruh ketik ini itu di terminal. Terminal ini maksudnya konsol, bukan tempat berhentinya bus-bus…

Akhirnya, setelah hampir beberapa jam brosang-brosing (baca: browsing), dengan pura-pura frustasi, saya berhasil mencoba dengan beberapa perintah berikut:


$ sudo apt-get install php-pear

$ sudo apt-get install php-dev

$ sudo pecl install dbase

Kok singkat banget ya? Sejatinya tidak. Saya coba-coba yang sebenarnya seperti berikut ini:


wisnu@wisnu-Lenovo-G40-70 ~ $ pecl install dbase
The program 'pecl' is currently not installed. You can install it by typing:
sudo apt-get install php-pear
wisnu@wisnu-Lenovo-G40-70 ~ $ sudo apt-get install php-pear
[sudo] password for wisnu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
php5-dev
The following NEW packages will be installed:
php-pear
0 upgraded, 1 newly installed, 0 to remove and 136 not upgraded.
Need to get 267 kB of archives.
After this operation, 2.287 kB of additional disk space will be used.
Get:1 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty-updates/main php-pear all 5.5.9+dfsg-1ubuntu4.11 [267 kB]
Fetched 267 kB in 8s (30,4 kB/s)
Selecting previously unselected package php-pear.
(Reading database ... 212454 files and directories currently installed.)
Preparing to unpack .../php-pear_5.5.9+dfsg-1ubuntu4.11_all.deb ...
Unpacking php-pear (5.5.9+dfsg-1ubuntu4.11) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Setting up php-pear (5.5.9+dfsg-1ubuntu4.11) ...
wisnu@wisnu-Lenovo-G40-70 ~ $ pecl install dbase
Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user
wisnu@wisnu-Lenovo-G40-70 ~ $ sudo pecl install dbase
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
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
sh: 1: phpize: not found
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
wisnu@wisnu-Lenovo-G40-70 ~ $ sudo apt-get install php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
autoconf automake autotools-dev libtool shtool
Suggested packages:
autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool-doc
automaken gfortran fortran95-compiler gcj-jdk
Recommended packages:
libltdl-dev pkg-php-tools
The following NEW packages will be installed:
autoconf automake autotools-dev libtool php5-dev shtool
0 upgraded, 6 newly installed, 0 to remove and 136 not upgraded.
Need to get 1.572 kB of archives.
After this operation, 9.413 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/main autoconf all 2.69-6 [322 kB]
Get:2 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/main autotools-dev all 20130810.1 [44,3 kB]
Get:3 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/main automake all 1:1.14.1-2ubuntu1 [510 kB]
Get:4 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/main libtool amd64 2.4.2-1.7ubuntu1 [188 kB]
Get:5 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/main shtool all 2.0.8-6 [149 kB]
Get:6 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty-updates/main php5-dev amd64 5.5.9+dfsg-1ubuntu4.11 [358 kB]
Fetched 1.572 kB in 31s (50,0 kB/s)
Selecting previously unselected package autoconf.
(Reading database ... 212651 files and directories currently installed.)
Preparing to unpack .../autoconf_2.69-6_all.deb ...
Unpacking autoconf (2.69-6) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../autotools-dev_20130810.1_all.deb ...
Unpacking autotools-dev (20130810.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../automake_1%3a1.14.1-2ubuntu1_all.deb ...
Unpacking automake (1:1.14.1-2ubuntu1) ...
Selecting previously unselected package libtool.
Preparing to unpack .../libtool_2.4.2-1.7ubuntu1_amd64.deb ...
Unpacking libtool (2.4.2-1.7ubuntu1) ...
Selecting previously unselected package shtool.
Preparing to unpack .../shtool_2.0.8-6_all.deb ...
Unpacking shtool (2.0.8-6) ...
Selecting previously unselected package php5-dev.
Preparing to unpack .../php5-dev_5.5.9+dfsg-1ubuntu4.11_amd64.deb ...
Unpacking php5-dev (5.5.9+dfsg-1ubuntu4.11) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Setting up autoconf (2.69-6) ...
Setting up autotools-dev (20130810.1) ...
Setting up automake (1:1.14.1-2ubuntu1) ...
update-alternatives: using /usr/bin/automake-1.14 to provide /usr/bin/automake (automake) in auto mode
Setting up libtool (2.4.2-1.7ubuntu1) ...
Setting up shtool (2.0.8-6) ...
Setting up php5-dev (5.5.9+dfsg-1ubuntu4.11) ...
update-alternatives: using /usr/bin/php-config5 to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: using /usr/bin/phpize5 to provide /usr/bin/phpize (phpize) in auto mode
wisnu@wisnu-Lenovo-G40-70 ~ $ sudo pecl install dbase
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
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
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
building in /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0
running: /tmp/pear/temp/dbase/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20121212
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable dbase support... yes, shared
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/dbase/dbf_head.c -o dbf_head.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/dbase/dbf_head.c  -fPIC -DPIC -o .libs/dbf_head.o
/tmp/pear/temp/dbase/dbf_head.c: In function 'put_dbf_info':
/tmp/pear/temp/dbase/dbf_head.c:239:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(dbh->db_fd, end_stuff, 1);
^
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/dbase/dbf_rec.c -o dbf_rec.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/dbase/dbf_rec.c  -fPIC -DPIC -o .libs/dbf_rec.o
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/dbase/dbf_misc.c -o dbf_misc.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/dbase/dbf_misc.c  -fPIC -DPIC -o .libs/dbf_misc.o
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/dbase/dbf_ndx.c -o dbf_ndx.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/dbase/dbf_ndx.c  -fPIC -DPIC -o .libs/dbf_ndx.o
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/dbase/dbase.c -o dbase.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/dbase -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/dbase/dbase.c  -fPIC -DPIC -o .libs/dbase.o
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_open':
/tmp/pear/temp/dbase/dbase.c:125:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &dbf_name, &options) == FAILURE) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_close':
/tmp/pear/temp/dbase/dbase.c:168:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 1 || (zend_get_parameters_ex(1, &dbh_id) == FAILURE)) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_numrecords':
/tmp/pear/temp/dbase/dbase.c:192:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 1 || (zend_get_parameters_ex(1, &dbh_id) == FAILURE)) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_numfields':
/tmp/pear/temp/dbase/dbase.c:215:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &dbh_id) == FAILURE) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_pack':
/tmp/pear/temp/dbase/dbase.c:238:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &dbh_id) == FAILURE) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_add_record':
/tmp/pear/temp/dbase/dbase.c:268:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &dbh_id, &fields) == FAILURE) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_replace_record':
/tmp/pear/temp/dbase/dbase.c:339:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &dbh_id, &fields, &recnum) == FAILURE) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_delete_record':
/tmp/pear/temp/dbase/dbase.c:400:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 || (zend_get_parameters_ex(2, &dbh_id, &record) == FAILURE)) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'php_dbase_get_record':
/tmp/pear/temp/dbase/dbase.c:440:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 || (zend_get_parameters_ex(2, &dbh_id, &record) == FAILURE)) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_create':
/tmp/pear/temp/dbase/dbase.c:596:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 || (zend_get_parameters_ex(2, &filename, &fields) == FAILURE)) {
^
/tmp/pear/temp/dbase/dbase.c: In function 'zif_dbase_get_header_info':
/tmp/pear/temp/dbase/dbase.c:851:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/include/php5/Zend/zend_API.h:238) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 1 || (zend_get_parameters_ex(1, &dbh_id) == FAILURE)) {
^
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/include -I/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/main -I/tmp/pear/temp/dbase -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -o dbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/modules  dbf_head.lo dbf_rec.lo dbf_misc.lo dbf_ndx.lo dbase.lo
libtool: link: cc -shared  -fPIC -DPIC  .libs/dbf_head.o .libs/dbf_rec.o .libs/dbf_misc.o .libs/dbf_ndx.o .libs/dbase.o    -O2   -Wl,-soname -Wl,dbase.so -o .libs/dbase.so
libtool: link: ( cd ".libs" && rm -f "dbase.la" && ln -s "../dbase.la" "dbase.la" )
/bin/bash /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/libtool --mode=install cp ./dbase.la /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/modules
libtool: install: cp ./.libs/dbase.so /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/modules/dbase.so
libtool: install: cp ./.libs/dbase.lai /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/modules/dbase.la
libtool: finish: PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/temp/pear-build-rootKSYMvr/dbase-5.1.0/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0" install
Installing shared extensions:     /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0/usr/lib/php5/20121212/
running: find "/tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0" | xargs ls -dils
22020263   4 drwxr-xr-x 3 root root   4096 Sep 24 12:55 /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0
22020293   4 drwxr-xr-x 3 root root   4096 Sep 24 12:55 /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0/usr
22020295   4 drwxr-xr-x 3 root root   4096 Sep 24 12:55 /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0/usr/lib
22020296   4 drwxr-xr-x 3 root root   4096 Sep 24 12:55 /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0/usr/lib/php5
22020297   4 drwxr-xr-x 2 root root   4096 Sep 24 12:55 /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0/usr/lib/php5/20121212
22020292 168 -rwxr-xr-x 1 root root 171873 Sep 24 12:55 /tmp/pear/temp/pear-build-rootKSYMvr/install-dbase-5.1.0/usr/lib/php5/20121212/dbase.so

Build process completed successfully
Installing '/usr/lib/php5/20121212/dbase.so'
install ok: channel://pecl.php.net/dbase-5.1.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=dbase.so" to php.ini

Done! Saya mulai lagi dengan webserver built-in PHP ternyata error sudah berlalu…

Advertisements