在Fedora 17上安装php_gtk时获取“make:*** [ext / gtk + / php_gtk + .lo]错误1”

时间:2012-12-23 10:56:56

标签: php-gtk

我想在Fedora 17上安装php_gtk

我已下载php-gtk-2.0.1并尝试安装它。然后我就这样做了:

./buildconf
./configure
make

make命令之后,出现以下错误:

In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:307:64: error: unknown type name 'function_entry'
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:308:68: error: unknown type name 'function_entry'
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:490:64: error: unknown type name 'function_entry'
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:506:66: error: unknown type name 'function_entry'
make: *** [ext/gtk+/php_gtk+.lo] Error 1

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

如果你有php-5.4,你需要将function_entry更改为zend-function_entry 但如果问题得到解决,你可能会发现其他问题。