author | ms.author | ms.date | ms.service | ms.subservice | ms.custom | ms.topic |
---|---|---|---|---|---|---|
VanMSFT |
vanto |
02/08/2021 |
sql |
machine-learning-services |
linux-related-content |
include |
Note
If you have Machine Learning Services installed on SQL Server 2019, the mssql-server-extensibility package for Language Extensions is already installed and you can skip this step.
Run the commands below to install SQL Server Language Extensions on Ubuntu Linux, which is used for the R custom runtime.
-
If possible, run this command to refresh the packages on the system prior to the installation.
# Install as root or sudo sudo apt-get update
-
Install mssql-server-extensibility with this command.
# Install as root or sudo sudo apt-get install mssql-server-extensibility
-
If you have Machine Learning Services installed, R is already installed in
/opt/microsoft/ropen/3.5.2/lib64/R
. If you want to keep using this path as your R_HOME, you can skip this step.If you want to use a different runtime of R, you first need to remove
microsoft-r-open-mro
before continuing to install a new version.sudo apt remove microsoft-r-open-mro-3.5.2
-
Install R (3.3 or later) for Ubuntu. By default, R is installed in /usr/lib/R. This path is your R_HOME. If you install R in a different location, take note of that path as your R_HOME.
Below are example instructions for Ubuntu. Change the repository URL below for your version of R.
export DEBIAN_FRONTEND=noninteractive sudo apt-get update sudo apt-get --no-install-recommends -y install curl zip unzip apt-transport-https libstdc++6 # Add R CRAN repository. This repository works for R 4.0.x. # sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran40/' sudo apt-get update # Install R runtime. # sudo apt-get -y install r-base-core