Ubuntu下Crtmp服务器的搭建及过程中遇到的问题解决方法

来源:互联网 发布:纳网科技域名续缴费 编辑:程序博客网 时间:2024/04/30 09:16

1.工具准备

openssl包 以及crtmpserver包


2. sudo apt -get install  cmake


3.进入openssl解压的文件夹

sudo  make 

make install

4.进入crtmpserver解压的文件包

cd builder/cmake

cmake .

cmake失败 出现的问题

一.     looking for openssl headers - not found

解决方法:  sudo apt -get instll libssl-dev

二:-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND 
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. 
CMake Error: Internal CMake error, TryCompile configure of cmake failed 
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken 
CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a simple test program. 
It fails with the following output: 
CMake will not be able to correctly generate this project. 
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. 
-- Configuring done 

解决方法:  1. sudo apt-get install g++

2.cmake -D CMAKE_CXX_COMPILER="g++" cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX:PATH="/usr/local"         


mounted seceinfofs 


0 0
原创粉丝点击