-
Notifications
You must be signed in to change notification settings - Fork 14
Description
First of all I am not familiar with R so I apologize if my questions may sound basic. I looked for answers but I am quite stuck, any help would be really appreciated.
Which operating system are you running?
Ubuntu 18.04
gfortran 7.5.0
Which version of R are you using?
R 4.0 using conda
conda create -n microclima r=4.0.0
What is the problem?
I run into some errors at installation. I made a very basic R script for installation
> cat test_base.R`
install.packages("devtools")
devtools::install_github("ilyamaclean/microclima")
> sudo Rscript test_base.R |& tee install.log
my first concern was about library location which point to
- a) a R-3.4 folder
- b) somewhere out of my conda repository.
I tried to specify in the script the location to "/home/j/jcollin/.conda/envs/microclima/lib" using
install.packages("devtools", lib="/home/j/jcollin/.conda/envs/microclima/lib/") devtools::install_github("ilyamaclean/microclima", lib="/home/j/jcollin/.conda/envs/microclima/lib/")
but it does not help much.
One other obvious issue comes from the logs where it says
Configuration failed because libudunits2.so was not found. Try installing: * deb: libudunits2-dev (Debian, Ubuntu, ...) * rpm: udunits2-devel (Fedora, EPEL, ...) * brew: udunits (OSX) If udunits2 is already installed in a non-standard location, use: --configure-args='--with-udunits2-lib=/usr/local/lib' if the library was not found, and/or: --configure-args='--with-udunits2-include=/usr/include/udunits2' if the header was not found, replacing paths with appropriate values. You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
However I believe libudunits2.so is installed
> locate libudunits2.so /usr/lib/x86_64-linux-gnu/libudunits2.so.0 /usr/lib/x86_64-linux-gnu/libudunits2.so.0.1.0
how can I specify compiler to look in the appropriate folder ?
How can we reproduce this? Which functions have you used and with which datasets and parameters?
Well under ubuntu 18.04 I assume my first steps were described above. Thanks a lot for your help