I started building R 3.2.2 on Fedora 22 today, and I got the dreaded
configure: WARNING: you cannot build info or HTML versions of the R manuals configure: WARNING: you cannot build PDF versions of the R manuals configure: WARNING: you cannot build info or HTML versions of vignettes and help pages
And google turned up about 99 solutions telling me to go read the manual.
But hey, I figure I’ll read the manual so that you don’t have to. Here is the installation procedure I followed. It probably won’t match the exact magical incantations you’d need on another flavor of Linux. But at least you can use this as a guide to get some additional ideas on what packages you have to have, and then create your own spells.
Downloading the Source
The source can be downloaded as a .tar.gz file from www.r-project.org.
Preparing the System to Build
First, if you don’t already have it, you’ll need to install a compiler. In fact, you’ll need three: a C compiler, C++ compiler, and a Fortran 90 compiler.
sudo yum install gcc sudo yum install gcc-c++ sudo yum install gcc-gfortran
Many R packages also depend on Java, so you may want to download the latest JRE from www.java.com
To install kernel headers and development libraries, yum has a nice group install feature. You’ll need to install the following groups:
sudo yum groupinstall "Development tools" sudo yum groupinstall "Development Libraries" sudo yum groupinstall "X Software Development"
Installing Stuff the R Needs
A close reading of the R build and installation manual above reveals that there are a number of packages required on Linux, and while it would have been nice if they had provided them in a list, here is a list of things I needed to install. (Some of these may come up already installed on your system.)
sudo yum install zlib sudo yum install lzma sudo yum install curl sudo yum install pcre sudo yum install bzip2
And then there are the TeX libraries
sudo yum install texinfo sudo yum install texinfo-tex sudo yum install tex sudo yum install texlive-scheme-basic # A.K.A. LaTex, lol! sudo yum install texlive-inconsolata # A font needed by R 3.2.2 manuals
Configuring and Building
This is usually a two step process. There should be a script called configure in the R-3.2.2 directory. Most people will want to build R with the shared libraries, especially if they want to use it with RStudio, so it should be run with that option. If the configure step fails, it usually does so with a message that indicates a missing package. If there is something missing that is not covered above, you may have to google for the exact package name given the message. Then you can make, and make pdf, and make install.
./configure --enable-R-shlib make make pdf sudo make install
Now maybe you don’t need to make pdf, but when I did that and tried to make install, it complained that there was a missing “NEWS.pdf”.