2 Rmpiのインストール

  • Rmpiのインストール
    • パッケージ Rmpi_0.4-9.tar.gzの入手
    • パッケージのインストール。コマンドとともにざーっとインストール画面が現れて終了
# R CMD INSTALL Rmpi_0.4-9.tar.gz
* Installing *source* package 'Rmpi' ...
Try to find mpi.h ...
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking mpi.h usability... yes
checking mpi.h presence... yes
checking for mpi.h... yes
Try to find libmpi ...
checking for main in -lmpi... yes
Try to find liblam ...
checking for main in -llam... yes
checking for openpty in -lutil... yes
checking for main in -lpthread... yes
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/zzz.R
** libs
gcc -I/usr/local/lib/R/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACK
AGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -D
HAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_
UNISTD_H=1   -DMPI2 -I/usr/local/include   -fPIC  -g -O2 -c Rmpi.c -o Rmpi.o
gcc -I/usr/local/lib/R/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACK
AGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -D
HAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_
UNISTD_H=1   -DMPI2 -I/usr/local/include   -fPIC  -g -O2 -c conversion.c -o conv
ersion.o
gcc -I/usr/local/lib/R/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACK
AGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -D
HAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_
UNISTD_H=1   -DMPI2 -I/usr/local/include   -fPIC  -g -O2 -c internal.c -o intern
al.o
gcc -shared -L/usr/local/lib -o Rmpi.so Rmpi.o conversion.o internal.o -lmpi -ll
am -lutil -lpthread
** R
** demo
** inst
** preparing package for lazy loading

** help
 >>> Building/Updating help pages for package 'Rmpi'
     Formats: text html latex example
  hosts                             text    html    latex
  internal                          text    html    latex
  mpi.abort                         text    html    latex
  mpi.barrier                       text    html    latex
  mpi.bcast                         text    html    latex
  mpi.bcast.Robj                    text    html    latex
  mpi.bcast.cmd                     text    html    latex
  mpi.comm                          text    html    latex   example
  mpi.comm.disconnect               text    html    latex
  mpi.comm.free                     text    html    latex
  mpi.comm.inter                    text    html    latex
  mpi.comm.set.errhandler           text    html    latex
  mpi.comm.spawn                    text    html    latex
  mpi.const                         text    html    latex
  mpi.exit                          text    html    latex
  mpi.finalize                      text    html    latex
  mpi.gather                        text    html    latex
  mpi.get.count                     text    html    latex
  mpi.get.processor.name            text    html    latex
  mpi.get.sourcetag                 text    html    latex
  mpi.info                          text    html    latex
  mpi.init.sprng                    text    html    latex
  mpi.intercomm.merge               text    html    latex
  mpi.parallel.sim                  text    html    latex
  mpi.probe                         text    html    latex
  mpi.reduce                        text    html    latex
  mpi.remote.exec                   text    html    latex
  mpi.scatter                       text    html    latex
  mpi.send                          text    html    latex
  mpi.send.Robj                     text    html    latex
  mpi.sendrecv                      text    html    latex   example
  mpi.spawn.Rslaves                 text    html    latex
  mpi.universe.size                 text    html    latex
** building package indices ...
* DONE (Rmpi)
#