Skip to content

Failing to install Rhdf5lib: 'cannot find -lldap' and 'cannot find -llber' #34

@yentlprojects

Description

@yentlprojects

On a linux server I installed BiocManager to a specific R_LIBS directory and am now trying to install the flowCore library. I am using R version 4.0.2 and Bioconductor version 3.12.

Initally I did this using
Rscript -e "BiocManager::install('flowCore')"

This resulted in errors for flowCore not finding cytolib, which in turn couldn't find Rhdf5lib, due to errors with finding -lldap and -llber. Next I tried to install Rhdf5lib specifically using:
Rscript -e "BiocManager::install('grimbough/Rhdf5lib')"
and
Rscript -e "BiocManager::install('grimbough/Rhdf5lib', INSTALL_opts = '--force-biarch')"

which both resulted in the same output (can provide full log if needed):

  CC       H5HLdblk.lo
  CC       H5HP.lo
  CC       H5I.lo
  CC       H5Itest.lo
  CC       H5L.lo
  CC       H5Lexternal.lo
  CC       H5make_libsettings.o
  CCLD     H5make_libsettings
/apps/leuven/skylake/2018a/software/binutils/2.28-GCCcore-6.4.0/bin/ld.gold: error: cannot find -lldap
/apps/leuven/skylake/2018a/software/binutils/2.28-GCCcore-6.4.0/bin/ld.gold: error: cannot find -llber
collect2: error: ld returned 1 exit status
make[2]: *** [H5make_libsettings] Error 1
make[2]: Leaving directory `/tmp/RtmpWh6BJm/R.INSTALL10401ea40216/Rhdf5lib/src/hdf5/src'
make[1]: *** [lib] Error 1
make[1]: Leaving directory `/tmp/RtmpWh6BJm/R.INSTALL10401ea40216/Rhdf5lib/src/hdf5/src'
make: *** [lib] Error 1
configure:    HDF5_INCLUDE=hdf5/src
configure:    HDF5_CXX_INCLUDE=hdf5/c++/src
configure:    HDF5_HL_INCLUDE=hdf5/hl/src
configure:    HDF5_HL_CXX_INCLUDE=hdf5/hl/c++/src
configure:    HDF5_LIB=hdf5/src/.libs/libhdf5.a
configure:    HDF5_CXX_LIB=hdf5/c++/src/.libs/libhdf5_cpp.a
configure:    HDF5_HL_LIB=hdf5/hl/src/.libs/libhdf5_hl.a
configure:    HDF5_HL_CXX_LIB=hdf5/hl/c++/src/.libs/libhdf5_hl_cpp.a
configure:    SZIP_LIB=hdf5/szip/src/.libs/libsz.a
configure: creating ./config.status
config.status: creating src/Makevars
** libs
mkdir -p "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/c++/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/hl/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/hl/c++/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/src/"libhdf5.settings "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
mkdir -p "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/lib/"
cp "hdf5/src/.libs/libhdf5.a" "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/lib/"
cp: cannot stat 'hdf5/src/.libs/libhdf5.a': No such file or directory
make: *** [copying] Error 1
ERROR: compilation failed for package 'Rhdf5lib'
* removing '/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/Rhdf5lib'
Error: Failed to install 'Rhdf5lib' from GitHub:
  (converted from warning) installation of package '/tmp/RtmpYhjnOU/filec777dc6cd74/Rhdf5lib_1.11.3.tar.gz' had non-zero exit status
Execution halted
✘ [Dec/05 17:22] vsc32884@tier2-p-login-1 ~ $   CC       H5HLdbg.lo
  CC       H5HLint.lo
  CC       H5HLprfx.lo
  CC       H5HLdblk.lo
  CC       H5HP.lo
  CC       H5I.lo
  CC       H5Itest.lo
  CC       H5L.lo
  CC       H5Lexternal.lo
  CC       H5make_libsettings.o
  CCLD     H5make_libsettings
/apps/leuven/skylake/2018a/software/binutils/2.28-GCCcore-6.4.0/bin/ld.gold: error: cannot find -lldap
/apps/leuven/skylake/2018a/software/binutils/2.28-GCCcore-6.4.0/bin/ld.gold: error: cannot find -llber
collect2: error: ld returned 1 exit status
make[2]: *** [H5make_libsettings] Error 1
make[2]: Leaving directory `/tmp/RtmpWh6BJm/R.INSTALL10401ea40216/Rhdf5lib/src/hdf5/src'
make[1]: *** [lib] Error 1
make[1]: Leaving directory `/tmp/RtmpWh6BJm/R.INSTALL10401ea40216/Rhdf5lib/src/hdf5/src'
make: *** [lib] Error 1
configure:    HDF5_INCLUDE=hdf5/src
configure:    HDF5_CXX_INCLUDE=hdf5/c++/src
configure:    HDF5_HL_INCLUDE=hdf5/hl/src
-bash: CC: command not foundc
onfigure:    HDF5_HL_CXX_INCLUDE=hdf5/hl/c++/src
configure:    HDF5_LIB=hdf5/src/.libs/libhdf5.a
configure:    HDF5_CXX_LIB=hdf5/c++/src/.libs/libhdf5_cpp.a
configure:    HDF5_HL_LIB=hdf5/hl/src/.libs/libhdf5_hl.a
configure:    HDF5_HL_CXX_LIB=hdf5/hl/c++/src/.libs/libhdf5_hl_cpp.a
configure:    SZIP_LIB=hdf5/szip/src/.libs/libsz.a
configure: creating ./config.status
config.status: creating src/Makevars
** libs
mkdir -p "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/c++/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/hl/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/hl/c++/src/"*.h "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
cp "hdf5/src/"libhdf5.settings "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/include"
mkdir -p "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/lib/"
cp "hdf5/src/.libs/libhdf5.a" "/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/00LOCK-Rhdf5lib/00new/Rhdf5lib/lib/"
cp: cannot stat 'hdf5/src/.libs/libhdf5.a': No such file or directory
make: *** [copying] Error 1
ERROR: compilation failed for package 'Rhdf5lib'
* removing '/vsc-hard-mounts/leuven-user/328/vsc32884/Rlibs/Rhdf5lib'
Error: Failed to install 'Rhdf5lib' from GitHub:
  (converted from warning) installation of package '/tmp/RtmpYhjnOU/filec777dc6cd74/Rhdf5lib_1.11.3.tar.gz' had non-zero exit status
Execution halted

Is this a known issue/is there a known fix for this? Or maybe an implicit dependency that is missing?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions