Building R on Ubuntu

Today morning I wanted to do experiments with RJDBC . To my surprise Ubuntu 12.04 does not have latest version of R
Following are the steps I have followed to build R on Ubuntu.

  • Install the required dependencies.
  • sudo apt-get install gcc g++ gfortran libreadline-dev libx11-dev xorg-dev
  • Download the source.
  • svn checkout r-devel
  • Sync the required modules.
  • cd r-devel/
    apt-get install rsync
    sudo apt-get install rsync

    If you are behind firewall, setup RSYNC_PROXY.

  • Configure and Make.
  • JAVA_HOME=<your java home> ./configure --prefix <where you want to install the binaries>
  • Install.
  • make install

    One thought on “Building R on Ubuntu

    Leave a Reply

    Fill in your details below or click an icon to log in: Logo

    You are commenting using your account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )


    Connecting to %s