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
When I am trying to install BPCell, It throws following error
_-- R CMD build --------------------------------------------------------------------------------------------------------------------------------
v checking for file 'C:\Users\sindiris\Documents\R\R-4.1.3\library\BPCells/DESCRIPTION' (359ms)
preparing 'BPCells': (669ms)
v checking DESCRIPTION meta-information ...
cleaning src
checking for LF line-endings in source and make files and shell scripts (369ms)
checking for empty or unneeded directories
building 'BPCells_0.1.0.tar.gz'
Warning: file 'BPCells/cleanup' did not have execute permissions: corrected
Warning: file 'BPCells/configure' did not have execute permissions: corrected
installing to library 'C:/Users/sindiris/Documents/R/R-4.1.3/library'
installing source package 'BPCells' ...
** using staged installation
Testing hdf5 by compiling example program...
tools/h5write.c:19:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Retrying without -lsz flag...
tools/h5write.c:19:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Unable to locate libhdf5. Please install manually or edit compiler flags.
ERROR: configuration failed for package 'BPCells'
Then I changed hfwrite.c file by including the complete path of the HDF5 library like below
#include "C:/Program Files/HDF_Group/HDF5/1.14.1/include/hdf5.h"
Then I am getting the following issue
-- R CMD build --------------------------------------------------------------------------------------------------------------------------------
v checking for file 'C:\Users\sindiris\Documents\R\R-4.1.3\library\BPCells/DESCRIPTION' (345ms)
preparing 'BPCells': (658ms)
v checking DESCRIPTION meta-information ...
cleaning src
checking for LF line-endings in source and make files and shell scripts (380ms)
checking for empty or unneeded directories
building 'BPCells_0.1.0.tar.gz'
Warning: file 'BPCells/cleanup' did not have execute permissions: corrected
Warning: file 'BPCells/configure' did not have execute permissions: corrected
installing to library 'C:/Users/sindiris/Documents/R/R-4.1.3/library'
installing source package 'BPCells' ...
** using staged installation
Testing hdf5 by compiling example program...
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lhdf5
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsz
collect2.exe: error: ld returned 1 exit status
Retrying without -lsz flag...
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lhdf5
collect2.exe: error: ld returned 1 exit status
Unable to locate libhdf5. Please install manually or edit compiler flags.
ERROR: configuration failed for package 'BPCells'
It looks like BPCell is not able to locate "C:\Program Files\HDF_Group\HDF5\1.14.1\lib" path . Can you please help me resolve this ? Where can I declare (by using a global variable or sthng) the above path so that its visible to BPCell. ?
Have you already installed Rtools as described here? This is required for package compilation on Windows. Rtools comes with a copy of hdf5 that it will use automatically
When I am trying to install BPCell, It throws following error
_-- R CMD build --------------------------------------------------------------------------------------------------------------------------------
v checking for file 'C:\Users\sindiris\Documents\R\R-4.1.3\library\BPCells/DESCRIPTION' (359ms)
v checking DESCRIPTION meta-information ...
Warning: file 'BPCells/cleanup' did not have execute permissions: corrected
Warning: file 'BPCells/configure' did not have execute permissions: corrected
Running "C:/Users/sindiris/Documents/R/R-4.1.3/bin/x64/Rcmd.exe" INSTALL
"C:\Users\sindiris\AppData\Local\Temp\1\Rtmp61cBHj/BPCells_0.1.0.tar.gz" --install-tests
** using staged installation
Testing hdf5 by compiling example program...
tools/h5write.c:19:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Retrying without -lsz flag...
tools/h5write.c:19:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Unable to locate libhdf5. Please install manually or edit compiler flags.
ERROR: configuration failed for package 'BPCells'
Error in
(function (command = NULL, args = character(), error_on_status = TRUE, ...
:! System command 'Rcmd.exe' failed
Exit status: 1
stdout & stderr:
Type .Last.error to see the more details._
Then I changed hfwrite.c file by including the complete path of the HDF5 library like below
#include "C:/Program Files/HDF_Group/HDF5/1.14.1/include/hdf5.h"
Then I am getting the following issue
-- R CMD build --------------------------------------------------------------------------------------------------------------------------------
v checking for file 'C:\Users\sindiris\Documents\R\R-4.1.3\library\BPCells/DESCRIPTION' (345ms)
v checking DESCRIPTION meta-information ...
Warning: file 'BPCells/cleanup' did not have execute permissions: corrected
Warning: file 'BPCells/configure' did not have execute permissions: corrected
Running "C:/Users/sindiris/Documents/R/R-4.1.3/bin/x64/Rcmd.exe" INSTALL
"C:\Users\sindiris\AppData\Local\Temp\1\Rtmp61cBHj/BPCells_0.1.0.tar.gz" --install-tests
** using staged installation
Testing hdf5 by compiling example program...
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lhdf5
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsz
collect2.exe: error: ld returned 1 exit status
Retrying without -lsz flag...
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lhdf5
collect2.exe: error: ld returned 1 exit status
Unable to locate libhdf5. Please install manually or edit compiler flags.
ERROR: configuration failed for package 'BPCells'
Error in
(function (command = NULL, args = character(), error_on_status = TRUE, ...
:! System command 'Rcmd.exe' failed
Exit status: 1
stdout & stderr:
It looks like BPCell is not able to locate "C:\Program Files\HDF_Group\HDF5\1.14.1\lib" path . Can you please help me resolve this ? Where can I declare (by using a global variable or sthng) the above path so that its visible to BPCell. ?
Following is my session info
The text was updated successfully, but these errors were encountered: