Trying to run install command and seeing the following issue:
Install the project…
– Install configuration: “Release”
– Installing: /usr/lib/libcares.a
CMake Error at cmake_install.cmake:46 (file):
file INSTALL cannot copy file
“/root/grpc/build/third_party/cares/cares/lib/x86_64-linux-gnu/libcares.a”
to “/usr/lib/libcares.a”: No such file or directory.
make: *** [Makefile:120: install] Error 1
**** Installation failed. Aborting package creation.
Cleaning up…OK
Bye.
The portion of contents of cmake_install.cmake:
if(CMAKE_INSTALL_COMPONENT STREQUAL “Unspecified” OR NOT CMAKE_INSTALL_COMPONENT)
file(INSTALL DESTINATION “${CMAKE_INSTALL_PREFIX}/lib” TYPE STATIC_LIBRARY FILES “/root/grpc/build/third_party/cares/cares/lib/x86_64-linux-gnu/libcares.a”)
endif()
And the file location:
root@abc:~/grpc/build# ls -l “/root/grpc/build/third_party/cares/cares/lib/x86_64-linux-gnu/libcares.a”
-rw-r–r-- 1 root root 201358 May 21 17:22 /root/grpc/build/third_party/cares/cares/lib/x86_64-linux-gnu/libcares.a
Not understanding why we are seeing this issue even the file is present in the specified folder.
Thanks & Regards,
Ramana