From edd @end|ng |rom deb|@n@org  Mon Feb 25 12:54:26 2019
From: edd @end|ng |rom deb|@n@org (Dirk Eddelbuettel)
Date: Mon, 25 Feb 2019 05:54:26 -0600
Subject: [Rd] pcre problems
In-Reply-To: <CAHHjBM7CJa6un7Up6nM4NHZjn17MdXFjRPxkYvkv+V2F6d4hDA@mail.gmail.com>
References: <CAHHjBM7CJa6un7Up6nM4NHZjn17MdXFjRPxkYvkv+V2F6d4hDA@mail.gmail.com>
Message-ID: <23667.55154.750303.535379@rob.eddelbuettel.com>


On 25 February 2019 at 18:25, robin hankin wrote:
| Hi there, ubuntu 18.04.2, trying to compile R-devel  3.6.0,  svn 76155.
| 
| I am having difficulty compiling R. I think I have pcre installed correctly:
| 
| OK~/Downloads/R-devel pcretest -C
| PCRE version 8.41 2017-07-05
| Compiled with
|   8-bit support
|   UTF-8 support
|   No Unicode properties support
|   No just-in-time compiler support
|   Newline sequence is LF
|   \R matches all Unicode newlines
|   Internal link size = 2
|   POSIX malloc threshold = 10
|   Parentheses nest limit = 250
|   Default match limit = 10000000
|   Default recursion depth limit = 10000000
|   Match recursion uses stack
| OK~/Downloads/R-devel

That is a front-end tool. I don't even have it installed :)
 
| But ./configure gives me this:
| 
| [snip]
| 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.20, < 10.0 and has UTF-8 support... no
| checking whether PCRE support suffices... configure: error: pcre >=
| 8.20 library and headers are required
| OK~/Downloads/R-devel
| 
| can anyone advise?

Ensure you have the corresponding -dev package. My system is now at the
current Ubuntu 18.10, not the Ubuntu LTS 18.04 you have -- but I have been
building R-devel on it about once every week or other week for years:

edd at rob:~$ COLUMNS=100 dpkg -l libpcre*dev | cut -c-100
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version        Architecture   Description
+++-===================-==============-==============-===========================================
ii  libpcre3-dev:amd64  2:8.39-11      amd64          Old Perl 5 Compatible Regular Expression Li
edd at rob:~$ 


Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] pcre problems
Dirk Eddelbuettel