VPS侦探论坛

 找回密码
 注册
查看: 3999|回复: 2

lnmp1.3 php7.07安装exif时出错

[复制链接]
发表于 2016-8-18 17:32:44 | 显示全部楼层 |阅读模式

军哥帮忙看看 非常感谢~
按着教程,make && make install 这步就出错了。在extensions/no-debug-non-zts-20151012目录下没有exif.so
我用的是PHP7,php的源码目录没有exif扩展,自己下的后安装。
  1. [root@iZ11p4uf30wZ exif]# /usr/local/php/bin/phpize
  2. Configuring for:
  3. PHP Api Version:         20151012
  4. Zend Module Api No:      20151012
  5. Zend Extension Api No:   320151012
  6. [root@iZ11p4uf30wZ exif]# ./configure --with-php-config=/usr/local/php/bin/php-config


  7. creating libtool
  8. appending configuration tag "CXX" to libtool
  9. configure: creating ./config.status
  10. config.status: creating config.h
  11. config.status: config.h is unchanged
  12. [root@iZ11p4uf30wZ exif]#  make && make install
  13. /bin/sh /root/lnmp1.3-full/src/exif/libtool --mode=compile cc  -I. -I/root/lnmp1.3-full/src/exif -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/exif/include -I/root/lnmp1.3-full/src/exif/main -I/root/lnmp1.3-full/src/exif -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/lnmp1.3-full/src/exif/exif.c -o exif.lo
  14. mkdir .libs
  15. cc -I. -I/root/lnmp1.3-full/src/exif -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/exif/include -I/root/lnmp1.3-full/src/exif/main -I/root/lnmp1.3-full/src/exif -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/lnmp1.3-full/src/exif/exif.c  -fPIC -DPIC -o .libs/exif.o
  16. /root/lnmp1.3-full/src/exif/exif.c: In function ‘OnUpdateEncode’:
  17. /root/lnmp1.3-full/src/exif/exif.c:190: warning: passing argument 1 of ‘strlen’ from incompatible pointer type
  18. /usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
  19. /root/lnmp1.3-full/src/exif/exif.c:190: warning: passing argument 1 of ‘php_mb_check_encoding_list’ from incompatible pointer type
  20. /usr/local/php/include/php/ext/mbstring/mbstring.h:144: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
  21. /root/lnmp1.3-full/src/exif/exif.c:195: error: ‘new_value_length’ undeclared (first use in this function)
  22. /root/lnmp1.3-full/src/exif/exif.c:195: error: (Each undeclared identifier is reported only once
  23. /root/lnmp1.3-full/src/exif/exif.c:195: error: for each function it appears in.)
  24. /root/lnmp1.3-full/src/exif/exif.c:195: warning: passing argument 6 of ‘OnUpdateString’ makes integer from pointer without a cast
  25. /usr/local/php/include/php/Zend/zend_ini.h:162: note: expected ‘int’ but argument is of type ‘void *’
  26. /root/lnmp1.3-full/src/exif/exif.c:195: error: too many arguments to function ‘OnUpdateString’
  27. /root/lnmp1.3-full/src/exif/exif.c: In function ‘OnUpdateDecode’:
  28. /root/lnmp1.3-full/src/exif/exif.c:201: warning: passing argument 1 of ‘php_mb_check_encoding_list’ from incompatible pointer type
  29. /usr/local/php/include/php/ext/mbstring/mbstring.h:144: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
  30. /root/lnmp1.3-full/src/exif/exif.c:206: error: ‘new_value_length’ undeclared (first use in this function)
  31. /root/lnmp1.3-full/src/exif/exif.c:206: warning: passing argument 6 of ‘OnUpdateString’ makes integer from pointer without a cast
  32. /usr/local/php/include/php/Zend/zend_ini.h:162: note: expected ‘int’ but argument is of type ‘void *’
  33. /root/lnmp1.3-full/src/exif/exif.c:206: error: too many arguments to function ‘OnUpdateString’
  34. /root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_iif_add_value’:
  35. /root/lnmp1.3-full/src/exif/exif.c:1700: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
  36. /root/lnmp1.3-full/src/exif/exif.c:1701: error: too many arguments to function ‘php_addslashes’
  37. /root/lnmp1.3-full/src/exif/exif.c:1701: warning: assignment from incompatible pointer type
  38. /root/lnmp1.3-full/src/exif/exif.c:1727: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
  39. /root/lnmp1.3-full/src/exif/exif.c:1728: error: too many arguments to function ‘php_addslashes’
  40. /root/lnmp1.3-full/src/exif/exif.c:1728: warning: assignment from incompatible pointer type
  41. /root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_iif_add_str’:
  42. /root/lnmp1.3-full/src/exif/exif.c:1853: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
  43. /root/lnmp1.3-full/src/exif/exif.c:1854: warning: passing argument 1 of ‘php_addslashes’ from incompatible pointer type
  44. /usr/local/php/include/php/ext/standard/php_string.h:126: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
  45. /root/lnmp1.3-full/src/exif/exif.c:1854: error: too many arguments to function ‘php_addslashes’
  46. /root/lnmp1.3-full/src/exif/exif.c:1854: warning: assignment from incompatible pointer type
  47. /root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_iif_add_buffer’:
  48. /root/lnmp1.3-full/src/exif/exif.c:1898: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
  49. /root/lnmp1.3-full/src/exif/exif.c:1902: warning: passing argument 1 of ‘php_addslashes’ from incompatible pointer type
  50. /usr/local/php/include/php/ext/standard/php_string.h:126: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
  51. /root/lnmp1.3-full/src/exif/exif.c:1902: error: too many arguments to function ‘php_addslashes’
  52. /root/lnmp1.3-full/src/exif/exif.c:1902: warning: assignment from incompatible pointer type
  53. /root/lnmp1.3-full/src/exif/exif.c:2014:46: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
  54. /root/lnmp1.3-full/src/exif/exif.c: In function ‘add_assoc_image_info’:
  55. /root/lnmp1.3-full/src/exif/exif.c:2014: error: ‘add_assoc_stringl’ undeclared (first use in this function)
  56. /root/lnmp1.3-full/src/exif/exif.c:2016:73: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
  57. /root/lnmp1.3-full/src/exif/exif.c:2025: error: too many arguments to function ‘add_index_string’
  58. /root/lnmp1.3-full/src/exif/exif.c:2027:43: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
  59. /root/lnmp1.3-full/src/exif/exif.c:2027: error: ‘add_assoc_string’ undeclared (first use in this function)
  60. /root/lnmp1.3-full/src/exif/exif.c:2072:49: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
  61. /root/lnmp1.3-full/src/exif/exif.c:2074: error: too many arguments to function ‘add_index_string’
  62. /root/lnmp1.3-full/src/exif/exif.c:2098:49: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
  63. /root/lnmp1.3-full/src/exif/exif.c:2100: error: too many arguments to function ‘add_index_string’
  64. /root/lnmp1.3-full/src/exif/exif.c:2383:25: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
  65. /root/lnmp1.3-full/src/exif/exif.c: In function ‘zif_exif_tagname’:
  66. /root/lnmp1.3-full/src/exif/exif.c:2383: error: ‘RETURN_STRING’ undeclared (first use in this function)
  67. /root/lnmp1.3-full/src/exif/exif.c:2384: error: expected ‘;’ before ‘}’ token
  68. /root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_read_file’:
  69. /root/lnmp1.3-full/src/exif/exif.c:3887: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
  70. /root/lnmp1.3-full/src/exif/exif.c:3914: error: too many arguments to function ‘php_basename’
  71. /root/lnmp1.3-full/src/exif/exif.c:3919: warning: assignment makes pointer from integer without a cast
  72. /root/lnmp1.3-full/src/exif/exif.c:3920: warning: assignment makes pointer from integer without a cast
  73. /root/lnmp1.3-full/src/exif/exif.c:3921: warning: assignment makes pointer from integer without a cast
  74. /root/lnmp1.3-full/src/exif/exif.c:3922: warning: assignment makes pointer from integer without a cast
  75. /root/lnmp1.3-full/src/exif/exif.c:3923: warning: assignment makes pointer from integer without a cast
  76. /root/lnmp1.3-full/src/exif/exif.c:3924: warning: assignment makes pointer from integer without a cast
  77. /root/lnmp1.3-full/src/exif/exif.c:4152:82: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
  78. /root/lnmp1.3-full/src/exif/exif.c: In function ‘zif_exif_thumbnail’:
  79. /root/lnmp1.3-full/src/exif/exif.c:4152: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
  80. /root/lnmp1.3-full/src/exif/exif.c: In function ‘zif_exif_imagetype’:
  81. /root/lnmp1.3-full/src/exif/exif.c:4192: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
  82. make: *** [exif.lo] Error 1
复制代码

[ 本帖最后由 oyjcmyn 于 2016-8-18 17:33 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-8-18 19:26:53 | 显示全部楼层


不清楚你从哪里找的exif的代码,人家php本来就自动exif的源码

1.3版本src目录下肯定没php-版本号的目录,1.3上为了减小占用硬盘安装后都是清理源码包目录的,清理完肯定没有php源码目录更不可能存在ext目录,你需要你自己解压php-版本号.tar.gz 的包
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-8-18 22:03:02 | 显示全部楼层

谢谢,问题已解决。原来要自己解压呀,不好意思,新手
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 03:43 , Processed in 0.025700 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表