Cannot install wangle on ubuntu
rida914-4 opened this issue · 1 comments
Hi,
There are some issues while compiling wangle.
root@ubuntu:/home/kevin/fbthrift/wangle# cmake .
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- MSTCH: /usr/local/include
-- Found folly: /usr/local
-- GLOG: /usr/local/include
-- found krb5-config here KRB5_C_CONFIG-NOTFOUND
-- KRB5 was not found. Make sure the entries KRB5_* are set.
-- YARPL PATH:
-- YARPL_INCLUDE_DIRS (missing: YARPL_LIBRARIES)
CMake Error at CMakeLists.txt:82 (find_package):
Could not find a package configuration file provided by "wangle" with any
of the following names:
wangleConfig.cmake
wangle-config.cmake
Add the installation prefix of "wangle" to CMAKE_PREFIX_PATH or set
"wangle_DIR" to a directory containing one of the above files. If "wangle"
provides a separate development package or SDK, be sure it has been
installed.
Error log
Change Dir: /home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_a292c/fast"
/usr/bin/make -f CMakeFiles/cmTC_a292c.dir/build.make CMakeFiles/cmTC_a292c.dir/build
make[1]: Entering directory '/home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a292c.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_a292c.dir/CheckSymbolExists.c.o -c /home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_a292c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a292c.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a292c.dir/CheckSymbolExists.c.o -o cmTC_a292c -rdynamic
CMakeFiles/cmTC_a292c.dir/CheckSymbolExists.c.o: In functionmain': CheckSymbolExists.c:(.text+0x16): undefined reference to
pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_a292c.dir/build.make:97: recipe for target 'cmTC_a292c' failed
make[1]: *** [cmTC_a292c] Error 1
make[1]: Leaving directory '/home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_a292c/fast' failed
make: *** [cmTC_a292c/fast] Error 2File /home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmpRun Build Command:"/usr/bin/make" "cmTC_00fbc/fast"
/usr/bin/make -f CMakeFiles/cmTC_00fbc.dir/build.make CMakeFiles/cmTC_00fbc.dir/build
make[1]: Entering directory '/home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_00fbc.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_00fbc.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_00fbc
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_00fbc.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_00fbc.dir/CheckFunctionExists.c.o -o cmTC_00fbc -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_00fbc.dir/build.make:97: recipe for target 'cmTC_00fbc' failed
make[1]: *** [cmTC_00fbc] Error 1
make[1]: Leaving directory '/home/kevin/fbthrift/wangle/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_00fbc/fast' failed
make: *** [cmTC_00fbc/fast] Error 2
What is missing here?
I was in the wrong directory. Had to move to wangle/wangle