[MacPorts] #61013: R @4.0.2: configuration fails (error: bzip2 library and headers are required)
MacPorts
noreply at macports.org
Tue Aug 25 07:54:59 UTC 2020
#61013: R @4.0.2: configuration fails (error: bzip2 library and headers are
required)
---------------------+----------------------
Reporter: jfb007 | Owner: kjellpk
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: R |
---------------------+----------------------
Changes (by jfb007):
* status: closed => reopened
* resolution: duplicate =>
Comment:
My initial "config.log" was indeed from a run of "configure" in the build
directory! I added now the correct "config.log".
Here is part of the output of "sudo port -vv install R"
{{{
checking if zlib version >= 1.2.5... yes
checking whether zlib support suffices... yes
checking mmap support for zlib... yes
checking for BZ2_bzlibVersion in -lbz2... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking if bzip2 version >= 1.0.6... no
checking whether bzip2 support suffices... configure: error: bzip2 library
and headers are required
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.0.2"
&& ./configure --prefix=/opt/local/Library/Frameworks --enable-R-framework
--enable-memory-profiling --enable-R-shlib --enable-BLAS-shlib --without-
tcltk --with-cairo --disable-java --with-included-gettext --without-blas
--without-lapack --with-recommended-packages --with-x
--x-include=/opt/local/include/X11 --x-lib=/opt/local/lib
Exit code: 1
Error: Failed to configure R, consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.0.2/config.log
Error: Failed to configure R: configure failure: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port R failed
}}}
The output suggests, that bzip2 is not version >= 1.0.6, whereas the
following commands say, it is version 1.0.8 and it is installed!
{{{
$ which bzip2
/opt/local/bin/bzip2
$ ls -l /opt/local/bin/bzip2
-rwxr-xr-x 1 root admin 44352 28 Okt 2019 /opt/local/bin/bzip2
$ /opt/local/bin/bzip2 --version
bzip2, a block-sorting file compressor. Version 1.0.8, 13-Jul-2019.
Copyright (C) 1996-2019 by Julian Seward.
This program is free software; you can redistribute it and/or modify
it under the terms set out in the LICENSE file, which is included
in the bzip2 source distribution.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
LICENSE file for more details.
bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.
}}}
Please forgive my mistakes and I would very, very welcome any help to be
able to compile R (or is there an alternative?)
Thanks a lot in advance and Regards
Josef
--
Ticket URL: <https://trac.macports.org/ticket/61013#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list