[Rd] PCRE, and setting C-, LD- and CPP-FLAGS for a local r-devel installation

Jesper Gådin jesper.gadin at gmail.com
Wed Apr 8 18:51:54 CEST 2015


Got some at the time surprising errors some days ago when building a local
r-devel installation on a cluster, with apparent outdated or missing dev
versions of some files. After reading the r-devel news (
https://developer.r-project.org/blosxom.cgi/R-devel/NEWS), it turned out
that " Use of the included versions of ‘zlib’, ‘bzlib’, ‘xz’ and PCRE is
deprecated: these are frozen and will eventually be removed. ", and so I
should have expected these errors.

Without being admin, I cannot system wide install or update the software
needed to get the correct headers and libs. So I have to specify all flags
myself. It went well with zlib, bzlib and xz, but not for pcre, which just
does not want to work for me.

My latest ./configure flag creation looks like this:

#bzip2,zlib and xz


#The pcre was built like this:
./../configure --prefix=/home/jesper/glob/software/pcre-8.36/build
--enable-utf8 --enable-unicode-properties
make CPPFLAGS=-I/usr/include
make install

#step into the correct folder and then run ./configure
cd /home/jesper/glob/software/2015-04-08-r-devel/build
$srcdir/configure \
    LDFLAGS="-L$bzip2_LD -L$zlib_LD -L$xz_LD -L$pcre_LD"\
    CFLAGS="-I$bzip2_CF -I$zlib_CF -I$xz_CF" \
    CPPFLAGS="-I$pcre_CF1 -I$pcre_CF2 -I$pcre_CF3 -I$pcre_CF4"

#the last rows of the ouput are
checking for pcre_fullinfo in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking if PCRE version >= 8.10, < 10.0 and has UTF-8 support... no
checking whether PCRE support suffices... configure: error: pcre library
and headers are required

Hopefully, this is an easy question you. Have spent quite some time
understanding the meaning of the flags and installing software-dependencies
like a maniac. It has been very educative, but am now very much looking
forward to your answers.


	[[alternative HTML version deleted]]

More information about the R-devel mailing list