libpcre is missing while update Zabbix

I try to update Zabbix version from source. Now installed 3.2.1 version and Zabbix works properly. I do /tmp/zabbix-3.4.3/configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2 and error appears:

... ... checking for libevent support... yes checking for libpcre support... no configure: error: Unable to use libpcre (libpcre check failed)
I’ve tried with keys –with-libpcre-include=/usr/lib64/ or/and –with-libpcre=/usr/lib64/ - the same effect. I’ve reinstall and update this library to newest version.
Output library folder:

zabbix:~ # ls -la /usr/lib/libpcre* /usr/lib64/libpcre* lrwxrwxrwx 1 root root 18 Nov 10 14:44 /usr/lib64/libpcre16.so.0 -> libpcre16.so.0.2.9 -rwxr-xr-x 1 root root 555288 Oct 12 00:29 /usr/lib64/libpcre16.so.0.2.9 lrwxrwxrwx 1 root root 19 Nov 10 14:44 /usr/lib64/libpcrecpp.so.0 -> libpcrecpp.so.0.0.1 -rwxr-xr-x 1 root root 39424 Oct 12 00:29 /usr/lib64/libpcrecpp.so.0.0.1 lrwxrwxrwx 1 root root 21 Nov 10 14:45 /usr/lib64/libpcreposix.so.0 -> libpcreposix.so.0.0.5 -rwxr-xr-x 1 root root 10368 Oct 12 00:29 /usr/lib64/libpcreposix.so.0.0.5 -rwxr-xr-x 1 root root 452976 Dec 5 2016 /usr/lib64/libpcre.so.0 lrwxrwxrwx 1 root root 16 Nov 10 14:24 /usr/lib64/libpcre.so.1 -> libpcre.so.1.2.9 -rwxr-xr-x 1 root root 575784 Oct 12 00:29 /usr/lib64/libpcre.so.1.2.9 lrwxrwxrwx 1 root root 16 Nov 10 14:29 /usr/lib/libpcre.so.1 -> libpcre.so.1.2.9 -rwxr-xr-x 1 root root 579076 Oct 12 00:40 /usr/lib/libpcre.so.1.2.9
There are list of installed packages:

zabbix:~ # rpm -qa | grep libpcre libpcrecpp0-8.41-2.3.x86_64 libpcre1-8.41-2.3.x86_64 libpcre1-32bit-8.41-2.3.x86_64 libpcre16-0-8.41-2.3.x86_64 libpcreposix0-8.41-2.3.x86_64
There are config file and log file. There isn’t Internet connection on vitrual machine. SElinux and Apparmor are disabled. How can I fix the issue? Please, help me!

Hi
Whenever compiling and see a missing package, it will be the devel one… I see no pcre-devel package installed (will be on the SDK)…

On 10/11/17 15:04, bm rec wrote:
[color=blue]

I try to update Zabbix version from source. Now installed 3.2.1 version
and Zabbix works properly. I do
Code:

 /tmp/zabbix-3.4.3/configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2

and error appears:

Code:

 ... ... checking for libevent support... yes

checking for libpcre support… no
configure: error: Unable to use libpcre (libpcre check failed)


I’ve tried with keys —with-libpcre-include=/usr/lib64/- or/and
—with-libpcre=/usr/lib64/- - the same effect. I’ve reinstall and
update this library to newest version.
Output library folder:

Code:

 zabbix:~ # ls -la /usr/lib/libpcre* /usr/lib64/libpcre*

lrwxrwxrwx 1 root root 18 Nov 10 14:44 /usr/lib64/libpcre16.so.0 → libpcre16.so.0.2.9
-rwxr-xr-x 1 root root 555288 Oct 12 00:29 /usr/lib64/libpcre16.so.0.2.9
lrwxrwxrwx 1 root root 19 Nov 10 14:44 /usr/lib64/libpcrecpp.so.0 → libpcrecpp.so.0.0.1
-rwxr-xr-x 1 root root 39424 Oct 12 00:29 /usr/lib64/libpcrecpp.so.0.0.1
lrwxrwxrwx 1 root root 21 Nov 10 14:45 /usr/lib64/libpcreposix.so.0 → libpcreposix.so.0.0.5
-rwxr-xr-x 1 root root 10368 Oct 12 00:29 /usr/lib64/libpcreposix.so.0.0.5
-rwxr-xr-x 1 root root 452976 Dec 5 2016 /usr/lib64/libpcre.so.0
lrwxrwxrwx 1 root root 16 Nov 10 14:24 /usr/lib64/libpcre.so.1 → libpcre.so.1.2.9
-rwxr-xr-x 1 root root 575784 Oct 12 00:29 /usr/lib64/libpcre.so.1.2.9
lrwxrwxrwx 1 root root 16 Nov 10 14:29 /usr/lib/libpcre.so.1 → libpcre.so.1.2.9
-rwxr-xr-x 1 root root 579076 Oct 12 00:40 /usr/lib/libpcre.so.1.2.9


There are list of installed packages:

Code:

 zabbix:~ # rpm -qa | grep libpcre

libpcrecpp0-8.41-2.3.x86_64
libpcre1-8.41-2.3.x86_64
libpcre1-32bit-8.41-2.3.x86_64
libpcre16-0-8.41-2.3.x86_64
libpcreposix0-8.41-2.3.x86_64


There are ‘config file’ (https://pastebin.com/WQeYj3ai) and ‘log file’
(https://pastebin.com/TP8CK6Fg). There isn’t Internet connection on
vitrual machine. SElinux and Apparmor are disabled. How can I fix the
issue? Please, help me![/color]

I’m a bit suspicious of /usr/lib64/libpcre.so.0 - what does “rpm -qf
/usr/lib64/libpcre.so.0” report?

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

[QUOTE=smflood;40165]On 10/11/17 15:04, bm rec wrote:
I’m a bit suspicious of /usr/lib64/libpcre.so.0 - what does “rpm -qf
/usr/lib64/libpcre.so.0” report?
[/QUOTE]

It says:
zabbix:~ # rpm -qf /usr/lib64/libpcre.so.0
file /usr/lib64/libpcre.so.0 is not owned by any package

May be I made this symlink manually, honestly I don’t remember. I’ve tried so many methods… But I can restore my system from snapshot.

[QUOTE]Hi
Whenever compiling and see a missing package, it will be the devel one… I see no pcre-devel package installed (will be on the SDK)…[/QUOTE]
I downloaded devel-RPM from rpmfind.net and tried to install it:
zabbix:~ # rpm -Uvh /tmp/pcre-devel-8.41-3.fc28.x86_64.rpm
warning: /tmp/pcre-devel-8.41-3.fc28.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 9db62fb1: NOKEY
error: Failed dependencies:
libpcre32.so.0()(64bit) is needed by pcre-devel-8.41-3.fc28.x86_64
pcre(x86-64) = 8.41-3.fc28 is needed by pcre-devel-8.41-3.fc28.x86_64
pcre-cpp(x86-64) = 8.41-3.fc28 is needed by pcre-devel-8.41-3.fc28.x86_64
pcre-utf16(x86-64) = 8.41-3.fc28 is needed by pcre-devel-8.41-3.fc28.x86_64
pcre-utf32(x86-64) = 8.41-3.fc28 is needed by pcre-devel-8.41-3.fc28.x86_64

Original version (on DVD) is 8.33:
zabbix:~ # find /mnt/DVD/ -name “pcre” -type f
/mnt/DVD/suse/x86_64/libpcre1-32bit-8.33-3.314.x86_64.rpm
/mnt/DVD/suse/x86_64/libpcre1-8.33-3.314.x86_64.rpm
/mnt/DVD/suse/x86_64/libpcre16-0-8.33-3.314.x86_64.rpm

But there isn’t version 8.33 on the site rpmfind.net. So how can I install devel package? Does not devel RPM installed because of a version mismach or the installation package doesn’t see libpcre?

bm rec Wrote in message:
[color=blue]

It says:
-zabbix:~ # rpm -qf /usr/lib64/libpcre.so.0
file /usr/lib64/libpcre.so.0 is not owned by any package-
May be I made this symlink manually, honestly I don’t remember. I’ve
tried so many methods… But I can restore my system from snapshot.[/color]

From your original post it seems libpcre.so.0 in /usr/lib64 is a
file as opposed to a sym link so it must have been copied from
somewhere but it’s not from SUSE hence my suspicion.

I’m thinking that Novell/Micro Focus TID 7018389[1] is relevant so
I suggest renaming libpcre.so.0 in /usr/lib64 to something else
(suggest libpcre.so.0.old) then creating a new libpcre.so.0 sym
link linking to libpcre.so.1.

HTH.

[1] https://www.novell.com/support/kb/doc.php?id=7018389

Simon Flood
SUSE Knowledge Partner

----Android NewsGroup Reader----
http://usenet.sinaapp.com/

Hi
You need the SLE 12 SP1 SDK (DVD1) a different iso image from;

https://download.suse.com/Download?buildid=jxLFbjSCKgE~

Add that as a local repo/iso image.

[QUOTE=smflood;40175]bm rec Wrote in message:
I’m thinking that Novell/Micro Focus TID 7018389[1] is relevant so
I suggest renaming libpcre.so.0 in /usr/lib64 to something else
(suggest libpcre.so.0.old) then creating a new libpcre.so.0 sym
link linking to libpcre.so.1.
[/QUOTE]
I did it and got the same error (is not owned by any package).

[QUOTE]Hi
You need the SLE 12 SP1 SDK (DVD1) a different iso image from;
https://download.suse.com/Download?buildid=jxLFbjSCKgE~
Add that as a local repo/iso image.[/QUOTE]
Great! Your advice solved my problem!
Thank you very much to all!