I fail to install later in termux . i took one night to view the exists issues relate the topic timespec, the way is write something in this file Makevars in the path ~/.R
i had tried one by one , not success. Could you hlep me and give some suggestions? Thanks.
termux version:0.117
android version :11
R version: R version 4.1.2 (2021-11-01) Platform: aarch64-unknown-linux-gnu (64-bit)
g++ version : clang version 13.0.0
> install.packages("later")
trying URL 'https://mirrors.ustc.edu.cn/CRAN/src/contrib/later_1.3.0.tar.gz'
Content type 'application/octet-stream' length 63785 bytes (62 KB)
==================================================
downloaded 62 KB
* installing *source* package ‘later’ ...
** package ‘later’ successfully unpacked and MD5 sums checked
** using staged installation
Running configure script
-latomic linker flag not needed.
** libs
g++ -std=gnu++11 -I"/data/data/com.termux/files/usr/local/R-4.1.2/lib/R/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I'/data/data/com.termux/files/usr/local/R-4.1.2/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/data/data/com.termux/files/usr/local/R-4.1.2/lib/R/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I'/data/data/com.termux/files/usr/local/R-4.1.2/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c callback_registry.cpp -o callback_registry.o
In file included from callback_registry.cpp:6:
In file included from ./callback_registry.h:10:
./threadutils.h:129:9: error: use of undeclared identifier 'timespec_get'; did you mean 'timespec'?
if (timespec_get(&ts, TIME_UTC) != TIME_UTC) {
^
/data/data/com.termux/files/usr/include/semaphore.h:37:8: note: 'timespec' declared here
struct timespec;
^
1 error generated.
make: *** [/data/data/com.termux/files/usr/local/R-4.1.2/lib/R/etc/Makeconf:175: callback_registry.o] Error 1
ERROR: compilation failed for package ‘later’
* removing ‘/data/data/com.termux/files/usr/local/R-4.1.2/lib/R/library/later’
The downloaded source packages are in
‘/data/data/com.termux/files/usr/tmp/RtmpZ2DGtQ/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("later") :
installation of package ‘later’ had non-zero exit status
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: aarch64-unknown-linux-gnu (64-bit)
Matrix products: default
BLAS: /data/data/com.termux/files/usr/local/R-4.1.2/lib/R/lib/libRblas.so
LAPACK: /data/data/com.termux/files/usr/local/R-4.1.2/lib/R/lib/libRlapack.so
locale:
[1] C.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.2 tools_4.1.2
>
I fail to install later in termux . i took one night to view the exists issues relate the topic timespec, the way is write something in this file Makevars in the path ~/.R
i had tried one by one , not success. Could you hlep me and give some suggestions? Thanks.
termux version:0.117 android version :11 R version: R version 4.1.2 (2021-11-01) Platform: aarch64-unknown-linux-gnu (64-bit) g++ version : clang version 13.0.0
g++ version
termux-info
the default Makeconf settings: