无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[求助] EXIF安装请教

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

  79. creating libtool
  80. appending configuration tag "CXX" to libtool
  81. configure: creating ./config.status
  82. config.status: creating config.h
  83. config.status: config.h is unchanged
  84. [root@AY130701215223445424Z exif]#
复制代码

  1. [root@AY130701215223445424Z exif]# make && make install
  2. /bin/sh /usr/local/src/php-5.2.17/ext/exif/libtool --mode=install cp ./exif.la /usr/local/src/php-5.2.17/ext/exif/modules
  3. cp ./.libs/exif.so /usr/local/src/php-5.2.17/ext/exif/modules/exif.so
  4. cp ./.libs/exif.lai /usr/local/src/php-5.2.17/ext/exif/modules/exif.la
  5. PATH="$PATH:/sbin" ldconfig -n /usr/local/src/php-5.2.17/ext/exif/modules
  6. ----------------------------------------------------------------------
  7. Libraries have been installed in:
  8.    /usr/local/src/php-5.2.17/ext/exif/modules

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

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

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

  24. Installing shared extensions:     /www/wdlinux/apache_php-5.3.26/lib/php/extensions/no-debug-non-zts-20090626/
  25. [root@AY130701215223445424Z exif]#
复制代码



  1. Configure Command         './configure' '--prefix=/www/wdlinux/apache_php-5.3.26' '--with-config-file-path=/www/wdlinux/apache_php-5.3.26/etc' '--with-mysql=/www/wdlinux/mysql' '--with-iconv=/usr' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-discard-path' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-ftp' '--enable-sockets' '--enable-zip' '--with-apxs2=/www/wdlinux/apache/bin/apxs'
复制代码


为什么还是安装不上,是不是哪里出现了问题?


PHP.INI
配置如下
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
extension_dir = "/www/wdlinux/apache_php-5.3.26/lib/php/extensions/no-debug-non-zts-20090626/"
; On windows:
extension_dir = "ext"



extension = "exif.so";



请求帮助

怎么5.3的环境,用5.2的源码来编译?
看清提问三步曲及多看教程/FAQ索引(wdcp,v3,一键包,wdOS),益处多多.wdcp工具集 阿里云主机8折优惠码

TOP

返回列表