我正在安装雅努斯门户在 Ubuntu 14.04 中实现 WebRTC。
我已经按照文档,当我使用运行脚本时sh install.sh
出现以下错误:
gcc -fstack-protector-all -g -ggdb -rdynamic -o test test.o -lwebsock
/usr/bin/ld: cannot find -lwebsock
collect2: error: ld returned 1 exit status
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/gayan/MyDetails/MyApplications/virtualClassRoomTest/janus-gateway/wstest'
make: *** [wstest] Error 2
The installer couldn't find the libwebsock lib, which is needed for WebSockets
You can install version 1.0.4 (required!) with the following steps:
wget http://paydensutherland.com/libwebsock-1.0.4.tar.gz
tar xfv libwebsock-1.0.4.tar.gz
cd libwebsock-1.0.4
./configure --prefix=/usr && make && sudo make install
[Note: you may need to pass --libdir=/usr/lib64 to the configure script if you're installing on a x86_64 distribution]
我也使用上述步骤安装了 libwebsock。任何帮助我都感激不尽。
答案1
似乎您尚未正确安装 libwebsock 库。请尝试以下链接安装 libwebsock 库。https://github.com/payden/libwebsock/wiki/Installation
安装后检查共享库 libwebsock.so 是否可用。如果可用,则表示您已成功安装 libwebsock 库。