[R-sig-Debian] Problem with ldpaths in Ubuntu 13.04

Dirk Eddelbuettel edd at debian.org
Sun Jul 28 02:38:16 CEST 2013


On 28 July 2013 at 00:07, Hodgess, Erin wrote:
| Hello!
| 
| I'm trying to install R-3.0.1 on an Ubuntu machine (64 bit, version 13.04).  I have uninstalled and installed several times, but to no avail.
| 
| 
| I keep getting errors about missing ldpaths, and installing packages does not work at all.
|
| erin at erin-Lenovo-IdeaPad-Y480:~$ R
| /usr/bin/R: line 236: /usr/lib/R/etc/ldpaths: No such file or directory
| 
| R version 3.0.1 (2013-05-16) -- "Good Sport"
| Copyright (C) 2013 The R Foundation for Statistical Computing
| Platform: x86_64-pc-linux-gnu (64-bit)
| 
| R is free software and comes with ABSOLUTELY NO WARRANTY.
| You are welcome to redistribute it under certain conditions.
| Type 'license()' or 'licence()' for distribution details.
| 
|   Natural language support but running in an English locale
| 
| R is a collaborative project with many contributors.
| Type 'contributors()' for more information and
| 'citation()' on how to cite R or R packages in publications.
| 
| Type 'demo()' for some demos, 'help()' for on-line help, or
| 'help.start()' for an HTML browser interface to help.
| Type 'q()' to quit R.
| 

Well R is installed as it evidently starts. 

It prints one warning about a softlink missing its target:  

| /usr/bin/R: line 236: /usr/lib/R/etc/ldpaths: No such file or directory

That is possible -- though it has not happened to me in many dozen installs
over the years.

You can either recreate the softlink by hand (my (verbatim) file is below) or
reinstall __after running 'purge' rather that remove__ ie making sure you
have nothing left in /etc/R (a convenience location) or /usr/lib/R/

Dirk




edd at max:~$ cat /etc/R/ldpaths 
: ${JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre}
: ${R_JAVA_LD_LIBRARY_PATH=${JAVA_HOME}/lib/amd64/server}
if test -n ""; then
: ${R_LD_LIBRARY_PATH=${R_HOME}/lib:}
else
: ${R_LD_LIBRARY_PATH=${R_HOME}/lib}
fi
if test -n "${R_JAVA_LD_LIBRARY_PATH}"; then
  R_LD_LIBRARY_PATH="${R_LD_LIBRARY_PATH}:${R_JAVA_LD_LIBRARY_PATH}"
fi
## This is DYLD_FALLBACK_LIBRARY_PATH on Darwin (OS X) and LD_LIBRARY_PATH elsewhere
if test -z "${LD_LIBRARY_PATH}"; then
  LD_LIBRARY_PATH="${R_LD_LIBRARY_PATH}"
else
  LD_LIBRARY_PATH="${R_LD_LIBRARY_PATH}:${LD_LIBRARY_PATH}"
fi
export LD_LIBRARY_PATH
edd at max:~$
-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the R-SIG-Debian mailing list