OK.
Seems that the only way to get libwebsockets now is to compile your own version.
The only available RPMs I can see require a higher version of GLIBC so they won't install.
So, just cos I was bored...
You need a build server setup. See the wiki.
You need cmake v2.8x - I think I have compiled this previously.
You may need these libraries to help build:
yum install libuv-devel libev-devel
git clone https://github.com/warmcat/libwebsockets
mkdir build
cd build
cmake ..
make package
Voila !
make package
[ 48%] Built target websockets
[ 48%] Built target test-client
[ 49%] Built target test-lejp
[ 50%] Built target test-server
[ 51%] Built target test-server-extpoll
[100%] Built target websockets_shared
Run CPack packaging tool...
CPack: Create package using RPM
CPack: Install projects
CPack: - Run preinstall target for: libwebsockets
CPack: - Install project: libwebsockets
CPack: Create package
CPackRPM: Will use GENERATED spec file: /home/john/git/libwebsockets/build/_CPack_Packages/Linux/RPM/SPECS/libwebsockets.spec
CPack: - package: /home/john/git/libwebsockets/build/libwebsockets-3.1.99-Linux.rpm generated.
I have absolutely NO idea if this will work.
The libev detection seems a bit wobbly so you can't use OS autodetect. The default config sets LIBEV to OFF. I tried setting it ON but the build failed so set it OFF again. You can test.
I tried various libev options to no effect. I know the files are on the server but I can't get them recognised:
cmake -DLWS_WITH_LIBEV=ON -DLWS_WITH_HTTP2=ON -DLWS_LIBEV_LIBRARIES:PATH=/usr/lib64 -DLIBEV_INCLUDE_DIRS:PATH=/usr/lib ..
But I get this error:
In file included from /home/john/git/libwebsockets/lib/core/private.h:135,
from /home/john/git/libwebsockets/lib/core/alloc.c:1:
/home/john/git/libwebsockets/include/libwebsockets.h:155:16: error: ev.h: No such file or directory
The files are there:
repoquery --list libev-devel
/usr/include/libev
/usr/include/libev/ev++.h
/usr/include/libev/ev.h/usr/include/libev/event.h
/usr/lib/libev.so
/usr/lib/pkgconfig/libev.pc
/usr/include/ev++.h
/usr/include/ev.h/usr/include/event.h
/usr/lib64/libev.so
/usr/share/man/man3/ev.3.gz
So no idea on that.
Test RPM can be downloaded from here.
Please DO NOT test on ANYTHING apart from a test machine. It may break or introduce security issues into your server. Use at your own risk. You have been
warned.
https://www.reetspetit.com/smetest/6/repoview/index.htmlhttps://www.reetspetit.com/smetest/6/repoview/libwebsockets.htmlLet us know how you get along.