当前位置: 技术问答>linux和unix
gearman安装找不到libevent,可是明明安装了啊
来源: 互联网 发布时间:2017-05-22
本文导语: 这两周都在用源代码安装gearman,好几个依赖都过去了,就是说找不到libevent。 下面是错误信息,希望高手帮忙,对linux的文件安装不是很懂,什么lib目录的更是不懂了。 难道要配置环境变量么? #./configure .... checki...
这两周都在用源代码安装gearman,好几个依赖都过去了,就是说找不到libevent。
下面是错误信息,希望高手帮忙,对linux的文件安装不是很懂,什么lib目录的更是不懂了。
难道要配置环境变量么?
#./configure
....
checking for clock_gettime in -lrt... yes
checking for clock_gettime... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking cyassl/ssl.h usability... no
checking cyassl/ssl.h presence... no
checking for cyassl/ssl.h... no
no
checking libmemcached-1.0/memcached.h usability... no
checking libmemcached-1.0/memcached.h presence... no
checking for libmemcached-1.0/memcached.h... no
checking test for a working libevent... no
configure: error: Unable to find libevent
我特地找了一下我的libevent的目录
# find / -name libevent*
/u01/libevent-2.0.21-stable
/u01/libevent-2.0.21-stable/libevent_openssl.pc.in
/u01/libevent-2.0.21-stable/libevent_extra.la
/u01/libevent-2.0.21-stable/libevent.la
/u01/libevent-2.0.21-stable/libevent_openssl.pc
/u01/libevent-2.0.21-stable/libevent.pc.in
/u01/libevent-2.0.21-stable/libevent.pc
/u01/libevent-2.0.21-stable/libevent_openssl.la
/u01/libevent-2.0.21-stable/libevent_pthreads.pc.in
/u01/libevent-2.0.21-stable/libevent_core.la
/u01/libevent-2.0.21-stable/libevent_pthreads.la
/u01/libevent-2.0.21-stable/.libs/libevent-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent_openssl-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent_core-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_core.lai
/u01/libevent-2.0.21-stable/.libs/libevent_extra.la
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_core-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent.la
/u01/libevent-2.0.21-stable/.libs/libevent_core.so
/u01/libevent-2.0.21-stable/.libs/libevent.lai
/u01/libevent-2.0.21-stable/.libs/libevent.a
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.a
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.so
/u01/libevent-2.0.21-stable/.libs/libevent_extra-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent.so
/u01/libevent-2.0.21-stable/.libs/libevent-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_extra.so
/u01/libevent-2.0.21-stable/.libs/libevent_extra.a
/u01/libevent-2.0.21-stable/.libs/libevent_extra-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.lai
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.so
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.a
/u01/libevent-2.0.21-stable/.libs/libevent_core.a
/u01/libevent-2.0.21-stable/.libs/libevent_openssl-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.la
/u01/libevent-2.0.21-stable/.libs/libevent_core.la
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.la
/u01/libevent-2.0.21-stable/.libs/libevent_extra.lai
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.lai
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/libevent_pthreads.pc
/u01/libevent-2.0.21-stable.tar.gz
/usr/local/lib/libevent-2.0.so.5.1.9
/usr/local/lib/libevent_openssl-2.0.so.5.1.9
/usr/local/lib/libevent_core-2.0.so.5
/usr/local/lib/libevent_extra.la
/usr/local/lib/libevent_pthreads-2.0.so.5
/usr/local/lib/libevent_core-2.0.so.5.1.9
/usr/local/lib/libevent.la
/usr/local/lib/libevent_core.so
/usr/local/lib/pkgconfig/libevent_openssl.pc
/usr/local/lib/pkgconfig/libevent.pc
/usr/local/lib/pkgconfig/libevent_pthreads.pc
/usr/local/lib/libevent.a
/usr/local/lib/libevent_pthreads.a
/usr/local/lib/libevent_openssl.so
/usr/local/lib/libevent_extra-2.0.so.5
/usr/local/lib/libevent.so
/usr/local/lib/libevent-2.0.so.5
/usr/local/lib/libevent_extra.so
/usr/local/lib/libevent_extra.a
/usr/local/lib/libevent_extra-2.0.so.5.1.9
/usr/local/lib/libevent_pthreads.so
/usr/local/lib/libevent_openssl.a
/usr/local/lib/libevent_core.a
/usr/local/lib/libevent_openssl-2.0.so.5
/usr/local/lib/libevent_openssl.la
/usr/local/lib/libevent_core.la
/usr/local/lib/libevent_pthreads.la
/usr/local/lib/libevent_pthreads-2.0.so.5.1.9
/usr/lib/libevent-2.0.so.5.1.9
/usr/lib/libevent_openssl-2.0.so.5.1.9
/usr/lib/libevent_core-2.0.so.5
/usr/lib/libevent_extra.la
/usr/lib/libevent_pthreads-2.0.so.5
/usr/lib/libevent_core-2.0.so.5.1.9
/usr/lib/libevent.la
/usr/lib/libevent_core.so
/usr/lib/pkgconfig/libevent_openssl.pc
/usr/lib/pkgconfig/libevent.pc
/usr/lib/pkgconfig/libevent_pthreads.pc
/usr/lib/libevent.a
/usr/lib/libevent_pthreads.a
/usr/lib/libevent_openssl.so
/usr/lib/libevent_extra-2.0.so.5
/usr/lib/libevent.so
/usr/lib/libevent-2.0.so.5
/usr/lib/libevent_extra.so
/usr/lib/libevent_extra.a
/usr/lib/libevent_extra-2.0.so.5.1.9
/usr/lib/libevent_pthreads.so
/usr/lib/libevent_openssl.a
/usr/lib/libevent_core.a
/usr/lib/libevent_openssl-2.0.so.5
/usr/lib/libevent_openssl.la
/usr/lib/libevent_core.la
/usr/lib/libevent_pthreads.la
/usr/lib/libevent_pthreads-2.0.so.5.1.9
/usr/lib64/libevent_extra-1.4.so.2.1.3
/usr/lib64/libevent-1.4.so.2.1.3
/usr/lib64/libevent_core-1.4.so.2.1.3
/usr/lib64/libevent_core-1.4.so.2
/usr/lib64/libevent-1.4.so.2
/usr/lib64/libevent_extra-1.4.so.2
/usr/share/doc/libevent-1.4.13
/u02/redis/redis-2.6.14/deps/hiredis/adapters/libevent.h
下面是错误信息,希望高手帮忙,对linux的文件安装不是很懂,什么lib目录的更是不懂了。
难道要配置环境变量么?
#./configure
....
checking for clock_gettime in -lrt... yes
checking for clock_gettime... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking cyassl/ssl.h usability... no
checking cyassl/ssl.h presence... no
checking for cyassl/ssl.h... no
no
checking libmemcached-1.0/memcached.h usability... no
checking libmemcached-1.0/memcached.h presence... no
checking for libmemcached-1.0/memcached.h... no
checking test for a working libevent... no
configure: error: Unable to find libevent
我特地找了一下我的libevent的目录
# find / -name libevent*
/u01/libevent-2.0.21-stable
/u01/libevent-2.0.21-stable/libevent_openssl.pc.in
/u01/libevent-2.0.21-stable/libevent_extra.la
/u01/libevent-2.0.21-stable/libevent.la
/u01/libevent-2.0.21-stable/libevent_openssl.pc
/u01/libevent-2.0.21-stable/libevent.pc.in
/u01/libevent-2.0.21-stable/libevent.pc
/u01/libevent-2.0.21-stable/libevent_openssl.la
/u01/libevent-2.0.21-stable/libevent_pthreads.pc.in
/u01/libevent-2.0.21-stable/libevent_core.la
/u01/libevent-2.0.21-stable/libevent_pthreads.la
/u01/libevent-2.0.21-stable/.libs/libevent-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent_openssl-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent_core-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_core.lai
/u01/libevent-2.0.21-stable/.libs/libevent_extra.la
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_core-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent.la
/u01/libevent-2.0.21-stable/.libs/libevent_core.so
/u01/libevent-2.0.21-stable/.libs/libevent.lai
/u01/libevent-2.0.21-stable/.libs/libevent.a
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.a
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.so
/u01/libevent-2.0.21-stable/.libs/libevent_extra-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent.so
/u01/libevent-2.0.21-stable/.libs/libevent-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_extra.so
/u01/libevent-2.0.21-stable/.libs/libevent_extra.a
/u01/libevent-2.0.21-stable/.libs/libevent_extra-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.lai
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.so
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.a
/u01/libevent-2.0.21-stable/.libs/libevent_core.a
/u01/libevent-2.0.21-stable/.libs/libevent_openssl-2.0.so.5
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.la
/u01/libevent-2.0.21-stable/.libs/libevent_core.la
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads.la
/u01/libevent-2.0.21-stable/.libs/libevent_extra.lai
/u01/libevent-2.0.21-stable/.libs/libevent_openssl.lai
/u01/libevent-2.0.21-stable/.libs/libevent_pthreads-2.0.so.5.1.9
/u01/libevent-2.0.21-stable/libevent_pthreads.pc
/u01/libevent-2.0.21-stable.tar.gz
/usr/local/lib/libevent-2.0.so.5.1.9
/usr/local/lib/libevent_openssl-2.0.so.5.1.9
/usr/local/lib/libevent_core-2.0.so.5
/usr/local/lib/libevent_extra.la
/usr/local/lib/libevent_pthreads-2.0.so.5
/usr/local/lib/libevent_core-2.0.so.5.1.9
/usr/local/lib/libevent.la
/usr/local/lib/libevent_core.so
/usr/local/lib/pkgconfig/libevent_openssl.pc
/usr/local/lib/pkgconfig/libevent.pc
/usr/local/lib/pkgconfig/libevent_pthreads.pc
/usr/local/lib/libevent.a
/usr/local/lib/libevent_pthreads.a
/usr/local/lib/libevent_openssl.so
/usr/local/lib/libevent_extra-2.0.so.5
/usr/local/lib/libevent.so
/usr/local/lib/libevent-2.0.so.5
/usr/local/lib/libevent_extra.so
/usr/local/lib/libevent_extra.a
/usr/local/lib/libevent_extra-2.0.so.5.1.9
/usr/local/lib/libevent_pthreads.so
/usr/local/lib/libevent_openssl.a
/usr/local/lib/libevent_core.a
/usr/local/lib/libevent_openssl-2.0.so.5
/usr/local/lib/libevent_openssl.la
/usr/local/lib/libevent_core.la
/usr/local/lib/libevent_pthreads.la
/usr/local/lib/libevent_pthreads-2.0.so.5.1.9
/usr/lib/libevent-2.0.so.5.1.9
/usr/lib/libevent_openssl-2.0.so.5.1.9
/usr/lib/libevent_core-2.0.so.5
/usr/lib/libevent_extra.la
/usr/lib/libevent_pthreads-2.0.so.5
/usr/lib/libevent_core-2.0.so.5.1.9
/usr/lib/libevent.la
/usr/lib/libevent_core.so
/usr/lib/pkgconfig/libevent_openssl.pc
/usr/lib/pkgconfig/libevent.pc
/usr/lib/pkgconfig/libevent_pthreads.pc
/usr/lib/libevent.a
/usr/lib/libevent_pthreads.a
/usr/lib/libevent_openssl.so
/usr/lib/libevent_extra-2.0.so.5
/usr/lib/libevent.so
/usr/lib/libevent-2.0.so.5
/usr/lib/libevent_extra.so
/usr/lib/libevent_extra.a
/usr/lib/libevent_extra-2.0.so.5.1.9
/usr/lib/libevent_pthreads.so
/usr/lib/libevent_openssl.a
/usr/lib/libevent_core.a
/usr/lib/libevent_openssl-2.0.so.5
/usr/lib/libevent_openssl.la
/usr/lib/libevent_core.la
/usr/lib/libevent_pthreads.la
/usr/lib/libevent_pthreads-2.0.so.5.1.9
/usr/lib64/libevent_extra-1.4.so.2.1.3
/usr/lib64/libevent-1.4.so.2.1.3
/usr/lib64/libevent_core-1.4.so.2.1.3
/usr/lib64/libevent_core-1.4.so.2
/usr/lib64/libevent-1.4.so.2
/usr/lib64/libevent_extra-1.4.so.2
/usr/share/doc/libevent-1.4.13
/u02/redis/redis-2.6.14/deps/hiredis/adapters/libevent.h
|
把 libevent 的 路径加到 include ld.so.conf.d/*.conf 后面试试
|
要看编译输出,不能瞎猜,错误:
./libgearman-1.0/gearman.h:53:27: error: tr1/cinttypes: No such file or directory
|
删掉一个,看 ld.so.conf.d/*.conf 里面有没有 libevent 的路径,一般是有的
|
http://www.livingelsewhere.net/2012/08/22/gearman-instal/ Gearman 安装及常见问题
|
/usr/local/include下面有没有libevent的头文件呢。
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。