CRTMPServer 在CentOS 64-bit下的编译
来源:互联网 发布:昆明行知中学校花 编辑:程序博客网 时间:2024/05/20 18:20
一、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.
- 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)
我发现这个目前不能用了,所以通过之前下载好的源码压缩包来编译的。
- go to the builders directory
$ cd crtmpserver/builders/cmake
- 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
- generate the makefile using cmake
$ cmake .
Notice the “space dot”
- 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下的编译
- 在Ubuntu 14.04 64bit上编译安装Crtmpserver trunk svn 811版本!
- aapt在linux(centos)下32bit和64bit下的配置
- 在Ubuntu 12.04 64bit上搭建Crtmpserver视频点播服务
- 在Ubuntu 12.04 64bit上搭建Crtmpserver视频点播服务
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- crtmpserver 在VS2010下的build
- 在 centos 64bit 下编译内核提示uudecode:command not found 解决
- 64bit centos如何编译 32bit的程序
- 在CentOS 6.3 64bit下yum安装MySQL后重置root密码的方法
- ZMap在Ubuntu 32bit下的编译
- 在Ubuntu 12.04 64bit上搭建Crtmpserver视频直播服务
- ACE在CentOS下的编译
- codeblocks在CENTOS下的编译安装
- 部分三方库在64bit下无法编译问题解决办法
- 【java】多线程控制(一)---Semaphore、Exchanger、CyclicBarrier、CountDownLatch
- 浅谈Java中的hashcode方法
- [51单片机] 一个故事看懂单片机中的堆栈
- GObject 学习笔记汇总---1
- network in network
- CRTMPServer 在CentOS 64-bit下的编译
- 常用正则表达式(二)
- javascript关键字和保留字
- js实现页面跳转重定向的几种方式
- Javascript鼠标拖动面板的制作【思路及注意点】
- Spark doBulkLoad数据进入hbase
- Android 浅尝Tinker微信热修复
- centos7 为服务器设置静态内网IP
- Dapper 基本使用