# libpcre is missing while update Zabbix

**URL:** <https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532>\
**Category:** SLES Configure-Administer\
**Created:** [November 10, 2017, 4:59pm UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532 "2017-11-10T16:59:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bm\_rec](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@bm\_rec](https://forums.suse.com/u/bm_rec)\
**Post date:** [November 10, 2017, 4:59pm UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/1 "2017-11-10T16:59:35Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [November 10, 2017, 5:54pm UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/2 "2017-11-10T17:54:43Z")

</div>

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)…

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [November 10, 2017, 6:01pm UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/3 "2017-11-10T18:01:41Z")

</div>

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](https://pastebin.com/WQeYj3ai)) and ‘log file’  
> ([https://pastebin.com/TP8CK6Fg](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.

---

<div class="post-metadata">

**Author:** ![bm\_rec](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@bm\_rec](https://forums.suse.com/u/bm_rec)\
**Post date:** [November 13, 2017, 12:04am UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/4 "2017-11-13T00:04:13Z")

</div>

[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](http://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](http://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?

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [November 13, 2017, 12:26am UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/5 "2017-11-13T00:26:37Z")

</div>

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](https://www.novell.com/support/kb/doc.php?id=7018389)

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [November 13, 2017, 1:16am UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/6 "2017-11-13T01:16:42Z")

</div>

> [@bm\_rec;40174](#):
>
> But there isn’t version 8.33 on the site [rpmfind.net](http://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?

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

[https://download.suse.com/Download?buildid=jxLFbjSCKgE~](https://download.suse.com/Download?buildid=jxLFbjSCKgE~)

Add that as a local repo/iso image.

---

<div class="post-metadata">

**Author:** ![bm\_rec](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@bm\_rec](https://forums.suse.com/u/bm_rec)\
**Post date:** [November 13, 2017, 12:47pm UTC](https://forums.suse.com/t/libpcre-is-missing-while-update-zabbix/30532/7 "2017-11-13T12:47:27Z")

</div>

[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~](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!
