[R-sig-Debian] Problem installing/updating Rpmi

mat matthieu.stigler at gmail.com
Sun May 2 20:17:59 CEST 2010


Dirk Eddelbuettel a écrit :
> On 2 May 2010 at 21:15, mat wrote:
> | Hi
> | 
> | I have a few problems installing/updating packages with complicated 
> | dependencies. For example, the Rmpi package:
> | 
> | update.packages(...)
> | checking for mpi.h... no
> | configure: error: "Cannot find mpi.h header file"
> | ERROR: configuration failed for package ‘Rmpi’
> | 
> | So I tried:
> | 
> |  >install.packages("Rmpi",configure.args="--with-mpi=/usr/lib/openmpi")
>
> I recommend
>
>   sudo apt-get install r-cran-rmpi
>
> which gets you Rmpi 0.5-8 (via Debian testing, or via Debian unstable, or via
> the cran2dep repository). It is always the same versions 0.5-8.
>   
Thanks for the prompt answer! Sorry, forgot to precise the important 
point that I'm using Ubuntu...

$apt-cache show r-cran-rmpi
Package: r-cran-rmpi
Priority: optional
Section: universe/math
Installed-Size: 1016
Maintainer: Ubuntu MOTU Developers <ubuntu-motu at lists.ubuntu.com>
Original-Maintainer: Dirk Eddelbuettel <edd at debian.org>
Architecture: amd64
Source: rmpi
Version: 0.5-7-3build2

so it is still version 0.5-7, and it looks like R is complaining it want 
a pkg compiled against 2.11...

Actually, I found a solution, which was to install also dependencies:

sudo apt-get build-dep r-cran-rmpi

and then finally the command:

sudo R CMD INSTALL Rmpi --configure-args=--with-mpi=/usr/lib/openmpi


worked, so I could install it!

Thanks a lot Dirk for those nice r-cran packages!

Matthieu

>  
> | Trying to find mpi.h ...
> | Cannot find mpi.h header file
> | Please use --with-mpi=/path/to/mpi or specify the environment variable 
> | MPI_ROOT
> | 
> | As well as:
> | $sudo R CMD INSTALL Rmpi --configure-args=--with-mpi
> | =/usr/lib64/openmpi
> | 
> | but get same error message... So it looks it is asking me what I thought 
> | precisely that I was doing (specifying the library)...
>
> If you want to install from source, read the README in the sources and
> install the relevant packages which are missing here (as indicated by the
> missing mpi.h).
>   
> Dirk
>  
> | Should I do something more elaborate? I feel this was working before 
> | when I used the version from r-cran-*, nut now R 2.11 want the latest 
> | package to be installed... which seems no to be available on r-cran-*
> | 
> | Btw, when are usually the packages on r-cran updated? Are/Will they be 
> | updated for R 2.11? Thanks a lot for those very useful instalaltion 
> | facilities!!!
> | 
> | Matthieu
> | 
> | 
> | sessionInfo()
> | R version 2.11.0 (2010-04-22)
> | x86_64-pc-linux-gnu
> | 
> | locale:
> | [1] LC_CTYPE=fr_CH.UTF-8 LC_NUMERIC=C
> | [3] LC_TIME=fr_CH.UTF-8 LC_COLLATE=fr_CH.UTF-8
> | [5] LC_MONETARY=C LC_MESSAGES=fr_CH.UTF-8
> | [7] LC_PAPER=fr_CH.UTF-8 LC_NAME=C
> | [9] LC_ADDRESS=C LC_TELEPHONE=C
> | [11] LC_MEASUREMENT=fr_CH.UTF-8 LC_IDENTIFICATION=C
> | 
> | attached base packages:
> | [1] stats graphics grDevices utils datasets methods base
> | 
> | loaded via a namespace (and not attached):
> | [1] tools_2.11.0
> | 
> | _______________________________________________
> | R-SIG-Debian mailing list
> | R-SIG-Debian at r-project.org
> | https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>
>



More information about the R-SIG-Debian mailing list