2016-12-20 1 views
0

Ich versuche Rmpi, als root, auf der aktuellsten Version von R (3.3.2) auf einem Ubuntu Linux (16.04) System zu installieren. Ich habe gegoogelt und alles versucht, was mir einfällt, aber ich kann diesen Fehler nicht durchmachen, wenn ich versuche, das Paket zu laden, nachdem es scheinbar erfolgreich installiert wurde. Irgendwelche Vorschläge willkommen.Fehler beim Laden von Rmpi, Verweis auf "system2"

*** installing help indices 
** building package indices 
** testing if installed package can be loaded 
Error in system2(file.path(R.home("bin"), "R"), c(if (nzchar(arch)) paste0("--arch=", : 
    error in running command 

Antwort

0

Was ist los mit sudo apt-get install r-cran-rmpi? Funktioniert hier wie ein Zauber.

Wie tut install.r Rmpi (wo install.r nur ein Helfer von meinem weggeworfener Paket ist):

$ install.r Rmpi 
trying URL 'https://cran.rstudio.com/src/contrib/Rmpi_0.6-6.tar.gz' 
Content type 'application/x-gzip' length 105181 bytes (102 KB) 
================================================== 
downloaded 102 KB 

* installing *source* package ‘Rmpi’ ... 
** package ‘Rmpi’ successfully unpacked and MD5 sums checked 
checking for gcc... ccache gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables... 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether ccache gcc accepts -g... yes 
checking for ccache gcc option to accept ISO C89... none needed 
I am here /usr/lib/openmpi and it is OpenMPI 
Trying to find mpi.h ... 
Found in /usr/lib/openmpi/include 
Trying to find libmpi.so or libmpich.a ... 
Found libmpi in /usr/lib/openmpi/lib 
checking for orted... yes 
checking for openpty in -lutil... yes 
checking for main in -lpthread... yes 
configure: creating ./config.status 
config.status: creating src/Makevars 
** libs 
ccache gcc -I/usr/share/R/include -DNDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I/usr/lib/openmpi/include -DMPI2 -DOPENMPI  -fpic -O3 -g0 -Wall -pipe -pedantic -std=gnu99 -I/usr/local/cuda/include -I/usr/share/R/include -c Rmpi.c -o Rmpi.o 
ccache gcc -I/usr/share/R/include -DNDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I/usr/lib/openmpi/include -DMPI2 -DOPENMPI  -fpic -O3 -g0 -Wall -pipe -pedantic -std=gnu99 -I/usr/local/cuda/include -I/usr/share/R/include -c conversion.c -o conversion.o 
ccache gcc -I/usr/share/R/include -DNDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I/usr/lib/openmpi/include -DMPI2 -DOPENMPI  -fpic -O3 -g0 -Wall -pipe -pedantic -std=gnu99 -I/usr/local/cuda/include -I/usr/share/R/include -c internal.c -o internal.o 
ccache gcc -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Rmpi.so Rmpi.o conversion.o internal.o -L/usr/lib/openmpi/lib -lmpi -lutil -lpthread -L/usr/lib/R/lib -lR 
installing to /usr/local/lib/R/site-library/Rmpi/libs 
** R 
** demo 
** inst 
** preparing package for lazy loading 
** help 
*** installing help indices 
** building package indices 
** testing if installed package can be loaded 
* DONE (Rmpi) 

The downloaded source packages are in 
     ‘/tmp/downloaded_packages’ 
$ 
+0

Danke Dirk, lädt es nur gut, aber wenn ich versuche, die Bibliothek innerhalb R zu laden ich diese. > Bibliothek (Rmpi) [JAM-Startseite-PC: 11381] mca: base: component_find: kann nicht geöffnet werden/usr/lib/openmpi/lib/openmpi/mca_shmem_posix:/usr/lib/openmpi/lib/openmpi/mca_shmem_posix. so: undefiniertes Symbol: opal_shmem_base_framework (ignoriert) /usr/lib/R/bin/exec/R: symbol Suchfehler: /usr/lib/openmpi/lib/openmpi/mca_shmem_sysv.so: undefiniert Symbol: mca_base_component_var_register –

+0

Ich denke, da muss in R_home oder LOAD_LIBRARY_PATH etwas falsch sein, da nicht einmal install.r ausgeführt wird. Ich installiere littler, aber bekomme diese install.r Rmpi ​​ install.r: Befehl nicht gefunden –

+0

Das wird lokal zu Ihrem System, so dass Sie dies verfolgen müssen. –

Verwandte Themen