compilation and installation issue prometheus cpp #66
Unanswered
ShubhamManuSharma
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
I am trying to compile and install Prometheus CPP client code,
Following the direction provided in README.md.
Error i am facing is :
git submodule init
git submodule update
mkdir _build
cd _build
root@ubuntu1804:_build# cmake .. -DBUILD_SHARED_LIBS=ON -DENABLE_PUSH=OFF -DENABLE_COMPRESSION=OFF
-- Could NOT find benchmark (missing: benchmark_DIR)
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
-- The following features have been enabled:
-- The following REQUIRED packages have been found:
-- The following features have been disabled:
-- The following OPTIONAL packages have not been found:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/shubham/PRO/CPP/prometheus-cpp/_build
root@ubuntu1804:_build#
root@ubuntu1804:_build#
root@ubuntu1804:_build# cmake --build . --parallel 4
[ 6%] Building CXX object pull/CMakeFiles/civetweb.dir//3rdparty/civetweb/src/CivetServer.cpp.o
[ 6%] Building C object pull/CMakeFiles/civetweb.dir//3rdparty/civetweb/src/civetweb.c.o
[ 6%] Building CXX object CMakeFiles/gmock_main.dir/3rdparty/googletest/googletest/src/gtest-all.cc.o
[ 8%] Building CXX object core/CMakeFiles/core.dir/src/check_names.cc.o
[ 10%] Building CXX object core/CMakeFiles/core.dir/src/counter.cc.o
[ 12%] Building CXX object core/CMakeFiles/core.dir/src/detail/builder.cc.o
[ 14%] Building CXX object core/CMakeFiles/core.dir/src/detail/ckms_quantiles.cc.o
[ 14%] Built target civetweb
[ 16%] Building CXX object core/CMakeFiles/core.dir/src/detail/time_window_quantiles.cc.o
[ 18%] Building CXX object core/CMakeFiles/core.dir/src/detail/utils.cc.o
[ 20%] Building CXX object core/CMakeFiles/core.dir/src/family.cc.o
[ 22%] Building CXX object core/CMakeFiles/core.dir/src/gauge.cc.o
[ 25%] Building CXX object core/CMakeFiles/core.dir/src/histogram.cc.o
[ 27%] Building CXX object core/CMakeFiles/core.dir/src/registry.cc.o
[ 29%] Building CXX object core/CMakeFiles/core.dir/src/serializer.cc.o
[ 31%] Building CXX object core/CMakeFiles/core.dir/src/summary.cc.o
[ 33%] Building CXX object core/CMakeFiles/core.dir/src/text_serializer.cc.o
[ 35%] Building CXX object CMakeFiles/gmock_main.dir/3rdparty/googletest/googlemock/src/gmock-all.cc.o
[ 37%] Building CXX object CMakeFiles/gmock_main.dir/3rdparty/googletest/googlemock/src/gmock_main.cc.o
[ 39%] Linking CXX shared library ../lib/libprometheus-cpp-core.so
CMake Error: failed to create symbolic link '../lib/libprometheus-cpp-core.so.1.0': Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: failed to create symbolic link '../lib/libprometheus-cpp-core.so': Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
core/CMakeFiles/core.dir/build.make:288: recipe for target 'lib/libprometheus-cpp-core.so.1.0.0' failed
make[2]: *** [lib/libprometheus-cpp-core.so.1.0.0] Error 1
make[2]: *** Deleting file 'lib/libprometheus-cpp-core.so.1.0.0'
CMakeFiles/Makefile2:233: recipe for target 'core/CMakeFiles/core.dir/all' failed
I am using Linux
Linux ubuntu1804 5.4.0-99-generic #112~18.04.1-Ubuntu SMP Thu Feb 3 14:09:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 18.04
I flowed installation through bazel, but getting same issue.
Beta Was this translation helpful? Give feedback.
All reactions