Having issues with compile at SunOs 5.11
it seems ./configure cannot find libevent.
I tried the following two commands, and results are the same.
$ ~/membase-server-community_1.6.0.1_src/memcached]$ ./configure --
prefix=/tmp/membase-build64 --enable-isasl --enable-dependency-
tracking --enable-64bit --with-libevent=/usr/local/lib
$ ~/membase-server-community_1.6.0.1_src/memcached]$ ./configure --
prefix=/tmp/membase-build64 --enable-isasl --enable-dependency-
tracking --enable-64bit --with-libevent=/usr/local/lib --with-
libevent=/usr/local/lib
...
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/ccs/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for icc in use... no
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o
together... yes
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether byte ordering is bigendian... no
checking link.h usability... yes
checking link.h presence... yes
checking for link.h... yes
checking for dlfcn.h... (cached) yes
checking for inttypes.h... (cached) yes
checking umem.h usability... yes
checking umem.h presence... yes
checking for umem.h... yes
checking priv.h usability... yes
checking priv.h presence... yes
checking for priv.h... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for library containing clock_gettime... 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/
$ ~/membase-server-community_1.6.0.1_src/memcached]$ ls /usr/local/lib/
libevent*
/usr/local/lib/libevent_core-2.0.so.2 /usr/local/lib/
libevent_core.so /usr/local/lib/
libevent_extra.la /usr/local/lib/
libevent_pthreads.a /usr/local/lib/libevent-2.0.so.2.1.0
/usr/local/lib/libevent_core-2.0.so.2.1.0 /usr/local/lib/
libevent_extra-2.0.so.2 /usr/local/lib/
libevent_extra.so /usr/local/lib/
libevent_pthreads.la /usr/local/lib/libevent.a
/usr/local/lib/libevent_core.a /usr/local/lib/
libevent_extra-2.0.so.2.1.0 /usr/local/lib/
libevent_pthreads-2.0.so.2 /usr/local/lib/
libevent_pthreads.so /usr/local/lib/
libevent.la
/usr/local/lib/
libevent_core.la /usr/local/lib/
libevent_extra.a /usr/local/lib/
libevent_pthreads-2.0.so.2.1.0 /usr/local/lib/
libevent-2.0.so.
2 /usr/local/lib/libevent.so
libevent has to be compiled with some specific options?
Why it cannot find libevent although I see the files?
Thanks
Allen Kim