Open rosaliepl opened 2 years ago
Hi!
I tried installing the websocket package from source, but I got an error as the file websocket.dll is identified as a virus by my computer.
Here is the console log
> install.packages("websocket") There is a binary version available but the source version is later: binary source needs_compilation websocket 1.4.0 1.4.1 TRUE installing the source package ‘websocket’ trying URL 'https://cran.rstudio.com/src/contrib/websocket_1.4.1.tar.gz' Content type 'application/x-gzip' length 201281 bytes (196 KB) downloaded 196 KB * installing *source* package 'websocket' ... ** package 'websocket' successfully unpacked and MD5 sums checked ** using staged installation ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** ** libs *** arch - i386 "C:/PROGRA~1/R/R-36~1.3/bin/i386/Rscript.exe" "../tools/winlibs.R" 1.1.1g C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c cpp11.cpp -o cpp11.o C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c debug.cpp -o debug.o C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c websocket.cpp -o websocket.o C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c websocket_connection.cpp -o websocket_connection.o websocket_connection.cpp: In function 'cpp11::raws to_raw(std::string)': websocket_connection.cpp:37:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<input.size(); i++) { ^ C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c websocket_task.cpp -o websocket_task.o C:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o websocket.dll tmp.def cpp11.o debug.o websocket.o websocket_connection.o websocket_task.o -L../windows/openssl-1.1.1g/lib/i386 -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -LC:/PROGRA~1/R/R-36~1.3/bin/i386 -lR installing to C:/Users/xxx/Documents/R/win-library/3.6/00LOCK-websocket/00new/websocket/libs/i386 *** arch - x64 "C:/PROGRA~1/R/R-36~1.3/bin/x64/Rscript.exe" "../tools/winlibs.R" 1.1.1g C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c cpp11.cpp -o cpp11.o C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c debug.cpp -o debug.o C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c websocket.cpp -o websocket.o C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c websocket_connection.cpp -o websocket_connection.o websocket_connection.cpp: In function 'cpp11::raws to_raw(std::string)': websocket_connection.cpp:37:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<input.size(); i++) { ^ C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I./lib -I../windows/openssl-1.1.1g/include -D_WEBSOCKETPP_CPP11_THREAD_ -I"C:/Users/xxx/Documents/R/win-library/3.6/cpp11/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/AsioHeaders/include" -I"C:/Users/xxx/Documents/R/win-library/3.6/later/include" -O2 -Wall -mtune=core2 -c websocket_task.cpp -o websocket_task.o C:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o websocket.dll tmp.def cpp11.o debug.o websocket.o websocket_connection.o websocket_task.o -L../windows/openssl-1.1.1g/lib/x64 -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -LC:/PROGRA~1/R/R-36~1.3/bin/x64 -lR installing to C:/Users/xxx/Documents/R/win-library/3.6/00LOCK-websocket/00new/websocket/libs/x64 ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices converting help for package 'websocket' finding HTML links ... done WebSocket html *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location *** arch - i386 *** arch - x64 Error: package or namespace load failed for 'websocket' in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Users/xxx/Documents/R/win-library/3.6/00LOCK-websocket/00new/websocket/libs/x64/websocket.dll': LoadLibrary failure: Operation did not complete successfully because the file contains a virus or potentially unwanted software. Error: loading failed Execution halted ERROR: loading failed for 'x64' * removing 'C:/Users/xxx/Documents/R/win-library/3.6/websocket' Warning in install.packages : installation of package ‘websocket’ had non-zero exit status
It seems to be detected as a cryptocurrency miner : win32:miner-hc Could you help ?
Hi, I had the same issue and apparently this is not fixed yet =/
Hi!
I tried installing the websocket package from source, but I got an error as the file websocket.dll is identified as a virus by my computer.
Here is the console log
It seems to be detected as a cryptocurrency miner : win32:miner-hc Could you help ?