urbach / rzeta

R-Implementation of the Lüscher Zeta Function
GNU Lesser General Public License v3.0
2 stars 4 forks source link

Cannot compile on QBIG #4

Closed martin-ueding closed 4 years ago

martin-ueding commented 4 years ago

Maybe my environment is just messed up, but I cannot seem to install the latest version over at HISKP-LQCD:

$ Rscript -e 'install.packages(".", repo = NULL)'
Installing package into ‘/qbigwork2/ueding/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package ‘rzeta’ ...
** using staged installation
** libs
make: Nothing to be done for 'all'.
installing to /qbigwork2/ueding/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-rzeta/00new/rzeta/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘rzeta’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/qbigwork2/ueding/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-rzeta/00new/rzeta/libs/rzeta.so':
  /qbigwork2/ueding/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-rzeta/00new/rzeta/libs/rzeta.so: undefined symbol: gsl_integration_workspace_free
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/qbigwork2/ueding/R/x86_64-pc-linux-gnu-library/3.6/rzeta’
* restoring previous ‘/qbigwork2/ueding/R/x86_64-pc-linux-gnu-library/3.6/rzeta’
Warning message:
In install.packages(".", repo = NULL) :
  installation of package ‘.’ had non-zero exit status

I have tried making sure that the GSL libraries directory is in my LD_LIBRARY_PATH but still it cannot find that. Am I doing something obvious incorrectly?

martin-ueding commented 4 years ago

This seems to be the interesting part of my environment:

HOME=/qbigwork2/ueding
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LD_LIBRARY_PATH=/opt/openmpi-2.0.2a1-with-pmi/lib:/usr/lib/x86_64-linux-gnu/
LOGNAME=ueding
PATH=/qbigwork2/ueding/.local/bin:/qbigwork2/ueding/bin:/opt/openmpi-2.0.2a1-with-pmi/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/slurm/bin
PWD=/qbigwork2/ueding/rzeta
SHELL=/bin/bash
USER=ueding
martin-ueding commented 4 years ago

Figured it out.

martin-ueding commented 4 years ago

One needs to do autoreconf -vif in order to regenerate the configure script before installing it via R.