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. MyBatis插入并返回id技巧

    1, 使用返回插入id的值,这个值即是当前插入的id

  2. Educational Codeforces Round 72 (Rated for Div. 2) Solution

    传送门 A. Creating a Character 设读入的数据分别为 $a,b,c$ 对于一种合法的分配,设分了 $x$ 给 $a$ 那么有 $a+x>b+(c-x)$,整理得到 $x&g ...

  3. 剑指offer-回溯法-机器人的运动范围-python

    题目描述 地上有一个m行和n列的方格.一个机器人从坐标0,0的格子开始移动,每一次只能向左,右,上,下四个方向移动一格,但是不能进入行坐标和列坐标的数位之和大于k的格子. 例如,当k为18时,机器人能 ...

  4. 分布式之redis(转发)

    为什么写这篇文章? 博主的<分布式之消息队列复习精讲>得到了大家的好评,内心诚惶诚恐,想着再出一篇关于复习精讲的文章.但是还是要说明一下,复习精讲的文章偏面试准备,真正在开发过程中,还是脚 ...

  5. C++实现简单的日志记录

    C++实现简单的日志记录 //dlogger.h #ifndef DLOGGER_H #define DLOGGER_H #include <iostream> #include < ...

  6. localStorage的使用和vuex的拆分

    问题1:在隐身模式.或者用户未启用的情况下,使用localStorage可能会导致浏览器直接报错,怎么办? 方法:使用try-catch包裹 代码示例: store.jsimport Vue from ...

  7. Centos安装 Apache2.4提示 APR not found的解决办法

    在安装apache2.2.22版本的时候没有任何问题,可直接使用命令编译安装. 但是,在apache 2.4.12版本,./configure 进行配置时, 提示 configure: error: ...

  8. python面向对象--类的装饰器

    # def deco(obj): # print("=====",obj) # obj.x=1 # return obj # @deco#===> test = deco(t ...

  9. update_all_fun(send recv)

    '''Send messages through all edges >>> update all nodes.DGLGraph.update_all(message_func='d ...

  10. 自定义指令 限制input 的输入位数

    <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8 ...