beauchamplab / rave

For all RAVE info, including installation instructions, visit
https://beauchamplab.github.io/rave
23 stars 5 forks source link

Installation failed on Linux #41

Closed dipterix closed 2 years ago

dipterix commented 4 years ago

When I was installing rave, at the part that we use _rave::checkdependencies(), an error occurred to me. It showed that npoltr has non-exit exit. I'm new in R, and I searched for this kind of problem online, getting no good answers. My operation system is ubuntu16.04.

Originally posted by @BarryLiu-97 in https://github.com/beauchamplab/rave/issues/28#issuecomment-671895897

dipterix commented 4 years ago

To read official installation guide, please refer to https://openwetware.org/wiki/RAVE:Install

For linux (Ubuntu) users, the official documentation might not be enough because there might be some missing dependencies. RAVE is not tested on all of the platforms, we only tested on Ubuntu 18.04, Amazon AMI, and Docker. Please let me know if the following configuration fails on your system.

Here is the configuration for Docker container (Linux Ubuntu based, there will be some adjustment for other systems like Redhat):

Step 1 - always build essentials

Open your terminal, build essential packages, which are used quite often to compile many other libraries.

sudo apt-get update && sudo apt-get install build-essential

Step 2 - check system packages

The following packages are needed, many of them come with the system, but you might still want to make sure all of them are installed before launching R

ca-certificates ed fonts-texgyre less locales vim-tiny wget gcc-9-base libopenblas0-pthread file
git libcairo2-dev libcurl4-openssl-dev libfftw3-dev libgit2-dev libhdf5-dev libssl-dev libssh2-1-dev 
libv8-dev libxml2-dev psmisc procps zlib1g-dev libnlopt-dev 

The easiest way is to sudo apt-get install xxx all these packages.

Step 3 - install R and RStudio

Step 4 - install RAVE

To install RAVE on linux, first, you need to launch R or RStudio

Go to R console, type:

# Currently ravebuiltins modules are stored in dev branch
devtools::install_github("beauchamplab/ravebuiltins@migrate2")
devtools::install_github("beauchamplab/rave")

Step 5 - finalize installation (Optional)

This step installs template brain (N27) and a demo subject

Type in R console:

rave::finalize_installation()

Alternatively, you can only download template brain by entering

threeBrain::download_N27(make_default = TRUE)
dipterix commented 2 years ago

Closing this issue as it's outdated