cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)

cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)

参考:

https://stackoverflow.com/questions/30017397/error-curl-usr-local-lib-libcurl-so-4-no-version-information-available-requ

https://www.htcp.net/3766.html

wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ ls
CMakeLists.txt  main.c
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ cmake .
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at


    /home/wangpan/backup/cmake/t1/CMakeLists.txt:3:37


  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.


CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at


    /home/wangpan/backup/cmake/t1/CMakeLists.txt:4:37


  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.


-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- This is BINARY dir /home/wangpan/backup/cmake/t1
-- This is SOURCE dir /home/wangpan/backup/cmake/t1
-- Configuring done
CMake Error at CMakeLists.txt:5 (ADD_EXECUTABLE):
  Cannot find source file:


    SRC_LIST


  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx




CMake Error: CMake can not determine linker language for target: hello
CMake Error: Cannot determine link language for target "hello".
-- Generating done
-- Build files have been written to: /home/wangpan/backup/cmake/t1

wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ locate libcurl.so.4
/home/wangpan/software/curl-7.59.0/lib/.libs/libcurl.so.4
/home/wangpan/software/curl-7.59.0/lib/.libs/libcurl.so.4.5.0
/home/wangpan/work_record/tool/curl-7.57.0/lib/.libs/libcurl.so.4
/home/wangpan/work_record/tool/curl-7.57.0/lib/.libs/libcurl.so.4.5.0
/local/scratch/PACKAGES/local/lib/libcurl.so.4
/local/scratch/PACKAGES/local/lib/libcurl.so.4.5.0
/usr/lib/x86_64-linux-gnu/libcurl.so.4
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0
/usr/local/lib/libcurl.so.4
/usr/local/lib/libcurl.so.4.5.0
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ ls -l /usr/local/lib/libcurl.so.4
lrwxrwxrwx 1 root root 16 3月  26 10:43 /usr/local/lib/libcurl.so.4 -> libcurl.so.4.5.0
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ which curl
/usr/local/bin/curl
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ rm -rf /usr/local/lib/libcurl.so.4
rm: cannot remove '/usr/local/lib/libcurl.so.4': Permission denied
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ sudo rm -rf /usr/local/lib/libcurl.so.4
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ locate libcurl.so.4
/home/wangpan/software/curl-7.59.0/lib/.libs/libcurl.so.4
/home/wangpan/software/curl-7.59.0/lib/.libs/libcurl.so.4.5.0
/home/wangpan/work_record/tool/curl-7.57.0/lib/.libs/libcurl.so.4
/home/wangpan/work_record/tool/curl-7.57.0/lib/.libs/libcurl.so.4.5.0
/local/scratch/PACKAGES/local/lib/libcurl.so.4
/local/scratch/PACKAGES/local/lib/libcurl.so.4.5.0
/usr/lib/x86_64-linux-gnu/libcurl.so.4
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0
/usr/local/lib/libcurl.so.4
/usr/local/lib/libcurl.so.4.5.0
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0 /usr/local/lib/libcurl.so.4
ln: failed to create symbolic link '/usr/local/lib/libcurl.so.4': Permission denied
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0 /usr/local/lib/libcurl.so.4
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ ls -l /usr/local/lib/libcurl.so.4
lrwxrwxrwx 1 root root 42 5月   4 14:49 /usr/local/lib/libcurl.so.4 -> /usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ cmake .
CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at


    /home/wangpan/backup/cmake/t1/CMakeLists.txt:3:37


  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.


CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at


    /home/wangpan/backup/cmake/t1/CMakeLists.txt:4:37


  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.


-- This is BINARY dir /home/wangpan/backup/cmake/t1
-- This is SOURCE dir /home/wangpan/backup/cmake/t1
-- Configuring done
CMake Error at CMakeLists.txt:5 (ADD_EXECUTABLE):
  Cannot find source file:


    SRC_LIST


  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx




CMake Error: CMake can not determine linker language for target: hello
CMake Error: Cannot determine link language for target "hello".
-- Generating done
-- Build files have been written to: /home/wangpan/backup/cmake/t1
wangpan@wangpan-OptiPlex-7050:~/backup/cmake/t1$ 



猜你喜欢

转载自blog.csdn.net/wangpanbaoding/article/details/80195208