Giter Club home page Giter Club logo

Comments (1)

royfrancis avatar royfrancis commented on July 28, 2024

I get the same error about patch when installing in an Ubuntu 22.04 docker container, libhdf5-dev is already installed.

Click here
> remotes::install_github("hhoeflin/hdf5r")
Downloading GitHub repo hhoeflin/hdf5r@HEAD
── R CMD build ───────────────────────────────────────────────────────────
   checking for file ‘/tmp/RtmpA7GpSG/remotes96120a9dfc1/hhoeflin-hdf5r-45✔  checking for file ‘/tmp/RtmpA7GpSG/remotes96120a9dfc1/hhoeflin-hdf5r-450d483/DESCRIPTION’ (748ms)
─  preparing ‘hdf5r’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  running ‘cleanup’
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘hdf5r_1.3.8.tar.gz’
   
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘hdf5r’ ...
** using staged installation
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for gcc... 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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for h5cc... /usr/bin/h5cc
checking for HDF5 libraries... yes (version 1.10.7)
checking for hdf5.h... yes
checking for H5Fcreate in -lhdf5... yes
checking for hdf5_hl.h... yes
checking for H5LTpath_valid in -lhdf5_hl... yes
checking for main in -lhdf5_hl... yes
checking for matching HDF5 Fortran wrapper... /usr/bin/h5fc
Found hdf5 with version: 1.10.7
checking for ggrep... /usr/bin/grep
checking whether /usr/bin/grep accepts -o... yes
checking for ggrep... (cached) /usr/bin/grep
checking whether /usr/bin/grep accepts -o... yes
Using variables:
HDF5_LIBS= -L/usr/lib/x86_64-linux-gnu/hdf5/serial  -lcrypto  -lcurl  -lpthread  -lsz  -lz  -ldl  -lm  -L. -lhdf5_hl -lhdf5 -lz -lm
HDF5_CFLAGS=
HDF5_CPPFLAGS=-I/usr/include/hdf5/serial 
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
cp 1_10_3/*.c 1_10_3/*.h .
if [ "1.10.6" != "" ]; then patch -p2 < patch_1.10.6; fi
/bin/bash: line 1: patch: command not found
make: *** [Makevars:28: copy_auto_files] Error 127
ERROR: compilation failed for package ‘hdf5r’
* removing ‘/usr/local/lib/R/site-library/hdf5r’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpA7GpSG/file96127fef41/hdf5r_1.3.8.tar.gz’ had non-zero exit status

Resolved by sudo apt-get install patch

from hdf5r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.