-
Notifications
You must be signed in to change notification settings - Fork 42
Configuring an Ubuntu 22.04 LTS (WSL) system to be able to build oce from source
Clark Richards edited this page Nov 24, 2022
·
3 revisions
Clark Richards 2022-11-07
The purpose of this document is to outline the steps required to configure a "clean" Ubuntu 22.04 LTS system to be able to build and use the R oce
package. These instructions have been tested on a Windows 10 WSL (windows subsystem for linux) installation (2022-11-07).
From here:
- Configure the R debian repository to install from:
sudo apt install -y --no-install-recommends software-properties-common dirmngr
# Add the keys
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
- Install R 4.2
sudo apt install -y r-base r-base-core r-recommended r-base-dev
- Install required system libraries:
sudo apt install libnetcdf-dev libgeos-dev libgdal-dev libudunits2-dev libxml2-dev
- Open R (by running
R
at a system prompt), and run:
install.packages("oce", dependencies=TRUE)