[R] Problem installing R packages in OpenBSD
Bruce
bthatcher at att.net
Tue Jul 3 15:17:17 CEST 2007
Thank you both for your responses.
I am now able to install R packages.
The front-end R scripts were changed at /usr/local/bin
and /usr/local/lib/R/bin as follows:
From:
R_HOME_DIR=/usr/obj/i386/R-2.4.1/fake-i386/usr/local/lib/R
R_SHARE_DIR=/usr/obj/i386/R-2.4.1/fake-i386/usr/local/lib/R/share
export R_SHARE_DIR
R_INCLUDE_DIR=/usr/obj/i386/R-2.4.1/fake-i386/usr/local/lib/R/include
export R_INCLUDE_DIR
R_DOC_DIR=/usr/obj/i386/R-2.4.1/fake-i386/usr/local/lib/R/doc
export R_DOC_DIR
To:
R_HOME_DIR=/usr/local/lib/R
R_SHARE_DIR=/usr/local/lib/R/share
export R_SHARE_DIR
R_INCLUDE_DIR=/usr/local/lib/R/include
export R_INCLUDE_DIR
R_DOC_DIR=/usr/local/lib/R/doc
export R_DOC_DIR
The R_HOME environment variable has been removed from my .profile
and /etc/profile.
Bruce
On Tuesday 03 July 2007 03:36:38 am you wrote:
> Hello.
>
> It's been quite a while since using OpenBSD (and no OpenBSD here for me to
> check this out), but I do remember having to reset some of the path
> entries. Can you check the directory settings in the main R script and see
> if that's where the "fake-..." is coming from? This looks like a setting
> for the OpenBSD package creation that didn't get changed after package
> installation.
>
> Hope this helps,
>
> Jon
>
>
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch on behalf of Bruce
> Sent: Mon 7/2/2007 5:19 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Problem installing R packages in OpenBSD
>
> OS: OpenBSD version 4.1 i386
> R version 2.4.1 (2006-12-18) installed as a binary package
>
> $ ls
> mapproj_1.1-7.1.tar.gz maps_2.0-36.tar.gz
>
> $ sudo R CMD INSTALL mapproj_1.1-7.1.tar.gz
>
> /usr/local/lib/R/bin/INSTALL[118]:
> .: /usr/obj/i386/R-2.4.1/fake-i386/usr/local/lib/R/share/sh/dcf.sh: not
> found
>
> I get the same error message from the R command prompt using
> install.packages("mapproj", dep=TRUE)
>
> Questions regarding /usr/obj/i386/R-2.4.1/fake-i386:
> o Where did this path come from?
> o Is there a conflict between OpenBSD ports and R packages?
> o Is OpenBSD ports trying to do the package install? If so, how do I stop
> it?
>
> Please note that I have installed R packages successfully on Linux, Windows
> XP
> and FreeBSD.
>
> Background information
> -------------------------------------------
> Environment variables:
> $ echo $R_HOME
> /usr/local/lib/R
> $ echo $R_LIBS
> /usr/local/lib/R/library
>
> R install:
> $ pwd
> /usr/local/lib/R/share/sh
> $ ls -l
> total 16
> -r--r--r-- 1 root bin 392 Mar 9 00:57 dcf.sh
> -r--r--r-- 1 root bin 27 Mar 9 00:57 echo.sh
> -r--r--r-- 1 root bin 1506 Mar 9 00:57 help-links.sh
> -r--r--r-- 1 root bin 825 Mar 9 00:57 help-print.sh
>
> Thanks
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
More information about the R-help
mailing list