OgarII icon indicating copy to clipboard operation
OgarII copied to clipboard

ArchLinux build issue

Open RomainL972 opened this issue 5 years ago • 5 comments

Hi, I am trying to build this project an ArchLinux. First when I follow the instructions I get the message "Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'" It seems to be because uWebSockets tries to use a file named ./uws_linux_79.node which doesn't exist. I've tried compiling uWebSockets from https://github.com/uNetworking/uWebSockets.js but the uws.js file isn't compatible. I might have a nodejs version that is too recent (13.2.0). Do you have any advice?

RomainL972 avatar Nov 25 '19 23:11 RomainL972

Bump -- I have the exact same issue as above, except I am running a Windows 10 x64 system.

arcini avatar Nov 28 '19 02:11 arcini

This should work, cWS is much more stable than uWS as a drop-in replacement. I use it in production.

retroscepter avatar Dec 16 '19 17:12 retroscepter

I've tried your fork @chewyiscrunchy but the compiling fails. Here is the error log: https://pastebin.com/pyfsKea6

RomainL972 avatar Dec 16 '19 23:12 RomainL972

@RomainL972 Alright, this is a very uWS specific issue, I may try to port OgarII for the new uWebSockets.js library, but it probably wont fix the problem.

Both libraries detect the operation system in the same manner to figure out what binaries to build, I'm positive this is the point-of-failure as the same problem occurs on other non-conventional operating systems like Alpine Linux.

You could also try to reinstall the requirements for node-gyp: https://github.com/nodejs/node-gyp

retroscepter avatar Dec 18 '19 18:12 retroscepter

I managed to get it working using an older node version. I saw there was ./uws_linux_64.node so I used node version 10.20.1 (last with version 64 ABI) - you can check here https://nodejs.org/en/download/releases/#ref-1

mdatsev avatar Apr 28 '20 14:04 mdatsev