quanteda / readtext

an R package for reading text files
https://readtext.quanteda.io
120 stars 28 forks source link

Doesn't build under Nix on a mac #178

Open vegabook opened 3 months ago

vegabook commented 3 months ago
[nix-shell:~/Dropbox/mycode/GEMs]$ neofetch
                    c.'          mmai@m96
                 ,xNMM.          --------
               .OMMMMo           OS: macOS 14.6.1 23G93 arm64
               lMM"              Host: Mac14,13
     .;loddo:.  .olloddol;.      Kernel: 23.6.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 17 hours, 34 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 7 (brew), 224 (nix-user)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: bash 5.2.32
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x2880 , 6400x3600 , 2400x3840 , 5120x3200 @ HexadecatupleHz
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Graphite (Dark)
 'XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: iTerm2
  'XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: BQN386 18
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M2 Max
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M2 Max
       "cooc*"    "*coo'"        Memory: 29801MiB / 98304MiB

[nix-shell:~/Dropbox/mycode/GEMs]$ nix-shell -p R rPackages.readtext
these 4 derivations will be built:
  /nix/store/zd2dy8xqh2d05ikakkir683dqxq64m5m-r-RCurl-1.98-1.14.drv
  /nix/store/45237da9lhj906yg8b2brlg9xrhdwkpd-r-streamR-0.4.5.drv
  /nix/store/5n5bhar8lh7awihf0yqldbbm7ywh7spx-r-pdftools-3.4.0.drv
  /nix/store/d8d8d1h82p8krf4mwbnnnphkf8hl6ijm-r-readtext-0.91.drv
building '/nix/store/5n5bhar8lh7awihf0yqldbbm7ywh7spx-r-pdftools-3.4.0.drv'...
building '/nix/store/zd2dy8xqh2d05ikakkir683dqxq64m5m-r-RCurl-1.98-1.14.drv'...
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: unpackPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
unpacking source archive /nix/store/9ww3q5acs0nfjmnfb0l41axmsdsjdf5r-RCurl_1.98-1.14.tar.gz
source root is RCurl
setting SOURCE_DATE_EPOCH to timestamp 1704788441 of file RCurl/MD5
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: unpackPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: patchPhase
unpacking source archive /nix/store/iflglbsbif1nzs9rwmy1caw0n998piiq-pdftools_3.4.0.tar.gz
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: updateAutotoolsGnuConfigScriptsPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: configurePhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
source root is pdftools
Running phase: buildPhase
setting SOURCE_DATE_EPOCH to timestamp 1695672009 of file pdftools/MD5
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: checkPhase
Running phase: patchPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: installPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: configurePhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: buildPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: checkPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: glibPreInstallPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: installPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
** using staged installation
* installing *source* package ‘pdftools’ ...
** package ‘pdftools’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/nix/store/d6qdvq312f1z9xlwr4k82rznbwqpflv7-poppler-glib-24.02.0-dev/include/poppler/cpp
Using PKG_LIBS=-L/nix/store/bv2bv0qw93xqmz04ifl0g4jfjarrdrpn-poppler-glib-24.02.0/lib -lpoppler-cpp
Package poppler-data was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler-data.pc'
to the PKG_CONFIG_PATH environment variable
No package 'poppler-data' found
ERROR: configuration failed for package ‘pdftools’
* removing ‘/nix/store/w4fg3bdf44y28d5snpf46g2161fpsi01-r-pdftools-3.4.0/library/pdftools’
error: builder for '/nix/store/5n5bhar8lh7awihf0yqldbbm7ywh7spx-r-pdftools-3.4.0.drv' failed with exit code 1;
       last 10 log lines:
       > ** using staged installation
       > Found pkg-config cflags and libs!
       > Using PKG_CFLAGS=-I/nix/store/d6qdvq312f1z9xlwr4k82rznbwqpflv7-poppler-glib-24.02.0-dev/include/poppler/cpp
       > Using PKG_LIBS=-L/nix/store/bv2bv0qw93xqmz04ifl0g4jfjarrdrpn-poppler-glib-24.02.0/lib -lpoppler-cpp
       > Package poppler-data was not found in the pkg-config search path.
       > Perhaps you should add the directory containing `poppler-data.pc'
       > to the PKG_CONFIG_PATH environment variable
       > No package 'poppler-data' found
       > ERROR: configuration failed for package ‘pdftools’
       > * removing ‘/nix/store/w4fg3bdf44y28d5snpf46g2161fpsi01-r-pdftools-3.4.0/library/pdftools’
       For full logs, run 'nix log /nix/store/5n5bhar8lh7awihf0yqldbbm7ywh7spx-r-pdftools-3.4.0.drv'.
error: 1 dependencies of derivation '/nix/store/d8d8d1h82p8krf4mwbnnnphkf8hl6ijm-r-readtext-0.91.drv' failed to build