CRTMPServer 在CentOS 64-bit下的编译

http://blog.csdn.net/qiuchangyong/article/details/52848942

==========================================

一、Centos 用 wget 下载需要的软件

wget http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz

二、安装 cmake

tar zxvf cmake-2.8.4.tar.gz
cd cmake-2.8.6
./bootstrap
gmake
gmake install

这样cmake就安装好了

三、编译crtmpserver

Here are the steps necessary for getting the server up and running. For installing the dependencies please consultthis.

  1. check out the source code from svn repository:
$ svn co --username anonymous https://svn.rtmpd.com/crtmpserver/trunk crtmpserver

Hit Enter key when prompted for password (this parameter is empty)

我发现这个目前不能用了,所以通过之前下载好的源码压缩包来编译的。

  1. go to the builders directory
$ cd crtmpserver/builders/cmake
  1. make sure everything is clean by doing
$ sh cleanup.sh

Note: This is necessary when updating the sources or you run into troubles like missing libraries reported by cmake

  1. generate the makefile using cmake
$ cmake .

Notice the “space dot”

  1. start the actual building process
$ make

At this point, if no errors occurred, you should have a working binary.

实际在编译时,遇到的问题是:

这是依赖的lua库编译的问题,重新编译lua库,给src/Makefile的CFLAGS变量加上-fPIC再重新编译即可。

四、运行服务器

If you are here from previous steps (compiling), you should already be in the right directory which isbuilders/cmake relative to the directory where the sources are located. Enter the following command:

$ ./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua

五、发布
将cmake目录拷贝到发布的设备的/usr/local/bin/rtmpd下,同时将所有的*.so文件拷贝到cmake下,即可运行
 
六、后台运行
在后台运行:$ ./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua & 
 
查询后台运行所有进程:$ ps -al
查询后台运行进程: ps -ef | grep crtmpserver
用kill -9 (你的进程号)就可以关掉了

本文参考http://blog.sina.com.cn/s/blog_8337d0c50100v61j.html整理而得。
 
 

CRTMPServer 在CentOS 64-bit下的编译(转)的更多相关文章

  1. centos 64位 下hadoop-2.7.2 下编译

    centos 64位 下hadoop-2.7.2 下编译 由于机器安装的是centos 6.7 64位 系统  从hadoop中下载是32位  hadoop 依赖的的库是libhadoop.so 是3 ...

  2. win7 64位下自行编译OpenCV2.4.10+CUDA toolkit 5.5的整个过程以及需要注意的问题(opencv+cuda并行计算元素的使用)

           首先说明的是,这个帖子是成功的编译了dll,但是这个dll使用的时候还是很容易出现各种问题的. 发现错误可能是由于系统安装了太多版本的opencv,环境变量的设置混乱,造成dll版本加载 ...

  3. LAMP一键安装包-CentOS 5/6下自动编译安装Apache,MySQL,PHP

    http://www.centos.bz/lamp/ 此安装包已经不再维护,请使用新版http://www.centos.bz/ezhttp/. 适用环境: 系统支持:CentOS-5 (32bit/ ...

  4. LNMP一键安装包-CentOS 5/6下自动编译安装Nginx,MySQL,PHP

    适用环境: 系统支持:CentOS-5 (32bit/64bit).CentOS-6 (32bit/64bit) 内存要求:≥128M 安装了什么: 1.Nginx-1.2.0 2.MySQL 5.5 ...

  5. CentOS 64位下安装Postfix+Dovecot 配置邮件server笔记

    Postfix 和Dovecot功能确实非常强大,支持各种认证方式, 配置非常灵活, 就由于太过于灵活, 反而安装配置的过程中,easy有各种各样的陷阱,碰到问题了. 日志是最好的解决的方法了.    ...

  6. CentOS 6.4 下 Python 2.6 升级到 2.7

    一开始有这个需求,是因为用 YaH3C 替代 iNode 进行校园网认证时,CentOS 6.4下一直编译错误,提示找不到 Python 的某个模块,百度了一下,此模块是在 Python2.7 以上才 ...

  7. 不要着急改代码,先想想--centos 6.8下编译安装tmux

    诸位读者新年好,2017开年第一篇博客,请允许我先问候一下看到这篇博客的诸位.写博客是我2017年定下的目标之一,希望我会坚持下去. 最近打算尝试一下tmux这个神器,于是有了这一篇关于思维方式的Bl ...

  8. 几种常用库在CentOS下的编译

    1操作环境 通过命令查看操作系统版本信息: [root@localhost ~]# cat /proc/version Linux version 3.10.0-327.el7.x86_64 (bui ...

  9. CentOS 6.4下编译安装MySQL 5.6.14

    概述: CentOS 6.4下通过yum安装的MySQL是5.1版的,比较老,所以就想通过源代码安装高版本的5.6.14. 正文: 一:卸载旧版本 使用下面的命令检查是否安装有MySQL Server ...

随机推荐

  1. CSP-J&S 2019游记

    $Day -???$ 和爱国爱党的$LQX$书记打了个赌,谁$TG$分低请另一个京味斋. $Day 0$ 机房同学去聚餐,美其名曰"散伙饭",可能又有几个进队的... 我没有去,因 ...

  2. Scrapy 教程(九)-日志系统

    最新版本的 scrapy 已经废弃了 scrapy.log 的使用,赞成显示调用python标准日志记录. Python 内建日志系统 import logging ### python 内建 log ...

  3. liunx驱动----信号量的实现

    使用信号量必须包含  <asm/semaphore.h>  头文件.其中相关结构体  struct semaphore 可以通过以下几种方式来声明或者初始化. 1.void sema_in ...

  4. 如何查看Win10开机运行了多长时间 - Windows10.Pro

    原文:如何查看Win10开机运行了多长时间 - Windows10.Pro 方法一:使用Windows PowerShell命令查看 以管理员身份运行Windows PowerShell,在打开的“管 ...

  5. Cookie&Session笔记

    # 今日内容     1. 会话技术         1. Cookie         2. Session     2. JSP:入门学习 ## 会话技术     1. 会话:一次会话中包含多次请 ...

  6. Apache 配置外网站点

    基于域名,一般是对外网站 www.etiantian.org/var/www/html/www blog.etiantian.org /var/www/html/blog bbs.tiantian.o ...

  7. linux系统特殊权限位 suid、sgid、sticky

    linux系统特殊权限位 suid.sgid.stickysuid 使任意用户获得用文件属主相同的权限,sgid使用户获得与文件属组相同的权限(通过sgid获得的权限等同于同一用户组的权限) 表示方法 ...

  8. Linux之目录与路径

    特殊的目录: “.”,代表此层目录 “..”,代表上一层目录 “-”,代表前一个工作目录 “~”,代表“目前用户身份”所在的主文件夹 “~account”,代表account这个用户的主文件夹(acc ...

  9. u-boot-2016.09 make编译过程分析(二)

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明.本文链接:https://blog.csdn.net/guyongqiangx/article/ ...

  10. bzoj3754 Tree之最小方差树 最小生成树+推性质

    题目传送门 https://lydsy.com/JudgeOnline/problem.php?id=3754 题解 感觉这个思路挺神仙的. 后悔没有好好观察题目的数据范围,一直把 \(n\) 和 \ ...