编译配置如下
./configure --disable-all --with-ssl --with-http-api --with-http-callback --with-ffmpeg --with-transcode
提示安装cherrypy需要管理员权限。提示为
"install CherryPy-3.2.4" require sudoer failed. ret=1
已经到3thirdpart里安装好了cherrypy,仍然提示这个错误。
打开配置脚本看看
if [ $SRS_HTTP_CALLBACK = YES ]; then
if [[ -f ${SRS_OBJS}/CherryPy-3.2.4/setup.py ]]; then
echo "CherryPy-3.2.4 is ok.";
else
require_sudoer "install CherryPy-3.2.4"
echo "install CherryPy-3.2.4";
(
sudo rm -rf ${SRS_OBJS}/CherryPy-3.2.4 && cd ${SRS_OBJS} &&
unzip -q ../3rdparty/CherryPy-3.2.4.zip && cd CherryPy-3.2.4 &&
sudo python

在编译SRS时遇到了需要管理员权限安装CherryPy的错误,即使在3thirdpart目录下安装了CherryPy仍提示失败。通过查看配置脚本,发现需要在objs目录下手动解压并安装CherryPy才能解决。另外,编译过程中`srs_app_http_stream.cpp`和`srs_app_http_static.cpp`两个文件因缺少宏`SRS_AUTO_HTTP_SERVER`和`SRS_AUTO_HTTP_CORE`导致编译失败,需要手动添加这两个宏定义。解决上述问题后,SRS的编译和http功能、实时转码功能的测试得以进行。
最低0.47元/天 解锁文章
401

被折叠的 条评论
为什么被折叠?



