VPS侦探论坛

 找回密码
 注册
查看: 3250|回复: 4

安装exif扩展报错

[复制链接]
发表于 2020-4-26 18:40:26 | 显示全部楼层 |阅读模式

  1. /bin/sh /lnmp/php-5.6.22/ext/exif/libtool --mode=compile cc  -I. -I/lnmp/php-5.6.22/ext/exif -DPHP_ATOM_INC -I/lnmp/php-5.6.22/ext/exif/include -I/lnmp/php-5.6.22/ext/exif/main -I/lnmp/php-5.6.22/ext/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 /lnmp/php-5.6.22/ext/exif/exif.c -o exif.lo
  2. mkdir .libs
  3. cc -I. -I/lnmp/php-5.6.22/ext/exif -DPHP_ATOM_INC -I/lnmp/php-5.6.22/ext/exif/include -I/lnmp/php-5.6.22/ext/exif/main -I/lnmp/php-5.6.22/ext/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 /lnmp/php-5.6.22/ext/exif/exif.c  -fPIC -DPIC -o .libs/exif.o
  4. env: cc: Permission denied
  5. make: *** [exif.lo] Error 1
复制代码
哪位帮忙解决一下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-4-26 19:13:12 | 显示全部楼层


补充完整的代码
  1. Configuring for:
  2. PHP Api Version:         20131106
  3. Zend Module Api No:      20131226
  4. Zend Extension Api No:   220131226



  5. checking for grep that handles long lines and -e... /bin/grep
  6. checking for egrep... /bin/grep -E
  7. checking for a sed that does not truncate output... /bin/sed
  8. checking for cc... cc
  9. checking for C compiler default output file name... a.out
  10. checking whether the C compiler works... yes
  11. checking whether we are cross compiling... no
  12. checking for suffix of executables...
  13. checking for suffix of object files... o
  14. checking whether we are using the GNU C compiler... yes
  15. checking whether cc accepts -g... yes
  16. checking for cc option to accept ISO C89... none needed
  17. checking how to run the C preprocessor... cc -E
  18. checking for icc... no
  19. checking for suncc... no
  20. checking whether cc understands -c and -o together... yes
  21. checking for system library directory... lib
  22. checking if compiler supports -R... no
  23. checking if compiler supports -Wl,-rpath,... yes
  24. checking build system type... x86_64-unknown-linux-gnu
  25. checking host system type... x86_64-unknown-linux-gnu
  26. checking target system type... x86_64-unknown-linux-gnu
  27. checking for PHP prefix... /usr/local/php
  28. checking for PHP includes... -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
  29. checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226
  30. checking for PHP installed headers prefix... /usr/local/php/include/php
  31. checking if debug is enabled... no
  32. checking if zts is enabled... no
  33. checking for re2c... no
  34. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  35. checking for gawk... gawk
  36. checking whether to enable EXIF (metadata from images) support... yes, shared
  37. checking for ld used by cc... /usr/bin/ld
  38. checking if the linker (/usr/bin/ld) is GNU ld... yes
  39. checking for /usr/bin/ld option to reload object files... -r
  40. checking for BSD-compatible nm... /usr/bin/nm -B
  41. checking whether ln -s works... yes
  42. checking how to recognize dependent libraries... pass_all
  43. checking for ANSI C header files... yes
  44. checking for sys/types.h... yes
  45. checking for sys/stat.h... yes
  46. checking for stdlib.h... yes
  47. checking for string.h... yes
  48. checking for memory.h... yes
  49. checking for strings.h... yes
  50. checking for inttypes.h... yes
  51. checking for stdint.h... yes
  52. checking for unistd.h... yes
  53. checking dlfcn.h usability... yes
  54. checking dlfcn.h presence... yes
  55. checking for dlfcn.h... yes
  56. checking the maximum length of command line arguments... 1966080
  57. checking command to parse /usr/bin/nm -B output from cc object... ok
  58. checking for objdir... .libs
  59. checking for ar... ar
  60. checking for ranlib... ranlib
  61. checking for strip... strip
  62. checking if cc supports -fno-rtti -fno-exceptions... no
  63. checking for cc option to produce PIC... -fPIC
  64. checking if cc PIC flag -fPIC works... yes
  65. checking if cc static flag -static works... no
  66. checking if cc supports -c -o file.o... yes
  67. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  68. checking whether -lc should be explicitly linked in... no
  69. checking dynamic linker characteristics... GNU/Linux ld.so
  70. checking how to hardcode library paths into programs... immediate
  71. checking whether stripping libraries is possible... yes
  72. checking if libtool supports shared libraries... yes
  73. checking whether to build shared libraries... yes
  74. checking whether to build static libraries... no

  75. creating libtool
  76. appending configuration tag "CXX" to libtool
  77. configure: creating ./config.status
  78. config.status: creating config.h


  79. /bin/sh /lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/libtool --mode=compile cc  -I. -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif -DPHP_ATOM_INC -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/include -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/main -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/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 /lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/exif.c -o exif.lo
  80. mkdir .libs
  81. cc -I. -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif -DPHP_ATOM_INC -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/include -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/main -I/lnmp/lnmp1.3-full/src/php-5.6.22/ext/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 /lnmp/lnmp1.3-full/src/php-5.6.22/ext/exif/exif.c  -fPIC -DPIC -o .libs/exif.o
  82. env: cc: Permission denied
  83. make: *** [exif.lo] Error 1
复制代码


我自己下载了一个 php5.6.22的源码安装报错,  使用 lnmp1.3安装包里的 php5.6.22的源码 安装也是报错。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-4-27 10:29:41 | 显示全部楼层

你系统上可能安装有云锁之类的安全软件
也可能cc编译器文件没有执行权限
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-4-27 13:44:38 | 显示全部楼层



licess 发表于 2020-4-27 10:29
你系统上可能安装有云锁之类的安全软件
也可能cc编译器文件没有执行权限

对,我服务器上确实安装了云锁,那怎么解决呢 军哥?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-4-27 14:13:21 | 显示全部楼层

licess 发表于 2020-4-27 10:29
你系统上可能安装有云锁之类的安全软件
也可能cc编译器文件没有执行权限

已解决了军哥,谢谢,确实是云锁的问题。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-21 01:29 , Processed in 0.026952 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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