installation error on ubuntu
tjdoc opened this issue · 1 comments
Compilation fails with install.packages('websocket') in rstudio server.
> sessionInfo()
R version 4.0.5 (2021-03-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_2.4.0 usethis_2.0.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.6 compiler_4.0.5 pillar_1.6.0 RColorBrewer_1.1-2 highr_0.9
[6] prettyunits_1.1.1 remotes_2.3.0 tools_4.0.5 testthat_3.0.2 pkgload_1.2.1
[11] pkgbuild_1.2.0 digest_0.6.27 memoise_2.0.0 jsonlite_1.7.2 evaluate_0.14
[16] lifecycle_1.0.0 tibble_3.1.1 pkgconfig_2.0.3 rlang_0.4.11 cli_2.5.0
[21] magick_2.7.1 curl_4.3.1 yaml_2.2.1 nomnoml_0.2.3 blogdown_1.3
[26] xfun_0.22 fastmap_1.1.0 withr_2.4.2 DiagrammeR_1.0.6.1 knitr_1.33
[31] desc_1.3.0 htmlwidgets_1.5.3 vctrs_0.3.8 fs_1.5.0 rprojroot_2.0.2
[36] webshot_0.5.2 glue_1.4.2 R6_2.5.0 processx_3.5.2 fansi_0.4.2
[41] rmarkdown_2.7 bookdown_0.22 sessioninfo_1.1.1 callr_3.7.0 purrr_0.3.4
[46] magrittr_2.0.1 ps_1.6.0 equatiomatic_0.2.0 htmltools_0.5.1.1 ellipsis_0.3.2
[51] tinytex_0.31 utf8_1.2.1 visNetwork_2.0.9 cachem_1.0.4 crayon_1.4.1
> install.packages('websocket')
Installing package into ‘/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/websocket_1.4.0.tar.gz'
Content type 'application/x-gzip' length 201325 bytes (196 KB)
==================================================
downloaded 196 KB
* installing *source* package ‘websocket’ ...
** package ‘websocket’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/local/include
Using PKG_LIBS=-L/usr/local/lib -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I/usr/local/include -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/cpp11/include' -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include' -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-wP4Uzq/r-base-4.0.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c cpp11.cpp -o cpp11.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I/usr/local/include -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/cpp11/include' -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include' -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-wP4Uzq/r-base-4.0.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c debug.cpp -o debug.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I/usr/local/include -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/cpp11/include' -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include' -I'/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-wP4Uzq/r-base-4.0.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c websocket.cpp -o websocket.o
In file included from /home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl/host_name_verification.hpp:87:0,
from /home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl.hpp:22,
from ./lib/websocketpp/common/asio_ssl.hpp:34,
from ./lib/websocketpp/transport/asio/security/tls.hpp:35,
from ./lib/websocketpp/config/asio_client.hpp:33,
from client.hpp:8,
from websocket.cpp:17:
/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl/impl/host_name_verification.ipp: In member function ‘bool asio::ssl::host_name_verification::operator()(bool, asio::ssl::verify_context&) const’:
/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl/impl/host_name_verification.ipp:56:12: error: ‘X509_check_ip_asc’ was not declared in this scope
return X509_check_ip_asc(cert, host_.c_str(), 0) == 1;
^~~~~~~~~~~~~~~~~
/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl/impl/host_name_verification.ipp:56:12: note: suggested alternative: ‘X509_check_issued’
return X509_check_ip_asc(cert, host_.c_str(), 0) == 1;
^~~~~~~~~~~~~~~~~
X509_check_issued
/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl/impl/host_name_verification.ipp:61:24: error: ‘X509_check_host’ was not declared in this scope
const int result = X509_check_host(cert,
^~~~~~~~~~~~~~~
/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/AsioHeaders/include/asio/ssl/impl/host_name_verification.ipp:61:24: note: suggested alternative: ‘X509_check_trust’
const int result = X509_check_host(cert,
^~~~~~~~~~~~~~~
X509_check_trust
/usr/lib/R/etc/Makeconf:181: recipe for target 'websocket.o' failed
make: *** [websocket.o] Error 1
ERROR: compilation failed for package ‘websocket’
* removing ‘/home/taejinoh/R/x86_64-pc-linux-gnu-library/4.0/websocket’
Warning in install.packages :
installation of package ‘websocket’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpAzPfJk/downloaded_packages’
I'm also getting an error installing on Ubuntu. Any solution for this? I'm trying to install pagedown but this is preventing it.
`* installing source package ‘websocket’ ...
** package ‘websocket’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-l:libssl.so.1.1 -l:libcrypto.so.1.1
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I'/usr/local/lib/R/site-library/cpp11/include' -I'/home/skryptx/R/x86_64-pc-linux-gnu-library/4.1/AsioHeaders/include' -I'/usr/local/lib/R/site-library/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-QwogzP/r-base-4.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c cpp11.cpp -o cpp11.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I'/usr/local/lib/R/site-library/cpp11/include' -I'/home/skryptx/R/x86_64-pc-linux-gnu-library/4.1/AsioHeaders/include' -I'/usr/local/lib/R/site-library/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-QwogzP/r-base-4.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c debug.cpp -o debug.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I'/usr/local/lib/R/site-library/cpp11/include' -I'/home/skryptx/R/x86_64-pc-linux-gnu-library/4.1/AsioHeaders/include' -I'/usr/local/lib/R/site-library/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-QwogzP/r-base-4.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c websocket.cpp -o websocket.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./lib -I'/usr/local/lib/R/site-library/cpp11/include' -I'/home/skryptx/R/x86_64-pc-linux-gnu-library/4.1/AsioHeaders/include' -I'/usr/local/lib/R/site-library/later/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-QwogzP/r-base-4.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c websocket_connection.cpp -o websocket_connection.o
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:177: websocket_connection.o] Error 1
ERROR: compilation failed for package ‘websocket’
- removing ‘/home/skryptx/R/x86_64-pc-linux-gnu-library/4.1/websocket’
Warning in install.packages :
installation of package ‘websocket’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpSY6zJ9/downloaded_packages’`