VPS侦探论坛

 找回密码
 注册
查看: 9431|回复: 10

请教:安装memcache不成功,请指点,谢谢

[复制链接]
发表于 2012-12-18 19:21:15 | 显示全部楼层 |阅读模式

下载的是:lnmp0.9-full.tar.gz 版本。
执行 ./memcache.sh 后出现下面问题:

……
……
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... yes
checking for library containing clock_gettime... -lrt
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for libevent directory... configure: error: libevent is required.  You can get it from http://www.monkey.org/~provos/libevent/

      If it's already installed, specify its path using --with-libevent=/dir/

make: *** 没有指明目标并且找不到 makefile。 停止。
ln: 正在访问"/usr/local/memcached/bin/memcached": 没有那个文件或目录
useradd: user 'nobody' already exists
Copy Memcached PHP Test file...
Starting Memcached...
Starting memcached: /etc/init.d/memcached: line 31: memcached: command not found
……
……
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-12-18 19:50:22 | 显示全部楼层


前面的libevent应该是没安装上,最重要的libevent安装信息没发上来
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-12-18 19:53:46 | 显示全部楼层

那我用yum重新安装下那个软件包再试试。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-12-18 21:51:30 | 显示全部楼层



[root@local lnmp0.9-full]# ./memcached.sh

=======================================================================
Install Memcached for LNMP V0.9  ,  Written by Licess
=======================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to install memcached for lnmp

For more information please visit http://www.lnmp.org
=======================================================================

Press any key to start install Memcached...
=========================== install memcached ======================
--2012-12-18 21:29:21--  http://soft.vpser.net/lib/libevent/libevent-2.0.13-stable.tar.gz
正在解析主机 soft.vpser.net... 96.44.153.111
正在连接 soft.vpser.net|96.44.153.111|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:830805 (811K) [application/octet-stream]
正在保存至: “libevent-2.0.13-stable.tar.gz”

[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=======================> ] 830,392     7.07K/s eta(英国中部时100%

[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++========================>] 830,805     6.87K/s eta(英国中部时100%

[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++========================>] 830,805     6.87K/s   in 1m 58s  

2012-12-18 21:37:00 (1.84 KB/s) - 已保存 “libevent-2.0.13-stable.tar.gz” [830805/830805])

libevent-2.0.13-stable/
libevent-2.0.13-stable/evmap-internal.h
libevent-2.0.13-stable/event_iocp.c
libevent-2.0.13-stable/win32select.c
libevent-2.0.13-stable/configure.in
libevent-2.0.13-stable/epoll.c
libevent-2.0.13-stable/evrpc-internal.h
libevent-2.0.13-stable/autogen.sh
libevent-2.0.13-stable/event.h
libevent-2.0.13-stable/m4/
libevent-2.0.13-stable/m4/ltsugar.m4
libevent-2.0.13-stable/m4/acx_pthread.m4
libevent-2.0.13-stable/m4/ltoptions.m4
libevent-2.0.13-stable/m4/ltversion.m4
libevent-2.0.13-stable/m4/libtool.m4
libevent-2.0.13-stable/m4/lt~obsolete.m4
libevent-2.0.13-stable/libevent_openssl.pc.in
libevent-2.0.13-stable/Makefile.in
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-12-18 21:52:12 | 显示全部楼层

libevent-2.0.13-stable/event.c
libevent-2.0.13-stable/evutil_rand.c
libevent-2.0.13-stable/evmap.c
libevent-2.0.13-stable/Makefile.nmake
libevent-2.0.13-stable/log-internal.h
libevent-2.0.13-stable/ratelim-internal.h
libevent-2.0.13-stable/util-internal.h
libevent-2.0.13-stable/evdns.c
libevent-2.0.13-stable/sample/
libevent-2.0.13-stable/sample/event-test.c
libevent-2.0.13-stable/sample/signal-test.c
libevent-2.0.13-stable/sample/Makefile.in
libevent-2.0.13-stable/sample/dns-example.c
libevent-2.0.13-stable/sample/time-test.c
libevent-2.0.13-stable/sample/http-server.c
libevent-2.0.13-stable/sample/hello-world.c
libevent-2.0.13-stable/sample/le-proxy.c
libevent-2.0.13-stable/sample/Makefile.am
libevent-2.0.13-stable/defer-internal.h
libevent-2.0.13-stable/libevent.pc.in
libevent-2.0.13-stable/strlcpy.c
libevent-2.0.13-stable/arc4random.c
libevent-2.0.13-stable/event_tagging.c
libevent-2.0.13-stable/test/
libevent-2.0.13-stable/test/regress.c
libevent-2.0.13-stable/test/regress_dns.c
libevent-2.0.13-stable/test/regress_ssl.c
libevent-2.0.13-stable/test/Makefile.in
libevent-2.0.13-stable/test/tinytest.c
libevent-2.0.13-stable/test/test.sh
libevent-2.0.13-stable/test/bench_cascade.c
libevent-2.0.13-stable/test/Makefile.nmake
libevent-2.0.13-stable/test/tinytest_local.h
libevent-2.0.13-stable/test/tinytest_macros.h
libevent-2.0.13-stable/test/regress.h
libevent-2.0.13-stable/test/regress_iocp.c
libevent-2.0.13-stable/test/test-ratelim.c
libevent-2.0.13-stable/test/regress_listener.c
libevent-2.0.13-stable/test/tinytest.h
libevent-2.0.13-stable/test/regress_testutils.c
libevent-2.0.13-stable/test/regress.rpc
libevent-2.0.13-stable/test/bench_httpclient.c
libevent-2.0.13-stable/test/regress_et.c
libevent-2.0.13-stable/test/regress_testutils.h
libevent-2.0.13-stable/test/regress_zlib.c
libevent-2.0.13-stable/test/regress.gen.c
libevent-2.0.13-stable/test/regress_main.c
libevent-2.0.13-stable/test/test-eof.c
libevent-2.0.13-stable/test/regress_http.c
libevent-2.0.13-stable/test/regress.gen.h
libevent-2.0.13-stable/test/regress_rpc.c
libevent-2.0.13-stable/test/regress_minheap.c
libevent-2.0.13-stable/test/test-changelist.c
libevent-2.0.13-stable/test/bench_http.c
libevent-2.0.13-stable/test/test-time.c
libevent-2.0.13-stable/test/regress_thread.c
libevent-2.0.13-stable/test/regress_bufferevent.c
libevent-2.0.13-stable/test/test-init.c
libevent-2.0.13-stable/test/regress_util.c
libevent-2.0.13-stable/test/regress_buffer.c
libevent-2.0.13-stable/test/test-weof.c
libevent-2.0.13-stable/test/bench.c
libevent-2.0.13-stable/test/Makefile.am
libevent-2.0.13-stable/select.c
libevent-2.0.13-stable/configure
libevent-2.0.13-stable/kqueue.c
libevent-2.0.13-stable/depcomp
libevent-2.0.13-stable/missing
libevent-2.0.13-stable/http-internal.h
libevent-2.0.13-stable/devpoll.c
libevent-2.0.13-stable/evthread-internal.h
libevent-2.0.13-stable/bufferevent_sock.c
libevent-2.0.13-stable/whatsnew-2.0.txt
libevent-2.0.13-stable/config.sub
libevent-2.0.13-stable/buffer_iocp.c
libevent-2.0.13-stable/bufferevent_ratelim.c
libevent-2.0.13-stable/evutil.c
libevent-2.0.13-stable/evthread_pthread.c
libevent-2.0.13-stable/bufferevent.c
libevent-2.0.13-stable/signal.c
libevent-2.0.13-stable/evthread.c
libevent-2.0.13-stable/strlcpy-internal.h
libevent-2.0.13-stable/README
libevent-2.0.13-stable/mm-internal.h
libevent-2.0.13-stable/event-internal.h
libevent-2.0.13-stable/bufferevent_openssl.c
libevent-2.0.13-stable/install-sh
libevent-2.0.13-stable/evport.c
libevent-2.0.13-stable/config.guess
libevent-2.0.13-stable/Doxyfile
libevent-2.0.13-stable/WIN32-Code/
libevent-2.0.13-stable/WIN32-Code/tree.h
libevent-2.0.13-stable/WIN32-Code/event2/
libevent-2.0.13-stable/WIN32-Code/event2/event-config.h
libevent-2.0.13-stable/epoll_sub.c
libevent-2.0.13-stable/listener.c
libevent-2.0.13-stable/ht-internal.h

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

 楼主| 发表于 2012-12-18 21:52:35 | 显示全部楼层

libevent-2.0.13-stable/bufferevent_filter.c
libevent-2.0.13-stable/evsignal-internal.h
libevent-2.0.13-stable/evthread_win32.c
libevent-2.0.13-stable/bufferevent_pair.c
libevent-2.0.13-stable/poll.c
libevent-2.0.13-stable/log.c
libevent-2.0.13-stable/config.h.in
libevent-2.0.13-stable/evbuffer-internal.h
libevent-2.0.13-stable/compile
libevent-2.0.13-stable/ltmain.sh
libevent-2.0.13-stable/buffer.c
libevent-2.0.13-stable/bufferevent_async.c
libevent-2.0.13-stable/compat/
libevent-2.0.13-stable/compat/sys/
libevent-2.0.13-stable/compat/sys/queue.h
libevent-2.0.13-stable/evrpc.c
libevent-2.0.13-stable/ChangeLog
libevent-2.0.13-stable/evdns.h
libevent-2.0.13-stable/LICENSE
libevent-2.0.13-stable/include/
libevent-2.0.13-stable/include/Makefile.in
libevent-2.0.13-stable/include/event2/
libevent-2.0.13-stable/include/event2/listener.h
libevent-2.0.13-stable/include/event2/event.h
libevent-2.0.13-stable/include/event2/bufferevent_struct.h
libevent-2.0.13-stable/include/event2/bufferevent_compat.h
libevent-2.0.13-stable/include/event2/buffer_compat.h
libevent-2.0.13-stable/include/event2/dns_struct.h
libevent-2.0.13-stable/include/event2/util.h
libevent-2.0.13-stable/include/event2/tag.h
libevent-2.0.13-stable/include/event2/event_compat.h
libevent-2.0.13-stable/include/event2/bufferevent.h
libevent-2.0.13-stable/include/event2/rpc.h
libevent-2.0.13-stable/include/event2/keyvalq_struct.h
libevent-2.0.13-stable/include/event2/rpc_compat.h
libevent-2.0.13-stable/include/event2/event_struct.h
libevent-2.0.13-stable/include/event2/dns_compat.h
libevent-2.0.13-stable/include/event2/bufferevent_ssl.h
libevent-2.0.13-stable/include/event2/thread.h
libevent-2.0.13-stable/include/event2/rpc_struct.h
libevent-2.0.13-stable/include/event2/buffer.h
libevent-2.0.13-stable/include/event2/http_struct.h
libevent-2.0.13-stable/include/event2/http_compat.h
libevent-2.0.13-stable/include/event2/tag_compat.h
libevent-2.0.13-stable/include/event2/dns.h
libevent-2.0.13-stable/include/event2/http.h
libevent-2.0.13-stable/include/Makefile.am
libevent-2.0.13-stable/libevent_pthreads.pc.in
libevent-2.0.13-stable/http.c
libevent-2.0.13-stable/ipv6-internal.h
libevent-2.0.13-stable/evutil.h
libevent-2.0.13-stable/aclocal.m4
libevent-2.0.13-stable/bufferevent-internal.h
libevent-2.0.13-stable/iocp-internal.h
libevent-2.0.13-stable/evrpc.h
libevent-2.0.13-stable/changelist-internal.h
libevent-2.0.13-stable/evhttp.h
libevent-2.0.13-stable/event_rpcgen.py
libevent-2.0.13-stable/Makefile.am
libevent-2.0.13-stable/minheap-internal.h
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
 楼主| 发表于 2012-12-18 21:52:54 | 显示全部楼层

checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... 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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc 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... yes
checking for library containing inet_ntoa... none required
checking for library containing socket... none required
checking for library containing inet_aton... none required
checking for library containing clock_gettime... -lrt
checking for library containing sendfile... none required
checking for WIN32... no
checking for CYGWIN... no
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-12-18 21:53:17 | 显示全部楼层

checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing inflateEnd... -lz
checking openssl/bio.h usability... yes
checking openssl/bio.h presence... yes
checking for openssl/bio.h... yes
checking for library containing SSL_new... -lssl
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking for unistd.h... (cached) yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in6.h usability... no
checking netinet/in6.h presence... no
checking for netinet/in6.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for sys/sysctl.h... yes
checking for TAILQ_FOREACH in sys/queue.h... yes
checking for timeradd in sys/time.h... yes
checking for timercmp in sys/time.h... yes
checking for timerclear in sys/time.h... yes
checking for timerisset in sys/time.h... yes
checking whether CTL_KERN is declared... yes
checking whether KERN_RANDOM is declared... yes
checking whether RANDOM_UUID is declared... yes
checking whether KERN_ARND is declared... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for gettimeofday... yes
checking for vasprintf... yes
checking for fcntl... yes
checking for clock_gettime... yes
checking for strtok_r... yes
checking for strsep... yes
checking for getnameinfo... yes
checking for strlcpy... no
checking for inet_ntop... yes
checking for inet_pton... yes
checking for signal... yes
checking for sigaction... yes
checking for strtoll... yes
checking for inet_aton... yes
checking for pipe... yes
checking for eventfd... yes
checking for sendfile... yes
checking for mmap... yes
checking for splice... yes
checking for arc4random... no
checking for arc4random_buf... no
checking for issetugid... no
checking for geteuid... yes
checking for getegid... yes
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-12-18 22:54:20 | 显示全部楼层


一开始没发现可以传附件~   我把安装信息打包了,麻烦帮我看下,谢谢~

[local]显示信息[/local]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-12-19 10:36:32 | 显示全部楼层



memcached编译参数上加上 --with-libevent=/usr/local/libevent/lib 试试,或ln -s /usr/local/libevent/lib/ /lib/ 后试试
 楼主| 发表于 2012-12-19 13:26:25 | 显示全部楼层

我手动安装了下libevent,memcache再安装没问题了。可以使用了!
./configure -prefix=/usr
make
make install
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 02:50 , Processed in 0.029998 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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