VPS侦探论坛

 找回密码
 注册
查看: 3312|回复: 7

lnmp1.6升级php到7.3提示memcached not found

[复制链接]
发表于 2020-5-19 09:56:15 | 显示全部楼层 |阅读模式

lnmp1.6, 原来php版本是7.0,安装memcached使用正常,升级php版本到7.3之后,提示memcached not found
在后台 ps -ef|grep memcached 发现memacahed进程正常
然后把memcached重装之后,提示安装失败,提示信息如下

  1. Copy Memcached PHP Test file...
  2. Restarting php-fpm......
  3. Gracefully shutting down php-fpm . done
  4. Starting php-fpm [19-May-2020 09:41:40] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  5. done
  6. iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
  7. iptables: Trying to reload firewall rules: [  OK  ]
  8. Starting Memcached...
  9. Starting memcached:  done
  10. Memcached install failed!
复制代码
感谢军哥
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-5-19 11:31:00 | 显示全部楼层


这句应该是问题的关键点
  1. configure.ac:3: error: Autoconf version 2.68 or higher is required
复制代码

Autoconf  必须 大于等于 2.68

https://www.cnblogs.com/gyfluck/p/10523832.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-5-19 10:35:24 | 显示全部楼层

最后的错误信息没有用处,需要提供你发的这个前面一部分的编译错误信息
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-5-19 10:45:04 | 显示全部楼层



  1. make[2]: Entering directory `/root/lnmp1.6/src/libmemcached-1.0.18'
  2. make[2]: warning: -jN forced in submake: disabling jobserver mode.
  3. /bin/mkdir -p '/usr/local/libmemcached/lib'
  4. /bin/sh ./libtool   --mode=install /usr/bin/install -c   libhashkit/libhashkit.la libmemcached/libmemcached.la libmemcached/libmemcachedutil.la '/usr/local/libmemcached/lib'
  5. libtool: install: /usr/bin/install -c libhashkit/.libs/libhashkit.so.2.0.0 /usr/local/libmemcached/lib/libhashkit.so.2.0.0
  6. libtool: install: (cd /usr/local/libmemcached/lib && { ln -s -f libhashkit.so.2.0.0 libhashkit.so.2 || { rm -f libhashkit.so.2 && ln -s libhashkit.so.2.0.0 libhashkit.so.2; }; })
  7. libtool: install: (cd /usr/local/libmemcached/lib && { ln -s -f libhashkit.so.2.0.0 libhashkit.so || { rm -f libhashkit.so && ln -s libhashkit.so.2.0.0 libhashkit.so; }; })
  8. libtool: install: /usr/bin/install -c libhashkit/.libs/libhashkit.lai /usr/local/libmemcached/lib/libhashkit.la
  9. libtool: install: /usr/bin/install -c libmemcached/.libs/libmemcached.so.11.0.0 /usr/local/libmemcached/lib/libmemcached.so.11.0.0
  10. libtool: install: (cd /usr/local/libmemcached/lib && { ln -s -f libmemcached.so.11.0.0 libmemcached.so.11 || { rm -f libmemcached.so.11 && ln -s libmemcached.so.11.0.0 libmemcached.so.11; }; })
  11. libtool: install: (cd /usr/local/libmemcached/lib && { ln -s -f libmemcached.so.11.0.0 libmemcached.so || { rm -f libmemcached.so && ln -s libmemcached.so.11.0.0 libmemcached.so; }; })
  12. libtool: install: /usr/bin/install -c libmemcached/.libs/libmemcached.lai /usr/local/libmemcached/lib/libmemcached.la
  13. libtool: install: warning: relinking `libmemcached/libmemcachedutil.la'
  14. libtool: install: (cd /root/lnmp1.6/src/libmemcached-1.0.18; /bin/sh /root/lnmp1.6/src/libmemcached-1.0.18/libtool  --silent --tag CXX --mode=relink c++ -std=c++0x -DBUILDING_LIBMEMCACHED -pthread -g -O2 -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wno-attributes -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wformat-y2k -Wmissing-field-initializers -Wlogical-op -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunsafe-loop-optimizations -funsafe-loop-optimizations -Wclobbered -Wunused -Wunused-variable -Wunused-parameter -Wwrite-strings -Wformat-security -fwrapv -pipe -fPIE -pie -Wpacked -version-info 2:0:0 -o libmemcached/libmemcachedutil.la -rpath /usr/local/libmemcached/lib libmemcached/libmemcached_libmemcachedutil_la-backtrace.lo libmemcachedutil/libmemcached_libmemcachedutil_la-flush.lo libmemcachedutil/libmemcached_libmemcachedutil_la-pid.lo libmemcachedutil/libmemcached_libmemcachedutil_la-ping.lo libmemcachedutil/libmemcached_libmemcachedutil_la-pool.lo libmemcachedutil/libmemcached_libmemcachedutil_la-version.lo libmemcached/libmemcached.la )
  15. libtool: install: /usr/bin/install -c libmemcached/.libs/libmemcachedutil.so.2.0.0T /usr/local/libmemcached/lib/libmemcachedutil.so.2.0.0
  16. libtool: install: (cd /usr/local/libmemcached/lib && { ln -s -f libmemcachedutil.so.2.0.0 libmemcachedutil.so.2 || { rm -f libmemcachedutil.so.2 && ln -s libmemcachedutil.so.2.0.0 libmemcachedutil.so.2; }; })
  17. libtool: install: (cd /usr/local/libmemcached/lib && { ln -s -f libmemcachedutil.so.2.0.0 libmemcachedutil.so || { rm -f libmemcachedutil.so && ln -s libmemcachedutil.so.2.0.0 libmemcachedutil.so; }; })
  18. libtool: install: /usr/bin/install -c libmemcached/.libs/libmemcachedutil.lai /usr/local/libmemcached/lib/libmemcachedutil.la
  19. libtool: install: /usr/bin/install -c libhashkit/.libs/libhashkit.a /usr/local/libmemcached/lib/libhashkit.a
  20. libtool: install: chmod 644 /usr/local/libmemcached/lib/libhashkit.a
  21. libtool: install: ranlib /usr/local/libmemcached/lib/libhashkit.a
  22. libtool: install: /usr/bin/install -c libmemcached/.libs/libmemcached.a /usr/local/libmemcached/lib/libmemcached.a
  23. libtool: install: chmod 644 /usr/local/libmemcached/lib/libmemcached.a
  24. libtool: install: ranlib /usr/local/libmemcached/lib/libmemcached.a
  25. libtool: install: /usr/bin/install -c libmemcached/.libs/libmemcachedutil.a /usr/local/libmemcached/lib/libmemcachedutil.a
  26. libtool: install: chmod 644 /usr/local/libmemcached/lib/libmemcachedutil.a
  27. libtool: install: ranlib /usr/local/libmemcached/lib/libmemcachedutil.a
  28. libtool: finish: PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin:/sbin" ldconfig -n /usr/local/libmemcached/lib
  29. ----------------------------------------------------------------------
  30. Libraries have been installed in:
  31.    /usr/local/libmemcached/lib

  32. If you ever happen to want to link against installed libraries
  33. in a given directory, LIBDIR, you must either use libtool, and
  34. specify the full pathname of the library, or use the `-LLIBDIR'
  35. flag during linking and do at least one of the following:
  36.    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  37.      during execution
  38.    - add LIBDIR to the `LD_RUN_PATH' environment variable
  39.      during linking
  40.    - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
  41.    - have your system administrator add LIBDIR to `/etc/ld.so.conf'
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-5-19 10:45:22 | 显示全部楼层

  1. See any operating system documentation about shared libraries for
  2. more information, such as the ld(1) and ld.so(8) manual pages.
  3. ----------------------------------------------------------------------
  4. /bin/mkdir -p '/usr/local/libmemcached/bin'
  5.   /bin/sh ./libtool   --mode=install /usr/bin/install -c clients/memcapable clients/memcat clients/memcp clients/memdump clients/memerror clients/memexist clients/memtouch clients/memflush clients/memparse clients/memping clients/memrm clients/memslap clients/memstat '/usr/local/libmemcached/bin'
  6. libtool: install: /usr/bin/install -c clients/.libs/memcapable /usr/local/libmemcached/bin/memcapable
  7. libtool: install: /usr/bin/install -c clients/.libs/memcat /usr/local/libmemcached/bin/memcat
  8. libtool: install: /usr/bin/install -c clients/.libs/memcp /usr/local/libmemcached/bin/memcp
  9. libtool: install: /usr/bin/install -c clients/.libs/memdump /usr/local/libmemcached/bin/memdump
  10. libtool: install: /usr/bin/install -c clients/.libs/memerror /usr/local/libmemcached/bin/memerror
  11. libtool: install: /usr/bin/install -c clients/.libs/memexist /usr/local/libmemcached/bin/memexist
  12. libtool: install: /usr/bin/install -c clients/.libs/memtouch /usr/local/libmemcached/bin/memtouch
  13. libtool: install: /usr/bin/install -c clients/.libs/memflush /usr/local/libmemcached/bin/memflush
  14. libtool: install: /usr/bin/install -c clients/.libs/memparse /usr/local/libmemcached/bin/memparse
  15. libtool: install: /usr/bin/install -c clients/.libs/memping /usr/local/libmemcached/bin/memping
  16. libtool: install: /usr/bin/install -c clients/.libs/memrm /usr/local/libmemcached/bin/memrm
  17. libtool: install: /usr/bin/install -c clients/.libs/memslap /usr/local/libmemcached/bin/memslap
  18. libtool: install: /usr/bin/install -c clients/.libs/memstat /usr/local/libmemcached/bin/memstat
  19. /bin/mkdir -p '/usr/local/libmemcached/share/aclocal'
  20. /usr/bin/install -c -m 644 m4/ax_libmemcached.m4 '/usr/local/libmemcached/share/aclocal'
  21. /bin/mkdir -p '/usr/local/libmemcached/share/man/man1'
  22. /usr/bin/install -c -m 644 man/memaslap.1 man/memcapable.1 man/memcat.1 man/memcp.1 man/memdump.1 man/memerror.1 man/memexist.1 man/memflush.1 man/memparse.1 man/memping.1 man/memrm.1 man/memslap.1 man/memstat.1 man/memtouch.1 '/usr/local/libmemcached/share/man/man1'
  23. /bin/mkdir -p '/usr/local/libmemcached/share/man/man3'
  24. /usr/bin/install -c -m 644 man/hashkit_clone.3 man/hashkit_crc32.3 man/hashkit_create.3 man/hashkit_fnv1_32.3 man/hashkit_fnv1_64.3 man/hashkit_fnv1a_32.3 man/hashkit_fnv1a_64.3 man/hashkit_free.3 man/hashkit_functions.3 man/hashkit_hsieh.3 man/hashkit_is_allocated.3 man/hashkit_jenkins.3 man/hashkit_md5.3 man/hashkit_murmur.3 man/hashkit_value.3 man/libhashkit.3 man/libmemcached.3 man/libmemcached_check_configuration.3 man/libmemcached_configuration.3 man/libmemcached_examples.3 man/libmemcachedutil.3 man/memcached.3 man/memcached_add.3 man/memcached_add_by_key.3 man/memcached_analyze.3 man/memcached_append.3 man/memcached_append_by_key.3 man/memcached_behavior_get.3 man/memcached_behavior_set.3 man/memcached_callback_get.3 man/memcached_callback_set.3 man/memcached_cas.3 man/memcached_cas_by_key.3 man/memcached_clone.3 man/memcached_create.3 man/memcached_decrement.3 man/memcached_decrement_with_initial.3 man/memcached_delete.3 man/memcached_delete_by_key.3 man/memcached_destroy_sasl_auth_data.3 '/usr/local/libmemcached/share/man/man3'
  25. /usr/bin/install -c -m 644 man/memcached_dump.3 man/memcached_exist.3 man/memcached_exist_by_key.3 man/memcached_fetch.3 man/memcached_fetch_execute.3 man/memcached_fetch_result.3 man/memcached_flush_buffers.3 man/memcached_free.3 man/memcached_generate_hash.3 man/memcached_generate_hash_value.3 man/memcached_get.3 man/memcached_get_by_key.3 man/memcached_get_memory_allocators.3 man/memcached_get_sasl_callbacks.3 man/memcached_get_user_data.3 man/memcached_increment.3 man/memcached_increment_with_initial.3 man/memcached_last_error_message.3 man/memcached_lib_version.3 man/memcached_mget.3 man/memcached_mget_by_key.3 man/memcached_mget_execute.3 man/memcached_mget_execute_by_key.3 man/memcached_pool.3 man/memcached_pool_behavior_get.3 man/memcached_pool_behavior_set.3 man/memcached_pool_create.3 man/memcached_pool_destroy.3 man/memcached_pool_fetch.3 man/memcached_pool_pop.3 man/memcached_pool_push.3 man/memcached_pool_release.3 man/memcached_pool_st.3 man/memcached_prepend.3 man/memcached_prepend_by_key.3 man/memcached_quit.3 man/memcached_replace.3 man/memcached_replace_by_key.3 man/memcached_sasl_set_auth_data.3 man/memcached_server_add.3 '/usr/local/libmemcached/share/man/man3'
  26. /usr/bin/install -c -m 644 man/memcached_server_count.3 man/memcached_server_cursor.3 man/memcached_server_list.3 man/memcached_server_list_append.3 man/memcached_server_list_count.3 man/memcached_server_list_free.3 man/memcached_server_push.3 man/memcached_servers_parse.3 man/memcached_set.3 man/memcached_set_by_key.3 man/memcached_set_memory_allocators.3 man/memcached_set_sasl_callbacks.3 man/memcached_set_user_data.3 man/memcached_stat.3 man/memcached_stat_execute.3 man/memcached_stat_get_keys.3 man/memcached_stat_get_value.3 man/memcached_stat_servername.3 man/memcached_strerror.3 man/memcached_touch.3 man/memcached_touch_by_key.3 man/memcached_verbosity.3 man/memcached_version.3 '/usr/local/libmemcached/share/man/man3'
  27. /bin/mkdir -p '/usr/local/libmemcached/include'
  28. /bin/mkdir -p '/usr/local/libmemcached/include/libmemcached-1.0'
  29. /usr/bin/install -c -m 644  libmemcached-1.0/alloc.h libmemcached-1.0/allocators.h libmemcached-1.0/analyze.h libmemcached-1.0/auto.h libmemcached-1.0/basic_string.h libmemcached-1.0/behavior.h libmemcached-1.0/callback.h libmemcached-1.0/callbacks.h libmemcached-1.0/configure.h libmemcached-1.0/defaults.h libmemcached-1.0/delete.h libmemcached-1.0/deprecated_types.h libmemcached-1.0/dump.h libmemcached-1.0/encoding_key.h libmemcached-1.0/error.h libmemcached-1.0/exception.hpp libmemcached-1.0/exist.h libmemcached-1.0/fetch.h libmemcached-1.0/flush.h libmemcached-1.0/flush_buffers.h libmemcached-1.0/get.h libmemcached-1.0/hash.h libmemcached-1.0/limits.h libmemcached-1.0/memcached.h libmemcached-1.0/memcached.hpp libmemcached-1.0/options.h libmemcached-1.0/parse.h libmemcached-1.0/platform.h libmemcached-1.0/quit.h libmemcached-1.0/result.h libmemcached-1.0/return.h libmemcached-1.0/sasl.h libmemcached-1.0/server.h libmemcached-1.0/server_list.h libmemcached-1.0/stats.h libmemcached-1.0/storage.h libmemcached-1.0/strerror.h libmemcached-1.0/touch.h libmemcached-1.0/triggers.h libmemcached-1.0/types.h '/usr/local/libmemcached/include/libmemcached-1.0'
  30. /bin/mkdir -p '/usr/local/libmemcached/include/libmemcached-1.0/types'
  31. /usr/bin/install -c -m 644  libmemcached-1.0/types/behavior.h libmemcached-1.0/types/callback.h libmemcached-1.0/types/connection.h libmemcached-1.0/types/hash.h libmemcached-1.0/types/return.h libmemcached-1.0/types/server_distribution.h '/usr/local/libmemcached/include/libmemcached-1.0/types'
  32. /bin/mkdir -p '/usr/local/libmemcached/include/libmemcached-1.0'
  33. /usr/bin/install -c -m 644  libmemcached-1.0/verbosity.h libmemcached-1.0/version.h libmemcached-1.0/visibility.h '/usr/local/libmemcached/include/libmemcached-1.0'
  34. /bin/mkdir -p '/usr/local/libmemcached/include/libmemcached-1.0/struct'
  35. /usr/bin/install -c -m 644  libmemcached-1.0/struct/allocator.h libmemcached-1.0/struct/analysis.h libmemcached-1.0/struct/callback.h libmemcached-1.0/struct/memcached.h libmemcached-1.0/struct/result.h libmemcached-1.0/struct/sasl.h libmemcached-1.0/struct/server.h libmemcached-1.0/struct/stat.h libmemcached-1.0/struct/string.h '/usr/local/libmemcached/include/libmemcached-1.0/struct'
  36. /bin/mkdir -p '/usr/local/libmemcached/include/libhashkit'
  37. /usr/bin/install -c -m 644  libhashkit/hashkit.h '/usr/local/libmemcached/include/libhashkit'
  38. /bin/mkdir -p '/usr/local/libmemcached/include/libhashkit-1.0'
  39. /usr/bin/install -c -m 644  libhashkit-1.0/algorithm.h libhashkit-1.0/behavior.h libhashkit-1.0/configure.h libhashkit-1.0/digest.h libhashkit-1.0/function.h libhashkit-1.0/has.h libhashkit-1.0/hashkit.h libhashkit-1.0/hashkit.hpp libhashkit-1.0/strerror.h libhashkit-1.0/string.h libhashkit-1.0/str_algorithm.h libhashkit-1.0/types.h libhashkit-1.0/visibility.h '/usr/local/libmemcached/include/libhashkit-1.0'
  40. /bin/mkdir -p '/usr/local/libmemcached/include/libmemcached'
  41. /usr/bin/install -c -m 644  libmemcached/memcached.h libmemcached/memcached.hpp libmemcached/util.h '/usr/local/libmemcached/include/libmemcached'
  42. /bin/mkdir -p '/usr/local/libmemcached/include/libmemcachedutil-1.0'
  43. /usr/bin/install -c -m 644  libmemcachedutil-1.0/flush.h libmemcachedutil-1.0/ostream.hpp libmemcachedutil-1.0/pid.h libmemcachedutil-1.0/ping.h libmemcachedutil-1.0/pool.h libmemcachedutil-1.0/util.h libmemcachedutil-1.0/version.h '/usr/local/libmemcached/include/libmemcachedutil-1.0'
  44. /bin/mkdir -p '/usr/local/libmemcached/lib/pkgconfig'
  45. /usr/bin/install -c -m 644 support/libmemcached.pc '/usr/local/libmemcached/lib/pkgconfig'
  46. make[2]: Leaving directory `/root/lnmp1.6/src/libmemcached-1.0.18'
  47. make[1]: Leaving directory `/root/lnmp1.6/src/libmemcached-1.0.18'
  48. memcached-3.1.4.tgz [found]
  49. Uncompress memcached-3.1.4.tgz...
  50. cd memcached-3.1.4...
  51. Configuring for:
  52. PHP Api Version:         20180731
  53. Zend Module Api No:      20180731
  54. Zend Extension Api No:   320180731
  55. configure.ac:3: error: Autoconf version 2.68 or higher is required
  56. configure.ac:3: the top level
  57. autom4te: /usr/bin/m4 failed with exit status: 63
  58. include/memcached.sh: line 55: ./configure: No such file or directory
  59. make: *** No targets specified and no makefile found.  Stop.
  60. make: *** No targets specified and no makefile found.  Stop.
  61. make: *** No rule to make target `install'.  Stop.
复制代码

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

 楼主| 发表于 2020-5-19 10:46:22 | 显示全部楼层

  1. Copy Memcached PHP Test file...
  2. Restarting php-fpm......
  3. Gracefully shutting down php-fpm . done
  4. Starting php-fpm [19-May-2020 09:41:40] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  5. done
  6. iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
  7. iptables: Trying to reload firewall rules: [  OK  ]
  8. Starting Memcached...
  9. Starting memcached:  done
  10. Memcached install failed!
复制代码
发表于 2020-5-19 13:34:22 | 显示全部楼层


configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 63

你系统可能是centos 6,自带的autoconf版本太低不满足要求
可以尝试编译个2.69的autoconf然后再试一下
  1. wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
  2. tar zxf autoconf-2.69.tar.gz
  3. cd autoconf-2.69
  4. ./configure --prefix=/usr
  5. make && make install

  6. autoconf -V 看一下版本是否升级成功
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-5-22 22:52:59 | 显示全部楼层

licess 发表于 2020-5-19 13:34
configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
a ...

解决了,感谢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-21 01:27 , Processed in 0.028307 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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