VPS侦探论坛

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

memcached install failed 麻烦大佬给看看。。。gcc版本是9

[复制链接]
发表于 2021-6-8 14:52:39 | 显示全部楼层 |阅读模式

Install memcached...
memcached-1.6.9.tar.gz [found]
Uncompress memcached-1.6.9.tar.gz...
cd memcached-1.6.9...
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for icc in use... no
checking for clang in use... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __SUNPRO_C is declared... no
checking for gcc option to accept ISO C99... -std=gnu99
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... yes
checking size of void *... 8
checking for library containing clock_gettime... none required
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for libevent directory... (system)
checking for library containing gethugepagesizes... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inttypes.h... (cached) yes
checking for sasl_callback_ft... yes
checking for print macros for integers (C99 section 7.8.1)... yes
checking for an ANSI C-conforming const... yes
checking for socklen_t... yes
checking whether byte ordering is bigendian... no
checking for htonll... no
checking for library containing pthread_create... none required
checking for mlockall... yes
checking for getpagesizes... no
checking for sysconf... yes
checking for memcntl... no
checking for clock_gettime... yes
checking for preadv... yes
checking for pread... yes
checking for accept4... yes
checking for getopt_long... yes
checking for alignment... none
checking for GCC atomics... yes
checking for GCC 64bit atomics... yes
checking for setppriv... no
checking for pledge... no
checking for cap_enter... no
checking for xml2rfc... no
checking for xsltproc... /usr/bin/xsltproc
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/usr/local/lnmp1.8/src/memcached-1.6.9'
Making all in doc
make[2]: Entering directory `/usr/local/lnmp1.8/src/memcached-1.6.9/doc'
make  all-am
make[3]: Entering directory `/usr/local/lnmp1.8/src/memcached-1.6.9/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/lnmp1.8/src/memcached-1.6.9/doc'
make[2]: Leaving directory `/usr/local/lnmp1.8/src/memcached-1.6.9/doc'
make[2]: Entering directory `/usr/local/lnmp1.8/src/memcached-1.6.9'
...
crc32c.c: In function ‘crc32c_init’:
crc32c.c:336:16: error: ‘HWCAP_CRC32’ undeclared (first use in this function)
     if (auxv & HWCAP_CRC32)
                ^
crc32c.c:336:16: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [memcached-crc32c.o] Error 1
make[2]: Leaving directory `/usr/local/lnmp1.8/src/memcached-1.6.9'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/lnmp1.8/src/memcached-1.6.9'
make: *** [all] Error 2
useradd: user 'nobody' already exists
Add memcached service at system startup...
Install memcache php extension...
memcache-4.0.5.2.tgz [found]
Uncompress memcache-4.0.5.2.tgz...
cd memcache-4.0.5.2...
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
...
checking for memcache session support... enabled
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
....
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
....                                                                                                                                                         
mkdir php7/.libs
mkdir php7/.libs
mkdir: cannot create directory 'php7/.libs': File exists
...
creating memcache.la
(cd .libs && rm -f memcache.la && ln -s ../memcache.la memcache.la)
/bin/sh /usr/local/lnmp1.8/src/memcache-4.0.5.2/libtool --mode=install cp ./memc                                                                                                                                                            
cp ./.libs/memcache.so /usr/local/lnmp1.8/src/memcache-4.0.5.2/modules/memcache.
cp ./.libs/memcache.lai /usr/local/lnmp1.8/src/memcache-4.0.5.2/modules/memcache
PATH="$PATH:/sbin" ldconfig -n /usr/local/lnmp1.8/src/memcache-4.0.5.2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lnmp1.8/src/memcache-4.0.5.2/modules

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

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

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

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
Copy Memcached PHP Test file...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
Redirecting to /bin/systemctl reload iptables.service
Job for iptables.service invalid.
Starting Memcached...
Starting memcached: /etc/init.d/memcached: line 32: /usr/local/memcached/bin/memcached: No such file or directory
failed
Memcached install failed!

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-6-8 14:55:06 | 显示全部楼层

php使用的7.2,系统使用的centos7 ,cmake3.20.3,gcc 9
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-6-8 16:07:36 | 显示全部楼层



大佬来看看呗。。。。。很痛苦。。定位不到错误。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-6-8 19:47:53 | 显示全部楼层

他们issue看有可能是aarch64下的bug,可以下载 http://memcached.org/files/memcached-1.6.8.tar.gz 到 src 目录下
更改 include/version.sh
使用这个版本试试

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

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

本版积分规则

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

GMT+8, 2024-11-24 18:00 , Processed in 0.027458 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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