Skip to content

Instantly share code, notes, and snippets.

@caseycesari
Created February 9, 2015 16:36
Show Gist options
  • Save caseycesari/d3a514807389009e364d to your computer and use it in GitHub Desktop.
Save caseycesari/d3a514807389009e364d to your computer and use it in GitHub Desktop.
Install R and RStudio on Ubuntu 12.04 running on a Chromebook with an ARM processor
# There may be some more dependencies that I installed before getting to R and R Studio
sudo apt-get install libqt4-core libqt4-gui libqt4-gui qt4-dev-tools \
fort77 tk8.5 tcl8.5 tk8.5-dev tcl8.5-dev cfortran
cd $INSTALL_FOLDER
curl http://lib.stat.cmu.edu/R/CRAN/src/base/R-3/R-3.0.2.tar.gz
tar xvf R-3.0.2.tar.gz
cd R-3.0.2
export CXXFLAGS="$CXXFLAGS -fPIC"
sudo ./configure --enable-R-shlib
sudo make && sudo make install
git clone git@github.com:rstudio/rstudio.git && cd rstudio
# source: http://ramseygurley.blogspot.com/2014/02/building-rstudio-on-arm.html
curl https://closure-compiler.googlecode.com/files/compiler-20130823.zip
unzip compiler-20130823.zip
mv src/gwt/tools/compiler/compiler.jar src/gwt/tools/compiler/compiler-old.jar
cp compiler.jar src/gwt/tools/compiler/compiler.jar
cd dependencies/linux
sudo ./install-dependencies-debian
cd ../../
mkdir build && cd build
cmake .. -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release
sudo make install
mkdir -p ~/R && mkdir ~/R/packages
echo 'PATH="$PATH:~/R/packages"' >> ~/.bashrc
@kdeloach
Copy link

I think these curl commands should be wget instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment