On 24 September 2008 at 15:35, Paul Murtaugh wrote:
| I'm trying to install R under Ubuntu 7.10 (gutsy; Linux 
| 2.6.22-15-generic x86_64). Following the instructions at 
| http://cran.r-project.org/bin/linux/ubuntu/README, I installed r-base, 
| r-base-core, and r-base-dev without any problems. When I open R, 
| however, I get the message "Can't open /usr/lib64/R/etc/ldpaths".
| 
| That file is linked to /etc/R/ldpaths, which doesn't exist on my system.

It should. Checking on the amd64 system with R I can access quickly:

|    root# ls -l /usr/lib64/R/etc/ldpaths
|    2008-09-24 13:44 /usr/lib64/R/etc/ldpaths -> /etc/R/ldpaths
|    root# ls /etc/R
|    root#

[EMAIL PROTECTED]:~$ dpkg -L r-base-core | grep ldpath
/etc/R/ldpaths
/usr/lib/R/etc/ldpaths
[EMAIL PROTECTED]:~$ ls -l /etc/R/ldpaths /usr/lib/R/etc/ldpaths
-rw-r--r-- 1 root root 370 2008-06-23 12:05 /etc/R/ldpaths
lrwxrwxrwx 1 root root  14 2008-08-18 10:05 /usr/lib/R/etc/ldpaths -> 
/etc/R/ldpaths
[EMAIL PROTECTED]:~$


| In fact, there doesn't appear to be an 'ldpaths' file anywhere, other 
| than a link to /etc/R/ldpaths from another directory.
| 
|    root# find / -name 'ldpaths' -print
|    /usr/lib/R/etc/ldpaths
|    [EMAIL PROTECTED]:~# ls -l /usr/lib/R/etc/ldpaths
|    2008-09-24 13:44 /usr/lib/R/etc/ldpaths -> /etc/R/ldpaths
| 
| Can anyone help?  Thanks in advance.

I'd suggest a purge of r-base-core (which may imply a purge of its dependents
as well) and a re-install.  The package should have a file /etc/R/ldpath (as
Debian and Ubuntu prefer configuration files under /etc) with a link back to
where R expects it:
[EMAIL PROTECTED]:~$ R RHOME
/usr/lib64/R
[EMAIL PROTECTED]:~$ ls -l /usr/lib64
lrwxrwxrwx 1 root root 3 2008-08-18 07:06 /usr/lib64 -> lib
[EMAIL PROTECTED]:~$ ls /usr/lib/R/
bin  COPYING  etc  lib  library  modules  NEWS  share  site-library  
SVN-REVISION
[EMAIL PROTECTED]:~$

which is /usr/lib/R/etc even though R thinks it is in /usr/lib64 -- which is
just a link to /usr/lib.

Hope this helps, Dirk

-- 
Three out of two people have difficulties with fractions.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to