PHP zip extension インストール (失敗)

  • php -i (今のバージョン)
yoya@sakura:~$ php -i | grep zip | grep Ext -C 1
zip
Extension Version => $Id: php_zip.c 300470 2010-06-15 18:48:33Z pajoye $
Libzip version => 0.9.0
  • build
yoya@sakura:~/src/php$ tar xvfz zip-1.12.0.tgz
yoya@sakura:~/src/php$ cd zip-1.12.0/
yoya@sakura:~/src/php/zip-1.12.0$ phpize
yoya@sakura:~/src/php/zip-1.12.0$ ./configure
yoya@sakura:~/src/php/zip-1.12.0$ make
<略>
/home/yoya/src/php/zip-1.12.0/lib/zipconf.h:16:31: error: win32/php_stdint.h: そのようなファイルやディレクトリはありません

zipconf.h

#if defined(_WIN32) && _MSC_VER > 1500
# define HAVE_STDINT_H_LIBZIP
#else
# include "win32/php_stdint.h"
#endif

まぁ、直してと。

//# include "win32/php_stdint.h"
# include <stdint.h>

PHP_FE_END

/home/yoya/src/php/zip-1.12.0/php_zip.c:761: error: ‘PHP_FE_END’ undeclared he (not in a function)n)