What didn't work? The install or configure? Can you confirm that after a sudo apt-get install libcurl4-openssl-dev, configure still complains? This may require re-bootstrapping.
I tested this on an Ubuntu 12.04 VM and got it working, so let me know otherwise and I'll have to check this out on a brand new ubuntu VM. On Mon, Oct 29, 2012 at 2:12 PM, Jie Yu <[email protected]> wrote: > I am running Ubuntu 12.04 > > jieyu@vm ~/workspace/mesos/build$ uname -a > Linux Jie-Ubuntu-VM 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC > 2012 x86_64 x86_64 x86_64 GNU/Linux > > - Jie > > On Mon, Oct 29, 2012 at 5:07 PM, Jie Yu <[email protected]> wrote: > > > Nope. Does not work. > > > > - Jie > > > > > > On Mon, Oct 29, 2012 at 4:56 PM, Benjamin Mahler <[email protected] > >wrote: > > > >> After a quick search, see: > >> http://code.google.com/p/clamz/issues/detail?id=20&can=1 > >> > >> Can you try: > >> $ sudo apt-get install libcurl4-openssl-dev > >> > >> On Mon, Oct 29, 2012 at 1:46 PM, Jie Yu <[email protected]> wrote: > >> > >> > Hi, > >> > > >> > Even if I have libcurl installed on my box, the error is still there: > >> > > >> > jieyu@vm ~/workspace/mesos/build$ sudo apt-get install libcurl3 > >> > > Reading package lists... Done > >> > > Building dependency tree > >> > > Reading state information... Done > >> > > libcurl3 is already the newest version. > >> > > 0 upgraded, 0 newly installed, 0 to remove and 152 not upgraded. > >> > > >> > > >> > configure: error: cannot find libcurl > >> > > > ------------------------------------------------------------------- > >> > > You can avoid this with --without-curl, but it will mean executor > >> > > and task resources cannot be downloaded over http. > >> > > > ------------------------------------------------------------------- > >> > > >> > > >> > On Fri, Oct 26, 2012 at 8:27 PM, Benjamin Mahler <[email protected] > >> > >wrote: > >> > > >> > > So we can either add --without-curl to the configure command line, > or > >> we > >> > > can try to install libcurl on that apache box. > >> > > > >> > > On Fri, Oct 26, 2012 at 5:23 PM, Benjamin Mahler < > [email protected] > >> > > >wrote: > >> > > > >> > > > Ugh. Guess they don't have libcurl on that box. > >> > > > > >> > > > > >> > > > On Fri, Oct 26, 2012 at 4:42 PM, Apache Jenkins Server < > >> > > > [email protected]> wrote: > >> > > > > >> > > >> See < > >> > > >> > >> > > > >> > > >> > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/238/changes > >> > > >> > > >> > > >> > >> > > >> Changes: > >> > > >> > >> > > >> [benh] Added a src/tests/assert.hpp. > >> > > >> > >> > > >> [benh] Removed the old Python-based webui. > >> > > >> > >> > > >> From: Ben Mahler <[email protected]> > >> > > >> Review: https://reviews.apache.org/r/7708 > >> > > >> > >> > > >> [benh] Encoding HTTP Responses with gzip by default. Decoding > >> incoming > >> > > >> compressed messages. > >> > > >> > >> > > >> From: Ben Mahler <[email protected]> > >> > > >> Review: https://reviews.apache.org/r/7681 > >> > > >> > >> > > >> [benh] Adding gzip compression in stout. > >> > > >> > >> > > >> From: Ben Mahler <[email protected]> > >> > > >> Review: https://reviews.apache.org/r/7675 > >> > > >> > >> > > >> [benh] Building with libcurl and libz by default, and provide > >> useful > >> > > >> messages > >> > > >> when they are missing. > >> > > >> > >> > > >> From: Ben Mahler <[email protected]> > >> > > >> Review: https://reviews.apache.org/r/7666 > >> > > >> > >> > > >> [benh] Exposing completed frameworks, executors, tasks, and their > >> > > >> sandboxes, > >> > > >> in the webui. > >> > > >> > >> > > >> From: Ben Mahler <[email protected]> > >> > > >> Review: https://reviews.apache.org/r/7642 > >> > > >> > >> > > >> [benh] Replacing executor run directory numbers with uuids. > >> > > >> > >> > > >> From: Ben Mahler <[email protected]> > >> > > >> Review: https://reviews.apache.org/r/7658 > >> > > >> > >> > > >> ------------------------------------------ > >> > > >> [...truncated 172 lines...] > >> > > >> configure.ac:44: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:44: the top level > >> > > >> configure.ac:44: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized argument: $[1] > >> > > >> configure.ac:44: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:44: the top level > >> > > >> configure.ac:201: warning: The macro `AC_LANG_SAVE' is obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:126: AC_LANG_SAVE is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> configure.ac:201: warning: The macro `AC_LANG_C' is obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> configure.ac:201: warning: The macro `AC_TRY_LINK' is obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> configure.ac:201: warning: The macro `AC_LANG_RESTORE' is > >> obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:135: AC_LANG_RESTORE is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> autoreconf: configure.ac: adding subdirectory > >> third_party/libprocess > >> > to > >> > > >> autoreconf > >> > > >> autoreconf: Entering directory `third_party/libprocess' > >> > > >> configure.ac:28: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized option: $[1] > >> > > >> configure.ac:28: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:28: the top level > >> > > >> configure.ac:28: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized argument: $[1] > >> > > >> configure.ac:28: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:28: the top level > >> > > >> configure.ac:65: warning: The macro `AC_LANG_SAVE' is obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:126: AC_LANG_SAVE is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> configure.ac:65: warning: The macro `AC_LANG_C' is obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> configure.ac:65: warning: The macro `AC_TRY_LINK' is obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> configure.ac:65: warning: The macro `AC_LANG_RESTORE' is > obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:135: AC_LANG_RESTORE is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> autoreconf: running: libtoolize --install --copy > >> > > >> autoreconf: running: /usr/bin/autoconf --warnings=all > >> > > >> configure.ac:28: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized option: $[1] > >> > > >> configure.ac:28: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:28: the top level > >> > > >> configure.ac:28: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized argument: $[1] > >> > > >> configure.ac:28: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:28: the top level > >> > > >> configure.ac:65: warning: The macro `AC_LANG_SAVE' is obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:126: AC_LANG_SAVE is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> configure.ac:65: warning: The macro `AC_LANG_C' is obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> configure.ac:65: warning: The macro `AC_TRY_LINK' is obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> configure.ac:65: warning: The macro `AC_LANG_RESTORE' is > obsolete. > >> > > >> configure.ac:65: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:135: AC_LANG_RESTORE is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:65: the top level > >> > > >> autoreconf: configure.ac: not using Autoheader > >> > > >> autoreconf: running: automake --add-missing --copy --no-force > >> > > >> --warnings=all > >> > > >> autoreconf: Leaving directory `third_party/libprocess' > >> > > >> configure.ac:44: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized option: $[1] > >> > > >> configure.ac:44: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:44: the top level > >> > > >> configure.ac:44: warning: back quotes and double quotes must not > >> be > >> > > >> escaped in: unrecognized argument: $[1] > >> > > >> configure.ac:44: Try \`$[0] --help' for more information. > >> > > >> m4/libtool.m4:609: LT_OUTPUT is expanded from... > >> > > >> configure.ac:44: the top level > >> > > >> configure.ac:201: warning: The macro `AC_LANG_SAVE' is obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:126: AC_LANG_SAVE is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> configure.ac:201: warning: The macro `AC_LANG_C' is obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> configure.ac:201: warning: The macro `AC_TRY_LINK' is obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> configure.ac:201: warning: The macro `AC_LANG_RESTORE' is > >> obsolete. > >> > > >> configure.ac:201: You should run autoupdate. > >> > > >> ../../lib/autoconf/lang.m4:135: AC_LANG_RESTORE is expanded > from... > >> > > >> m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from... > >> > > >> configure.ac:201: the top level > >> > > >> autoreconf: Leaving directory `.' > >> > > >> + test -d build > >> > > >> + rm -rf build > >> > > >> + mkdir build > >> > > >> + cd build > >> > > >> + ../configure --disable-java --disable-python --disable-webui > >> > > >> checking build system type... x86_64-unknown-linux-gnu > >> > > >> checking host system type... x86_64-unknown-linux-gnu > >> > > >> checking target system type... x86_64-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... /bin/mkdir -p > >> > > >> checking for gawk... no > >> > > >> checking for mawk... mawk > >> > > >> checking whether make sets $(MAKE)... yes > >> > > >> checking for style of include used by make... GNU > >> > > >> checking for g++... g++ > >> > > >> 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 g++ accepts -g... yes > >> > > >> checking dependency style of g++... gcc3 > >> > > >> checking for ar... ar > >> > > >> checking the archiver (ar) interface... ar > >> > > >> checking how to print strings... printf > >> > > >> checking for gcc... gcc > >> > > >> 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 dependency style of gcc... gcc3 > >> > > >> checking for a sed that does not truncate output... /bin/sed > >> > > >> checking for grep that handles long lines and -e... /bin/grep > >> > > >> checking for egrep... /bin/grep -E > >> > > >> 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 whether ln -s works... yes > >> > > >> checking the maximum length of command line arguments... 1572864 > >> > > >> checking whether the shell understands some XSI constructs... yes > >> > > >> checking whether the shell understands "+="... yes > >> > > >> checking how to convert x86_64-unknown-linux-gnu file names to > >> > > >> x86_64-unknown-linux-gnu format... func_convert_file_noop > >> > > >> checking how to convert x86_64-unknown-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 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... mt > >> > > >> checking if mt is a manifest tool... no > >> > > >> checking how to run the C preprocessor... gcc -E > >> > > >> 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... yes > >> > > >> 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 -m elf_x86_64) > >> 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 how to run the C++ preprocessor... g++ -E > >> > > >> checking for ld used by g++... /usr/bin/ld -m elf_x86_64 > >> > > >> checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... > yes > >> > > >> checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) > >> supports > >> > > >> shared libraries... yes > >> > > >> checking for g++ option to produce PIC... -fPIC -DPIC > >> > > >> checking if g++ PIC flag -fPIC -DPIC works... yes > >> > > >> checking if g++ static flag -static works... yes > >> > > >> checking if g++ supports -c -o file.o... yes > >> > > >> checking if g++ supports -c -o file.o... (cached) yes > >> > > >> checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) > >> supports > >> > > >> shared libraries... yes > >> > > >> checking dynamic linker characteristics... (cached) GNU/Linux > ld.so > >> > > >> checking how to hardcode library paths into programs... immediate > >> > > >> configure: creating ./config.lt > >> > > >> config.lt: creating libtool > >> > > >> =========================================================== > >> > > >> Setting up build environment for x86_64 linux-gnu > >> > > >> =========================================================== > >> > > >> checking whether we are using the GNU C++ compiler... (cached) > yes > >> > > >> checking whether g++ accepts -g... (cached) yes > >> > > >> checking dependency style of g++... (cached) gcc3 > >> > > >> checking whether we are using the GNU C compiler... (cached) yes > >> > > >> checking whether gcc accepts -g... (cached) yes > >> > > >> checking for gcc option to accept ISO C89... (cached) none needed > >> > > >> checking dependency style of gcc... (cached) gcc3 > >> > > >> checking for the pthreads library -lpthreads... no > >> > > >> checking whether pthreads work without any flags... no > >> > > >> checking whether pthreads work with -Kthread... no > >> > > >> checking whether pthreads work with -kthread... no > >> > > >> checking for the pthreads library -llthread... no > >> > > >> checking whether pthreads work with -pthread... yes > >> > > >> checking for joinable pthread attribute... > PTHREAD_CREATE_JOINABLE > >> > > >> checking if more special flags are required for pthreads... no > >> > > >> checking whether to check for GCC pthread/shared > inconsistencies... > >> > yes > >> > > >> checking whether -pthread is sufficient with -shared... yes > >> > > >> checking for gzread in -lz... yes > >> > > >> checking for BN_init in -lcrypto... yes > >> > > >> checking for SSL_accept in -lssl... yes > >> > > >> checking for curl_global_init in -lcurl... no > >> > > >> configure: error: cannot find libcurl > >> > > >> > >> ------------------------------------------------------------------- > >> > > >> You can avoid this with --without-curl, but it will mean > executor > >> > > >> and task resources cannot be downloaded over http. > >> > > >> > >> ------------------------------------------------------------------- > >> > > >> > >> > > >> Build step 'Execute shell' marked build as failure > >> > > >> > >> > > > > >> > > > > >> > > > >> > > >> > > > > >
