I think you need to ask whoever installed Rmpi on your machine or
provided a binary package: CRAN does not distribute a Windows binary,
and one reason is that Rmpi has to be compiled against a specific MPI
installation.
Or ask the package maintainer, as the posting guide suggested. In any
case, R-devel would have been more appropriate: this is about non-R
programming. See also http://www.stats.uwo.ca/faculty/yu/Rmpi/windows.htm
On 21/08/2013 13:18, Stephen Clark wrote:> Hello,
>
> I am trying to run the optimise_ppso_robust parallel swarm optimisation
function in R3.0.0 on a 6 core AMD Windows 8 64bit PC. To do this I need to load
the Rmpi package. When I do this I get the following message in a dialogue box:
>
> The program can't start because mpich2mpi.dll is missing from your
computer. Try installing the program to fix this problem.
>
> Additionally in the R console it says:
>
> Error : .onLoad failed in loadNamespace() for 'Rmpi', details:
> call: inDL(x, as.logical(local), as.logical(now), ...)
> error: unable to load shared object 'C:/Program
Files/R/R-3.0.0/library/Rmpi/libs/x64/Rmpi.dll':
> LoadLibrary failure: The specified module could not be found.
>
> In addition: Warning message:
> package 'Rmpi' was built under R version 3.0.1
> Error: package or namespace load failed for 'Rmpi'
>
> I have checked and there is a Rmpi.dll file in the specified directory.
So you have misread the message. It does not say 'Rmpi.dll could not be
found': if you choose to use Windows you should be used to its arcane
messages. It means 'some DLL etc needed could not be found' and on
recent versions of Windows there is usually a message box about one of them.
>
> To try and solve this problem I have tried installing mpich2 from here
http://www.mpich.org/downloads/ (both the Windows Team "version" and
the Jayesh Krishna "version"). I can then get the cpi.exe test program
running on multi-cores in a command windows.
>
> Has anyone got package Rmpi to install under Windows 8 without my error
messages and how did they do this?
>
> Thanks.
>
> --
> Stephen Clark,
> Second year PhD, School of Geography
> Tel : 0113 343 6707
> Email : gysc at leeds.ac.uk<mailto:gysc at leeds.ac.uk>
> Web : http://www.geog.leeds.ac.uk/people/s.clark
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595