You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it looks like configure detects environment variable MPI_INCLUDE but not MPI_LIB resulting in the following installation failure on R 4.1.0 on CentOS 7 (built from source with gcc 8.3.1).
$moduleloadmpi/openmpi-x86_64## Available via the official CentOS/EPEL repo$R--quiet> Sys.getenv(c("MPI_INCLUDE", "MPI_LIB"))
MPI_INCLUDEMPI_LIB"/usr/include/openmpi-x86_64""/usr/lib64/openmpi/lib"> install.packages("pbdMPI")
Installingpackageinto ‘/c4/home/henrik/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8-sandbox’
(as ‘lib’ isunspecified)
tryingURL'https://cloud.r-project.org/src/contrib/pbdMPI_0.4-3.tar.gz'Contenttype'application/x-gzip'length519462 bytes (507KB)
==================================================downloaded507KB*installing*source*package ‘pbdMPI’ ...**package ‘pbdMPI’ successfullyunpackedandMD5sumschecked**usingstagedinstallationsettingmpiincludepathfromMPI_INCLUDEconfigure:error:MustspecifyboththeincludeandlibpathsERROR:configurationfailedforpackage ‘pbdMPI’
*removing ‘/c4/home/henrik/R/x86_64-pc-linux-gnu-library/4.1-CBI-gcc8-sandbox/pbdMPI’
Thedownloadedsourcepackagesarein
‘/scratch/henrik/RtmpdYT6OW/downloaded_packages’
Warningmessage:In install.packages("pbdMPI") :installationofpackage ‘pbdMPI’ hadnon-zeroexitstatus>
Issue
Hi, it looks like configure detects environment variable
MPI_INCLUDE
but notMPI_LIB
resulting in the following installation failure on R 4.1.0 on CentOS 7 (built from source with gcc 8.3.1).Workaround
The fix is to install as:
Wish/Suggestion
Make the pbdMPI configure script detect also
MPI_LIB
, which I'm quite sure is an official environment variable so that:be enough. Maybe it would result in:
working out of the box, which would be lovely.
FWIW, here's what the above environment module sets and provides:
The text was updated successfully, but these errors were encountered: