(Work) daniil@daniil-D3402-A1:~$ R
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-conda_cos6-linux-gnu (64-bit)
...
library(devtools)
Loading required package: usethis
install_github("cran/sbrl")
Downloading GitHub repo cran/sbrl@master
✔ checking for file ‘/tmp/RtmpES4ZyD/remotes7d6d68883984/cran-sbrl-88b64e6/DESCRIPTION’ ...
─ preparing ‘sbrl’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘sbrl_1.2.tar.gz’
installing source package ‘sbrl’ ...
** using staged installation
checking for gsl-config... /opt/anaconda3/envs/Work/bin/gsl-config
checking for gcc... /opt/anaconda3/envs/Work/bin/x86_64-conda_cos6-linux-gnu-cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/anaconda3/envs/Work/bin/x86_64-conda_cos6-linux-gnu-cc accepts -g... yes
checking for /opt/anaconda3/envs/Work/bin/x86_64-conda_cos6-linux-gnu-cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /opt/anaconda3/envs/Work/bin/x86_64-conda_cos6-linux-gnu-cpp
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gmp.h usability... no
checking gmp.h presence... no
checking for gmp.h... no
configure: error: gmp.h not found, is GMP installed?
ERROR: configuration failed for package ‘sbrl’
removing ‘/opt/anaconda3/envs/Work/lib/R/library/sbrl’
Error: Failed to install 'sbrl' from GitHub:
(converted from warning) installation of package ‘/tmp/RtmpES4ZyD/file7d6d6c49a97f/sbrl_1.2.tar.gz’ had non-zero exit status
Installing sblr from source fails on Linux Ming 19.2 Cinnamon / conda 4.8.0 / R 3.6.1 due to gmp.h issues. As you see gmp.h is definitely present
(Work) daniil@daniil-D3402-A1:~$ sudo find / -name "gmp.h" -print /opt/anaconda3/pkgs/gmp-6.1.2-h6c8ec71_1/include/gmp.h /opt/anaconda3/envs/tf2/include/gmp.h /opt/anaconda3/envs/Work/include/gmp.h /opt/anaconda3/include/gmp.h
(Work) daniil@daniil-D3402-A1:~$ R R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-conda_cos6-linux-gnu (64-bit) ...