Error installing delone package
Trying to install delone
from https://github.com/hypertidy/delone and getting:
/opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/config.h:161:12: fatal error: CGAL/compiler_config.h: No such file or directory
161 | # include <CGAL/compiler_config.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~
I don't think its a problem in delone
, but I may be wrong.
If I create an empty compiler_config.h
file in that location:
touch /opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/compiler_config.h
it does then work (modulo some C++ warnings).
Here's the full failing output from installing delone
:
> devtools::install_github("hypertidy/delone")
Downloading GitHub repo hypertidy/delone@HEAD
✔ checking for file ‘/tmp/RtmpMq1e9m/remotes3f04f75fb8c765/hypertidy-delone-5765ebe/DESCRIPTION’ ...
─ preparing ‘delone’:
✔ 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
Omitted ‘LazyData’ from DESCRIPTION
─ building ‘delone_0.0.0.9000.tar.gz’
* installing *source* package ‘delone’ ...
** using staged installation
** libs
g++ -std=gnu++11 -I"/opt/R-4.1.1/lib/R/include" -DNDEBUG -I'/opt/R-4.1.1/lib/R/library/cpp11/include' -I'/opt/R-4.1.1/lib/R/library/cgal4h/include' -I'/opt/R-4.1.1/lib/R/library/BH/include' -I/usr/local/include -fpic -g -O2 -c cpp11.cpp -o cpp11.o
g++ -std=gnu++11 -I"/opt/R-4.1.1/lib/R/include" -DNDEBUG -I'/opt/R-4.1.1/lib/R/library/cpp11/include' -I'/opt/R-4.1.1/lib/R/library/cgal4h/include' -I'/opt/R-4.1.1/lib/R/library/BH/include' -I/usr/local/include -fpic -g -O2 -c delone.cpp -o delone.o
In file included from /opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/basic.h:30,
from /opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/Cartesian/Cartesian_base.h:29,
from /opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/Simple_cartesian.h:29,
from /opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:29,
from delone.cpp:12:
/opt/R-4.1.1/lib/R/library/cgal4h/include/CGAL/config.h:161:12: fatal error: CGAL/compiler_config.h: No such file or directory
161 | # include <CGAL/compiler_config.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/opt/R-4.1.1/lib/R/etc/Makeconf:177: delone.o] Error 1
ERROR: compilation failed for package ‘delone’
* removing ‘/opt/R-4.1.1/lib/R/library/delone’
Warning message:
In i.p(...) :
installation of package ‘/tmp/RtmpMq1e9m/file3f04f7af8fd4/delone_0.0.0.9000.tar.gz’ had non-zero exit status
and version info:
> version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.1
year 2021
month 08
day 10
svn rev 80725
language R
version.string R version 4.1.1 (2021-08-10)
nickname Kick Things