I am trying to install Blastula on my Linux machine [Ubunu 20] with R 4.2.2 using the pre compiled binary
sudo Rscript -e 'install.packages("https://packagemanager.rstudio.com/cran/__linux__/focal/latest/src/contrib/blastula_0.3.2.tar.gz?r_version=4.2")'
The message I get is the following
package ‘https://packagemanager.rstudio.com/cran/__linux__/focal/latest/src/contrib/blastula_0.3.2.tar.gz?r_version=4.2’ is not available for this version of R A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
When I try to install from source
sudo Rscript -e 'install.packages("blastula")'
I get the following error
* installing *source* package ‘getPass’ ... ** package ‘getPass’ successfully unpacked and MD5 sums checked ** using staged installation ** libs gcc -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-a3XuZ5/r-base-184.108.40.20621110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c getPass_native.c -o getPass_native.o /bin/bash: gcc: command not found make: *** [/usr/lib/R/etc/Makeconf:169: getPass_native.o] Error 127 ERROR: compilation failed for package ‘getPass’ * removing ‘/usr/local/lib/R/site-library/getPass’ ERROR: dependency ‘getPass’ is not available for package ‘blastula’
I also made sure I installed the system requirements for Ubuntu focal as stated in the RSPM
apt-get install -y libcurl4-openssl-dev apt-get install -y libssl-dev apt-get install -y make apt-get install -y libicu-dev apt-get install -y pandoc
It seems that the dependency
getPass package cannot be compiled. I tried to download the getPass binary build from RSPM, but i get the same error
package ....getPass is not available for this version of R
- Any ideas how to solve this?
- Is it my version of R that is 4.2.2 instead of 4.2.1 ?
Many thanks in advance