CRTMPServer 在CentOS 64-bit下的编译(转)
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.
Hit Enter key when prompted for password (this parameter is empty)
我發(fā)現(xiàn)這個目前不能用了,所以通過之前下載好的源碼壓縮包來編譯的。
Note: This is necessary when updating the sources or you run into troubles like missing libraries reported by cmake
Notice the “space dot”
At this point, if no errors occurred, you should have a working binary.
實際在編譯時,遇到的問題是:
?
這是依賴的lua庫編譯的問題,重新編譯lua庫,給src/Makefile的CFLAGS變量加上-fPIC再重新編譯即可。
四、運行服務(wù)器
?
?
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 五、發(fā)布 將cmake目錄拷貝到發(fā)布的設(shè)備的/usr/local/bin/rtmpd下,同時將所有的*.so文件拷貝到cmake下,即可運行 ? 六、后臺運行 在后臺運行:$ ./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua & ? 查詢后臺運行所有進程:$ ps -al 查詢后臺運行進程: ps -ef | grep crtmpserver 用kill -9 (你的進程號)就可以關(guān)掉了 本文參考http://blog.sina.com.cn/s/blog_8337d0c50100v61j.html整理而得。總結(jié)
以上是生活随笔為你收集整理的CRTMPServer 在CentOS 64-bit下的编译(转)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 梦到人怀孕是什么预兆
- 下一篇: 做梦梦到坟墓里的人出来了是什么征兆