crtmpserver主线版本在Redhat AS 5上面编译不通过,参考攻略

21 篇文章 0 订阅

Introduction

The following instructions are extremely simple and incomplete! This are ONLY receipts to follow for getting started with the server very fast. At this present time (the time you are reading this), this instructions may not work because something could be already different. This page is usually maintained, but don't despair if it doesn't work. The mailing list is always there to save the day.

Operating systems

The following list of operating system is in an arbitrary order (except FreeBSD, which is the best :) ).

FreeBSD

9.0 amd64/i386

#install needed stuff
sudo pkg_add -r subversion cmake libexecinfo
 
#fetch the latest repo version
cd /tmp
svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
cd crtmpserver/builders/cmake/
 
#build it
./run

8.3 amd64/i386

#install needed stuff
sudo pkg_add -r subversion cmake libexecinfo
 
#fetch the latest repo version
cd /tmp
svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
cd crtmpserver/builders/cmake/
 
#build it
./run

Ubuntu

12.04 amd64/i386

#install needed stuff
sudo apt-get install g++ subversion cmake make libssl-dev
 
#fetch the latest repo version
cd /tmp
svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
cd crtmpserver/builders/cmake/
 
#build it
./run

Debian

6.0.4 amd64/i386

#install needed stuff
sudo apt-get install g++ subversion cmake make libssl-dev
 
#fetch the latest repo version
cd /tmp
svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
cd crtmpserver/builders/cmake/
 
#build it
./run

CentOS

6.2 amd64/i386

#install needed stuff
sudo yum install perl vim subversion cmake make gcc gcc-c++ openssl-devel
 
#fetch the latest repo version
cd /tmp
svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
cd crtmpserver/builders/cmake/
 
#build it
./run

5.8 amd64/i386

#install needed stuff
sudo yum install vim-enhanced subversion cmake make gcc gcc-c++ openssl-devel
 
#fetch the latest repo version
cd /tmp
svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
cd crtmpserver/builders/cmake/
 
#fix/force the builder to link with the dynamic version of openssl.
#Looks like on cents 5.8 the static version of openssl is built with almost
#any conceivable feature activated, forcing us to link with another 10001 libs
#So, we are going to link with the dynamic version of the openssl
sed "s/COMPILE_STATIC/__COMPILE_STATIC/g" cmake_find_modules/Find_openssl.cmake >/tmp/Find_openssl.cmake.new
mv /tmp/Find_openssl.cmake.new cmake_find_modules/Find_openssl.cmake
 
#this versions of CentOS are having a too old kernel which doesn't support timerfd_xxxx apis
#deactivate the epoll timers support
cat ../../sources/common/include/platform/linux/linuxplatform.h |grep -v "HAS_EPOLL_TIMERS" >/tmp/linuxplatform.h.new
mv /tmp/linuxplatform.h.new ../../sources/common/include/platform/linux/linuxplatform.h
 
#build it
./run
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值