Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update offer to installation instructions for ubuntu #34

Open
GalAvineri opened this issue Aug 19, 2020 · 6 comments
Open

update offer to installation instructions for ubuntu #34

GalAvineri opened this issue Aug 19, 2020 · 6 comments

Comments

@GalAvineri
Copy link

Hello :)
I've been working on installing wholebrain on freshly installed ubuntu 18.04 and I wanted to offer an improvement to the instructions on your website.

  1. installing opencv could be done more easily by using ROpenCVLite (as has been mentioned already in the gitter)
  2. There are some additional libraries I found required for the installation process.
    They could be installed as follows:
    sudo apt-get install ibv8-dev libxml2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
    install.packages("XML", repos = "http://www.omegahat.net/R")
  3. I had issues trying to installing other R packages before devtools, therefore I suggest installing it first.

Maybe these changes could help other users in the installation process.

I've written my entire installation process, which worked for me on a freshly installed ubuntu 18.04:

On terminal:
sudo apt update && sudo apt upgrade
sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
sudo apt-get -y install r-base
sudo apt-get install fftw3 fftw3-dev pkg-config
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
sudo apt-get install libv8-dev libxml2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
R (opens R)

In R:
install.packages("devtools")
install.packages("ROpenCVLite")
library(ROpenCVLite)
install.packages("rstan", dependencies = TRUE)
install.packages("XML", repos = "http://www.omegahat.net/R")
devtools::install_github("tractatus/wholebrain") (choose to not update any dependencies)

@dprotter
Copy link

This worked for me, although I had to go back and uninstall the opencv i compiled the first time I tried to install ( a sketchy seek-and-destroy mission, haha), followed by re-installing ROpenCVLite.

also, I needed to open R with sudo privileges to get the install to work.

@GalAvineri
Copy link
Author

GalAvineri commented Aug 29, 2020 via email

@dprotter
Copy link

the R package manager didnt have access to certain directories by default and asked if I wanted to use a different filepath for the install. I cancelled out, restarted R with sudo, and then it ran fine with the default paths. seemed more robust in the long term, but I'm also only a month in to using linux as my main work computer, so perhaps it was unnecessary.

@matiasandina
Copy link
Contributor

Just to add to this, I have struggled with different installs and I ended up compiling a sort of manual. https://matiasandina.github.io/wholebrain_install/ My original idea was for it to be updated by the community. This is the repo github.com/matiasandina/wholebrain_install

@ucaszhu
Copy link

ucaszhu commented Nov 22, 2021

Hello :) I've been working on installing wholebrain on freshly installed ubuntu 18.04 and I wanted to offer an improvement to the instructions on your website.

  1. installing opencv could be done more easily by using ROpenCVLite (as has been mentioned already in the gitter)
  2. There are some additional libraries I found required for the installation process.
    They could be installed as follows:
    sudo apt-get install ibv8-dev libxml2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
    install.packages("XML", repos = "http://www.omegahat.net/R")
  3. I had issues trying to installing other R packages before devtools, therefore I suggest installing it first.

Maybe these changes could help other users in the installation process.

I've written my entire installation process, which worked for me on a freshly installed ubuntu 18.04:

On terminal: sudo apt update && sudo apt upgrade sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev sudo apt-get -y install r-base sudo apt-get install fftw3 fftw3-dev pkg-config sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev sudo apt-get install libv8-dev libxml2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev R (opens R)

In R: install.packages("devtools") install.packages("ROpenCVLite") library(ROpenCVLite) install.packages("rstan", dependencies = TRUE) install.packages("XML", repos = "http://www.omegahat.net/R") devtools::install_github("tractatus/wholebrain") (choose to not update any dependencies)

你的教程太棒了,我安装了几天,总是遇到各种问题,曾经一度想放弃了,但是按照这个步骤来,我的终于安装成功了,很开心。

@gaofan83
Copy link

@GalAvineri I tried to install on my ubuntu 20.04 using a slightly different protocol (R 4.2.1 already installed).

On terminal:
sudo apt update && sudo apt upgrade
sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
#sudo apt-get -y install r-base
sudo apt-get install fftw3 fftw3-dev pkg-config
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu xenial-security main'
sudo apt update
sudo apt install libjasper1 libjasper-dev
sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev
sudo apt-get install libv8-dev libxml2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
R (opens R)

In R:
install.packages("devtools")
install.packages("XML")
install.packages("ROpenCVLite")
library(ROpenCVLite)
install.packages("rstan", dependencies = TRUE)
library(XML)
library(ROpenCVLite)
devtools::install_github("tractatus/wholebrain") #(choose to not update any dependencies)

Everything was fine. However, when I restarted R to load wholebrain package, I saw the following. Anyone knows what to Select here?

library(wholebrain)
Loading required package: Rcpp
Loading required package: png
Loading required package: MASS
Loading required package: grImport
Loading required package: grid
Loading required package: XML
Loading required package: sp
Loading required package: rgl
Selection:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants