在linux机器上安装curl-loader

时间:2015-03-11 00:09:20

标签: linux curl

我在linux机器上下载了curl-loader版本0.56。当我执行make命令时,我得到了下面提到的错误。有谁能告诉我如何解决它?

我也安装了rtmpdump并收到以下错误:

./lib/libcurl.a(curl_rtmp.o): In function `rtmp_disconnect':
curl_rtmp.c:(.text+0x2c): undefined reference to `RTMP_Close'
curl_rtmp.c:(.text+0x34): undefined reference to `RTMP_Free'
./lib/libcurl.a(curl_rtmp.o): In function `rtmp_connect':
curl_rtmp.c:(.text+0xc4): undefined reference to `RTMP_Connect1'
./lib/libcurl.a(curl_rtmp.o): In function `rtmp_send':
curl_rtmp.c:(.text+0x141): undefined reference to `RTMP_Write'
./lib/libcurl.a(curl_rtmp.o): In function `rtmp_recv':
curl_rtmp.c:(.text+0x17a): undefined reference to `RTMP_Read'
./lib/libcurl.a(curl_rtmp.o): In function `rtmp_setup':
curl_rtmp.c:(.text+0x1da): undefined reference to `RTMP_Alloc'
curl_rtmp.c:(.text+0x1ef): undefined reference to `RTMP_Init'
curl_rtmp.c:(.text+0x1fc): undefined reference to `RTMP_SetBufferMS'
curl_rtmp.c:(.text+0x20f): undefined reference to `RTMP_SetupURL'
curl_rtmp.c:(.text+0x234): undefined reference to `RTMP_Free'
./lib/libcurl.a(curl_rtmp.o): In function `rtmp_do':
curl_rtmp.c:(.text+0x266): undefined reference to `RTMP_ConnectStream'
collect2: error: ld returned 1 exit status
make: *** [curl-loader] Error 1
admin123@ubuntu-server:~/curl-loader-0.56$

按照提及的步骤here

1 个答案:

答案 0 :(得分:1)

在Makefile中添加选项--without-librtmp后,我能够成功编译。

我得到的错误与rtmp库有关。我已经通过执行命令sudo apt-get install rtmpdump在我的机器上安装了rtmpdump,但在编译期间我仍然遇到了同样的错误。

我已按照链接sourceforge.net/p/curl-loader/mailman/curl-loader-devel/thread/…中的解决方案来修复make问题。当我尝试编译没有rtmp库的curl加载器时,它已成功完成。