[R-sig-hpc] trouble installing Rmpi
Dirk Eddelbuettel
edd at debian.org
Fri Nov 19 14:42:10 CET 2010
On 19 November 2010 at 07:07, John Joseph wrote:
|
| Thanks, Dirk.
|
| I appreciate this advice. I didn't even know R packages could be loaded that
| way,
| so that's a good lesson for me. I'm such a newbie. Anyway, when I tried it,
Maybe you should do a little more reading rather than random compiling.
We are here (and on r-sig-debian) to help. There are list archives. There
are HOWTO. There are even (excellent) manuals for R (though they do not cover
dpkg and apt-get).
| Rmpi seemed to get installed propoerly (no warnings or error messages). But,
| then
| when I went into R, and typed library(Rmpi), this is what I get:
|
| > library(Rmpi)
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
| unable to load shared library '/home/john/R/i486-pc-linux-gnu-library/2.11/
| Rmpi/libs/Rmpi.so':
| liblam.so.4: cannot open shared object file: No such file or directory
| Error in library(Rmpi) : .First.lib failed for 'Rmpi'
Your local Rmpi shadows and hides the one I suggested.
In short, *I* would uninstall all the local packages and do (as per my last
email)
sudo apt-get install r-cran-rmpi
| > q()
| Save workspace image? [y/n/c]: n
| Warning message:
| .Last.lib failed in detach() for 'Rmpi', details:
| call: dyn.unload(file.path(libpath, "libs", paste("Rmpi",
| .Platform$dynlib.ext,
| error: dynamic/shared library '/home/john/R/i486-pc-linux-gnu-library/2.11/
| Rmpi/libs/Rmpi.so' was not loaded
| john at john-desktop:~$
|
|
| Prior to that I had tried several other times without success. I learned that
| I probably shouldn't have
| installed openMPI 1.4.3 over the earlier version, 1.4.2, that came with my
| Ubuntu 10.04. So, after some
For Pete's sake, why do you think you need to *build* Open MPI?
I suggested to install a pre-built, tested, working binary.
| research, I think I correctly uninstalled it with "make uninstall" command at
| the build tree. Didn't seem to
| help. I tried a few other things with no luck. Do you think there's some
| simple solution? Thanks for your help.
There is a simple solution. Use the *package* via the *package management
system* of your *Linux distribution*.
You don't have to use those. If and when you know better you can always
replace those, but currently I believe you are better served with the
prebuilt ones.
Hope this helps, Dirk
|
| John Joseph
|
| -----Original Message-----
| From: Dirk Eddelbuettel [mailto:edd at debian.org]
| Sent: Thu 11/18/2010 3:09 PM
| To: John Joseph
| Cc: r-sig-hpc at r-project.org
| Subject: Re: [R-sig-hpc] trouble installing Rmpi
|
|
| On 18 November 2010 at 14:48, John Joseph wrote:
| | I am new to Linux and parallel processing, and am having trouble installing
| Rmpi.
| [...]
| | I am using Ubuntu 10.04.
| |
| | I would greatly appreciate any help you can give.
|
| Try
|
| sudo apt-get install r-cran-rmpi
|
| which should also install Open MPI. LAM is deprecated in favour of Open MPI.
|
| Dirk
|
| --
| Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
|
|
|
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the R-sig-hpc
mailing list