Installing R 3.4.2 from ports doesn't find cairo.so lib
Roland Smith
rsmith at xs4all.nl
Sun Oct 1 14:14:57 UTC 2017
On Sun, Oct 01, 2017 at 03:35:34PM +0200, Victor wrote:
> Under
>
> FreeBSD metbsd 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug 9 11:17:49 UTC 2017
> root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>
> I'm trying to install the new R 3.4.2 version from ports (/usr/ports/math/R) but when I issue
>
>
> make install
> ..............
> ..............
> ===> Checking if R already installed
> ===> Registering installation for R-3.4.2
> pkg-static: Unable to access file /usr/ports/math/R/work/stage/usr/local/lib/R/library/grDevices/libs/cairo.so:No such file or directory
> *** Error code 74
Check your work tree if there actually *is* a cairo.so:
cd /usr/ports/math/R/work/
find . -type f -name cairo.so
> Can someone out there help me to fix the problem?
If cairo.so is not being built, I would suggest making a backup of the port Makefile.
Then edit the Makefile to change:
CAIROPANGO_CONFIGURE_WITH=cairo
to
CAIROPANGO_CONFIGURE_ENABLE=cairo
According to /usr/ports/Mk/bsd.options.mk, the ${opt}_CONFIGURE_WITH flag adds
“--with-${content}”. But from other options, it seems that R uses the
--enable/--disable style of options. That should be done with
${opt}_CONFIGURE_ENABLE.
Roland
--
R.F.Smith http://rsmith.home.xs4all.nl/
[plain text email much appreciated]
More information about the freebsd-questions
mailing list