Dear all, I try to install the latest R version using checkinstall (v. 1.6.2) on Ubuntu 11.10. After solving all the dependencies (installed using apt-get build-dep r-base) checkinstall fails to build and install R package with the following error (the same commands build and install R-2.13.2 on the same machine without any problem): wget http://cran.r-project.org/src/base/R-2/R-2.14.0.tar.gz tar xvzf R-2.14.0.tar.gz cd R-2.14.0/ ./configure --enable-R-shlib make sudo checkinstall ========================= Installation results ==========================make[1]: Entering directory `/home/andrej/Downloads/R-2.14.0/m4' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/home/andrej/Downloads/R-2.14.0/m4' make[1]: Entering directory `/home/andrej/Downloads/R-2.14.0/tools' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/home/andrej/Downloads/R-2.14.0/tools' make[1]: Entering directory `/home/andrej/Downloads/R-2.14.0/doc' installing doc ... mkdir -p -- /usr/local/lib/R/doc mkdir -p -- /usr/local/share/man/man1 mkdir: cannot create directory `/usr/local/share/man': No such file or directory make[1]: *** [installdirs] Error 1 make[1]: Leaving directory `/home/andrej/Downloads/R-2.14.0/doc' make: *** [install] Error 1 **** Installation failed. Aborting package creation. The only way to build and install package is with: sudo checkinstall --fstrans=no --install=no sudo dpkg -i r_2.14.0-1_i386.deb Any ideas how to solve this issue? Thanks in advance for any help you can give. Best, Andrej
On Tue, 15 Nov 2011, Andrej Kastrin wrote:> I try to install the latest R version using checkinstall (v. 1.6.2) on Ubuntu > 11.10.> mkdir: cannot create directory `/usr/local/share/man': No such file or > directoryAndrej, This usually means that you don't have write permissions for that directory. I assume the ubuntus are the same as Red Hat and Slackware: application installation is done by the root user, usually from root's login shell. Since the ubuntus prefer users use sudo rather than define a root password and use su -, try that route. Rich