When I tried to run Seurat on Linux, I had a hard time installing it, so make a note OS : Linux mint 19.3 Tricia
As per the tutorial, I try ```install.packages (" Seurat ")``, but I can't install the dependency packages. After a little research, it seems that the version of R that can be installed with ``
sudo apt install r-base` `` is as old as 3.4, and some packages are not supported. You need to add the repository and public key to get the new version.
#Uninstall R once
$ sudo apt purge r-base* r-recommended r-cran-*
$ sudo apt autoremove
$ sudo apt update
#Add public key and repository
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
And install R again
$ sudo apt update
$ sudo apt install r-base
You have now installed R 3.6.
Now when I try install.packages (" Seurat ")` `` again, it gets stuck again. There seems to be no option for the `` `ld
command.
Insert this from the terminal. Openssl
wasn't included either, so put it together.
$ sudo apt install liblapack-dev liblapack3 libopenblas-base libopenblas-dev gfortran libssl-dev
Even this gets stuck. Enter `` `multtest``` from BioManager.
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("multtest")
Now you can install Seurat by ```install.packages (" Seurat ")` ``.
Recommended Posts