免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4262 | 回复: 9
打印 上一主题 下一主题

安装了memcache ,起动的时候总是提示找不到libevent [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-01 18:07 |只看该作者 |倒序浏览
memcache 1.2.6
错误信息 是:
: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: Error 40
我安装的时候已经加上了with-libevent=/usr/local
而且目录/usr/local/lib里也可以看到有 libevent-1.4.so.2  ,

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2012-02-01 18:08 |只看该作者
把selinux禁止下测试下

论坛徽章:
0
3 [报告]
发表于 2012-02-01 18:16 |只看该作者
我禁止了 ,还是照旧哇 !!

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2012-02-01 18:20 |只看该作者
那就奇怪了,你编译的时候没有报错?

论坛徽章:
0
5 [报告]
发表于 2012-02-02 09:31 |只看该作者
./configure --prefix=/usr/local/memcache --with-php-config=/usr/local/webserver/php/bin/php-config


checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for libevent directory... (system)
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing mallinfo... none required
checking for daemon... 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 for ANSI C header files... no
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 stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... yes
checking for socklen_t... yes
checking for endianness... little
checking for mlockall... yes
checking for getpagesizes... no
checking for memcntl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

论坛徽章:
0
6 [报告]
发表于 2012-02-02 09:34 |只看该作者
sudo make

/usr/bin/make  all-recursive
make[1]: Entering directory `/home/vincent/memcached-1.2.6'
Making all in doc
make[2]: Entering directory `/home/vincent/memcached-1.2.6/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/vincent/memcached-1.2.6/doc'
make[2]: Entering directory `/home/vincent/memcached-1.2.6'
make[2]: Leaving directory `/home/vincent/memcached-1.2.6'
make[1]: Leaving directory `/home/vincent/memcached-1.2.6'

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2012-02-02 09:40 |只看该作者
你的编译参数也没有with-libevent啊

论坛徽章:
0
8 [报告]
发表于 2012-02-02 09:46 |只看该作者
./configure --prefix=/usr/local/memcache --with-php-config=/usr/local/webserver/php/bin/php-config --with-libevent=/usr/local

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for libevent directory... /usr/local
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing mallinfo... none required
checking for daemon... 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 for ANSI C header files... no
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 stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... yes
checking for socklen_t... yes
checking for endianness... little
checking for mlockall... yes
checking for getpagesizes... no
checking for memcntl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

论坛徽章:
0
9 [报告]
发表于 2012-02-02 09:49 |只看该作者
sudo make
/usr/bin/make  all-recursive
make[1]: Entering directory `/home/vincent/memcached-1.2.6'
Making all in doc
make[2]: Entering directory `/home/vincent/memcached-1.2.6/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/vincent/memcached-1.2.6/doc'
make[2]: Entering directory `/home/vincent/memcached-1.2.6'
make[2]: Leaving directory `/home/vincent/memcached-1.2.6'
make[1]: Leaving directory `/home/vincent/memcached-1.2.6'
[vincent@localhost memcached-1.2.6]$ sudo make install
Making install in doc
make[1]: Entering directory `/home/vincent/memcached-1.2.6/doc'
make[2]: Entering directory `/home/vincent/memcached-1.2.6/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/memcache/share/man/man1" || /bin/mkdir -p "/usr/local/memcache/share/man/man1"
/usr/bin/install -c -m 644 './memcached.1' '/usr/local/memcache/share/man/man1/memcached.1'
make[2]: Leaving directory `/home/vincent/memcached-1.2.6/doc'
make[1]: Leaving directory `/home/vincent/memcached-1.2.6/doc'
make[1]: Entering directory `/home/vincent/memcached-1.2.6'
make[2]: Entering directory `/home/vincent/memcached-1.2.6'
test -z "/usr/local/memcache/bin" || /bin/mkdir -p "/usr/local/memcache/bin"
  /usr/bin/install -c 'memcached' '/usr/local/memcache/bin/memcached'
  /usr/bin/install -c 'memcached-debug' '/usr/local/memcache/bin/memcached-debug'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/vincent/memcached-1.2.6'
make[1]: Leaving directory `/home/vincent/memcached-1.2.6'

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
10 [报告]
发表于 2012-02-02 09:50 |只看该作者
楼主你的libevent是编译安装的还是yum安装的?建议你安装下libevent-devel看看.
make之前,尝试sudo make clean下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP