Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Why does Ubuntu 16.04 compilation fail? #220

Open
linuxarsenal opened this issue Mar 21, 2024 · 1 comment
Open

Question: Why does Ubuntu 16.04 compilation fail? #220

linuxarsenal opened this issue Mar 21, 2024 · 1 comment

Comments

@linuxarsenal
Copy link

linuxarsenal commented Mar 21, 2024

-- 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
-- Performing Test HAVE_MMSG_HDR
-- Performing Test HAVE_MMSG_HDR - Success
-- Looking for sendmmsg
-- Looking for sendmmsg - found
-- Looking for recvmmsg
-- Looking for recvmmsg - found
CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:335 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:91 (find_package)


CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:336 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:91 (find_package)


CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:338 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:91 (find_package)


CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:340 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:91 (find_package)


-- 找到openssl库:"/usr/include",ENABLE_OPENSSL宏已打开
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION - Success
-- Found MySQL: /usr/include/mysql, /usr/lib/x86_64-linux-gnu/libmysqlclient.so
-- MySQL Embedded not found.
-- 找到mysqlclient库:"/usr/include/mysql",ENABLE_MYSQL宏已打开
-- 将链接依赖库:/usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so;/usr/lib/x86_64-linux-gnu/libmysqlclient.so
cp: cannot create regular file '/home/ubuntu/workspace/vsprj/OpenSourceCodes/ZLToolKit/linux_build/bin/': Not a directory
-- 添加测试程序:test_ssl
-- 添加测试程序:test_ringBuffer
-- 添加测试程序:test_shell
-- 添加测试程序:test_pingpong
-- 添加测试程序:test_tcpClient
-- 添加测试程序:test_semaphore
-- 添加测试程序:test_sql
-- 添加测试程序:test_eventPoller
-- 添加测试程序:test_logger
-- 添加测试程序:test_threadPoolBenchmark
-- 添加测试程序:test_noticeCenter
-- 添加测试程序:test_udpSock
-- 添加测试程序:test_resourcePool
-- 添加测试程序:test_ini
-- 添加测试程序:test_creator
-- 添加测试程序:test_threadPool
-- 添加测试程序:test_tcpEchoServer
-- 添加测试程序:test_delayTask
-- 添加测试程序:test_timer
-- 添加测试程序:test_pipe
-- 添加测试程序:test_variant
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/workspace/vsprj/OpenSourceCodes/ZLToolKit/linux_build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

-- 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
-- Performing Test HAVE_MMSG_HDR
-- Performing Test HAVE_MMSG_HDR - Success
-- Looking for sendmmsg
-- Looking for sendmmsg - found
-- Looking for recvmmsg
-- Looking for recvmmsg - found
CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:335 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:91 (find_package)

CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:336 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:91 (find_package)

CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:338 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:91 (find_package)

CMake Error at /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:340 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:91 (find_package)

-- 找到openssl库:"/usr/include",ENABLE_OPENSSL宏已打开
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION - Success
-- Found MySQL: /usr/include/mysql, /usr/lib/x86_64-linux-gnu/libmysqlclient.so
-- MySQL Embedded not found.
-- 找到mysqlclient库:"/usr/include/mysql",ENABLE_MYSQL宏已打开
-- 将链接依赖库:/usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so;/usr/lib/x86_64-linux-gnu/libmysqlclient.so
cp: cannot create regular file '/home/ubuntu/workspace/vsprj/OpenSourceCodes/ZLToolKit/linux_build/bin/': Not a directory
-- 添加测试程序:test_ssl
-- 添加测试程序:test_ringBuffer
-- 添加测试程序:test_shell
-- 添加测试程序:test_pingpong
-- 添加测试程序:test_tcpClient
-- 添加测试程序:test_semaphore
-- 添加测试程序:test_sql
-- 添加测试程序:test_eventPoller
-- 添加测试程序:test_logger
-- 添加测试程序:test_threadPoolBenchmark
-- 添加测试程序:test_noticeCenter
-- 添加测试程序:test_udpSock
-- 添加测试程序:test_resourcePool
-- 添加测试程序:test_ini
-- 添加测试程序:test_creator
-- 添加测试程序:test_threadPool
-- 添加测试程序:test_tcpEchoServer
-- 添加测试程序:test_delayTask
-- 添加测试程序:test_timer
-- 添加测试程序:test_pipe
-- 添加测试程序:test_variant
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/workspace/vsprj/OpenSourceCodes/ZLToolKit/linux_build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.


`TRANS_BY_GITHUB_AI_ASSISTANT`
@xia-chu
Copy link
Member

xia-chu commented Mar 21, 2024

apt-get install libssl-dev try it

apt-get install libssl-dev试试

TRANS_BY_GITHUB_AI_ASSISTANT

@alexliyu7352 alexliyu7352 changed the title 请问:ubuntu16.04编译不通过,什么原因? Question: Why does Ubuntu 16.04 compilation fail? Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants